]> git.eshelyaron.com Git - emacs.git/commitdiff
File-local-variable support for sh-script; add mksh support
authorDaniel Colascione <dancol@dancol.org>
Wed, 21 May 2014 01:55:54 +0000 (18:55 -0700)
committerDaniel Colascione <dancol@dancol.org>
Wed, 21 May 2014 01:55:54 +0000 (18:55 -0700)
* lisp/files.el (interpreter-mode-alist): Add mksh.

* lisp/progmodes/sh-script.el (sh-ancestor-alist): Add mksh, a pdksh
  derivative.
  (sh-alias-alist): Alias /system/bin/sh (Android's system shell) to
  mksh. Improve custom spec; allow regular expressions.
  (sh-shell): Delegate name splitting to `sh-canonicalize-shell'.
  (sh-after-hack-local-variables): New function.
  (sh-mode): Use it; respect file-local `sh-shell' variable.
  (sh-set-shell): Use `sh-canonicalize-shell' instead of open-coding
  the normalization.
  (sh-canonicalize-shell): Rewrite to support regexes.

1  2 
lisp/ChangeLog

diff --cc lisp/ChangeLog
index 5a720aa19ec6fc98cac84961040091ab85e4113f,cfa4625969022c1a90fe7c2d1582c1f7ce436ffd..a27456241a3b9b29e32a412cf5d518e5032e8e3c
@@@ -1,7 -1,18 +1,22 @@@
+ 2014-05-21  Daniel Colascione  <dancol@dancol.org>
+       * files.el (interpreter-mode-alist): Add mksh.
+       * progmodes/sh-script.el (sh-ancestor-alist): Add mksh, a pdksh
+       derivative.
+       (sh-alias-alist): Alias /system/bin/sh (Android's system shell) to
+       mksh. Improve custom spec; allow regular expressions.
+       (sh-shell): Delegate name splitting to `sh-canonicalize-shell'.
+       (sh-after-hack-local-variables): New function.
+       (sh-mode): Use it; respect file-local `sh-shell' variable. (bug#17333)
+       (sh-set-shell): Use `sh-canonicalize-shell' instead of open-coding
+       the normalization.
+       (sh-canonicalize-shell): Rewrite to support regexes.
 +2014-05-21  Leo Liu  <sdl.web@gmail.com>
 +
 +      * emacs-lisp/cl-lib.el (cl-endp): Fix last change.
 +
  2014-05-19  Leo Liu  <sdl.web@gmail.com>
  
        * emacs-lisp/cl-lib.el (cl-endp): Conform to CL's semantics.