# HG changeset patch # User Dave Love # Date 880892502 0 # Node ID e1ea41eba8bede4cfe4fef3d40fcd31e50403246 # Parent 931b472be076008bb5f8e39abaac9dc3e02ecb2f (sh-mode): Set `comment-start-skip' always. diff -r 931b472be076 -r e1ea41eba8be lisp/progmodes/sh-script.el --- a/lisp/progmodes/sh-script.el Sun Nov 30 12:20:49 1997 +0000 +++ b/lisp/progmodes/sh-script.el Sun Nov 30 12:21:42 1997 +0000 @@ -731,9 +731,12 @@ (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)