Recognize dash shell

* lisp/files.el (interpreter-mode-alist):
* lisp/progmodes/sh-script.el (sh-ancestor-alist): Add dash.

Fixes: debbugs:16938
This commit is contained in:
Glenn Morris 2014-03-05 13:58:16 -05:00
parent 6952100dc3
commit bd2d43dc74
3 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2014-03-05 Glenn Morris <rgm@gnu.org>
* files.el (interpreter-mode-alist):
* progmodes/sh-script.el (sh-ancestor-alist): Add dash. (Bug#16938)
2014-03-05 Juanma Barranquero <lekktu@gmail.com>
* frameset.el (frameset--initial-params): Filter out null entries.

View file

@ -2517,6 +2517,7 @@ and `magic-mode-alist', which determines modes based on file contents.")
("scm" . scheme-mode)
("[acjkwz]sh" . sh-mode)
("r?bash2?" . sh-mode)
("dash" . sh-mode)
("\\(dt\\|pd\\|w\\)ksh" . sh-mode)
("es" . sh-mode)
("i?tcsh" . sh-mode)

View file

@ -1,7 +1,6 @@
;;; sh-script.el --- shell-script editing commands for Emacs -*- lexical-binding:t -*-
;; Copyright (C) 1993-1997, 1999, 2001-2014 Free Software Foundation,
;; Inc.
;; Copyright (C) 1993-1997, 1999, 2001-2014 Free Software Foundation, Inc.
;; Author: Daniel Pfeiffer <occitan@esperanto.org>
;; Version: 2.0f
@ -228,6 +227,7 @@
'((ash . sh)
(bash . jsh)
(bash2 . jsh)
(dash . ash)
(dtksh . ksh)
(es . rc)
(itcsh . tcsh)
@ -255,6 +255,7 @@ rc Plan 9 Shell
es Extensible Shell
sh Bourne Shell
ash Almquist Shell
dash Debian Almquist Shell
jsh Bourne Shell with Job Control
bash GNU Bourne Again Shell
ksh88 Korn Shell '88
@ -267,6 +268,7 @@ sh Bourne Shell
posix IEEE 1003.2 Shell Standard
wsh ? Shell"
:type '(repeat (cons symbol symbol))
:version "24.4" ; added dash
:group 'sh-script)