1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-12 16:23:57 +00:00

(sh-mode): Set `comment-start-skip' always.

This commit is contained in:
Dave Love 1997-11-30 12:21:42 +00:00
parent d4a753f9df
commit 59c14ec62d

View File

@ -731,9 +731,12 @@ with your script for an edit-interpret-debug cycle."
(match-string 2)))))
(if interpreter
(sh-set-shell interpreter nil nil)
;; 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))))
(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 ]*"))))
(run-hooks 'sh-mode-hook))
;;;###autoload
(defalias 'shell-script-mode 'sh-mode)