changeset 26917:3d9aa6cec283

(sh-mode): If there is no #!-line, use the shell from sh-shell-file.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 16 Dec 1999 13:21:37 +0000
parents 1255a8a95f46
children e1c54e3a7a61
files lisp/progmodes/sh-script.el
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/sh-script.el	Thu Dec 16 12:11:18 1999 +0000
+++ b/lisp/progmodes/sh-script.el	Thu Dec 16 13:21:37 1999 +0000
@@ -1297,12 +1297,7 @@
 		  "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)