From: Eli Zaretskii Date: Fri, 23 Jun 2006 12:41:15 +0000 (+0000) Subject: (bat-generic-mode): Support .cmd files. X-Git-Tag: emacs-pretest-22.0.90~1873 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6453a10ed837bfbb36508dfeb18e8d8473236797;p=emacs.git (bat-generic-mode): Support .cmd files. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1d85bd9d876..1508381ce4c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,7 @@ 2006-06-23 Eli Zaretskii + * generic-x.el (bat-generic-mode): Support .cmd files. + * dos-w32.el (top level): Use find-file-not-found-functions instead of the obsolete find-file-not-found-hooks. diff --git a/lisp/generic-x.el b/lisp/generic-x.el index 55c4e482803..609d076d8a2 100644 --- a/lisp/generic-x.el +++ b/lisp/generic-x.el @@ -512,10 +512,11 @@ like an INI file. You can add this hook to `find-file-hook'." (1 font-lock-builtin-face) (2 font-lock-variable-name-face t t)))) '("\\.[bB][aA][tT]\\'" + "\\.[cC][mM][dD]\\'" "\\`[cC][oO][nN][fF][iI][gG]\\." "\\`[aA][uU][tT][oO][eE][xX][eE][cC]\\.") '(generic-bat-mode-setup-function) - "Generic mode for MS-Windows BAT files.") + "Generic mode for MS-Windows batch files.") (defvar bat-generic-mode-syntax-table nil "Syntax table in use in `bat-generic-mode' buffers.")