]> git.eshelyaron.com Git - emacs.git/commitdiff
(sh-mode): If there is no #!-line, use the shell
authorGerd Moellmann <gerd@gnu.org>
Thu, 16 Dec 1999 13:21:37 +0000 (13:21 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 16 Dec 1999 13:21:37 +0000 (13:21 +0000)
from sh-shell-file.

lisp/progmodes/sh-script.el

index 5d00037484aaeaaec07c04c065e6edcc590b272f..e26bd48beab111ffa35e27b8bdaa79d3273bd6cb 100644 (file)
@@ -1297,12 +1297,7 @@ with your script for an edit-interpret-debug cycle."
                  "rpm")))))
     (if interpreter
        (sh-set-shell interpreter nil nil)
-      (progn
-        ;; If we don't know the shell for this file, set the syntax
-        ;; table anyway, for the user's normal choice of shell.
-        (set-syntax-table (sh-feature sh-mode-syntax-table))
-        ;; And avoid indent-new-comment-line (at least) losing.
-        (setq comment-start-skip "#+[\t ]*"))))
+      (sh-set-shell sh-shell-file nil t))
   (run-hooks 'sh-mode-hook))
 ;;;###autoload
 (defalias 'shell-script-mode 'sh-mode)