From 59c14ec62db0a72733e90945dd6b5560dc0b8d75 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Sun, 30 Nov 1997 12:21:42 +0000 Subject: [PATCH] (sh-mode): Set `comment-start-skip' always. --- lisp/progmodes/sh-script.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index 99869db0bdd..c0cfdfa8658 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el @@ -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) -- 2.39.2