[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemacs-commit] qemacs script.c
From: |
Charlie Gordon |
Subject: |
[Qemacs-commit] qemacs script.c |
Date: |
Sat, 09 Aug 2014 17:29:19 +0000 |
CVSROOT: /sources/qemacs
Module name: qemacs
Changes by: Charlie Gordon <chqrlie> 14/08/09 17:29:19
Modified files:
. : script.c
Log message:
select cript-mode for .bash* and .profile* files
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/script.c?cvsroot=qemacs&r1=1.17&r2=1.18
Patches:
Index: script.c
===================================================================
RCS file: /sources/qemacs/qemacs/script.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- script.c 8 Jun 2014 10:56:59 -0000 1.17
+++ script.c 9 Aug 2014 17:29:19 -0000 1.18
@@ -108,7 +108,9 @@
static int script_mode_probe(ModeDef *mode, ModeProbeData *p)
{
if (match_extension(p->filename, mode->extensions)
- || match_shell_handler(cs8(p->buf), mode->shell_handlers)) {
+ || match_shell_handler(cs8(p->buf), mode->shell_handlers)
+ || stristart(p->filename, ".bash", NULL)
+ || stristart(p->filename, ".profile", NULL)) {
return 80;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemacs-commit] qemacs script.c,
Charlie Gordon <=