From: Gerd Moellmann Date: Thu, 16 Dec 1999 13:21:37 +0000 (+0000) Subject: (sh-mode): If there is no #!-line, use the shell X-Git-Tag: emacs-pretest-21.0.90~5695 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f2d20357bb1763d0900c5e22fddeed78bc9e709c;p=emacs.git (sh-mode): If there is no #!-line, use the shell from sh-shell-file. --- diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index 5d00037484a..e26bd48beab 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el @@ -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)