Recognize dash shell
authorGlenn Morris <rgm@gnu.org>
Wed, 5 Mar 2014 18:58:16 +0000 (13:58 -0500)
committerGlenn Morris <rgm@gnu.org>
Wed, 5 Mar 2014 18:58:16 +0000 (13:58 -0500)
* lisp/files.el (interpreter-mode-alist):
* lisp/progmodes/sh-script.el (sh-ancestor-alist): Add dash.

Fixes: debbugs:16938

lisp/ChangeLog
lisp/files.el
lisp/progmodes/sh-script.el

index 73ced85..0ccc3f7 100644 (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.
index 8304dcc..6f930aa 100644 (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)
index 7c677df..84b0c8b 100644 (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
   '((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)