summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-11-07 05:59:43 +0000
committerRichard M. Stallman <rms@gnu.org>1996-11-07 05:59:43 +0000
commit74817ae41552e814a560bee4d8bfe957398ab666 (patch)
tree367f21de60d13dd5326a13862ae3f7ce302a7d96
parentb426b201577fa9a800cc6d4d681df48f45e58ca4 (diff)
downloademacs-74817ae41552e814a560bee4d8bfe957398ab666.tar.gz
(sh-mode): Set `comment-start-skip'; otherwise
only set if `sh-set-shell' gets called.
-rw-r--r--lisp/progmodes/sh-script.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index bb007e1950f..30effb24c14 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -641,6 +641,7 @@ with your script for an edit-interpret-debug cycle."
paragraph-start (concat page-delimiter "\\|$")
paragraph-separate paragraph-start
comment-start "# "
+ comment-start-skip (concat (sh-feature sh-comment-prefix) "#+[\t ]*")
comint-dynamic-complete-functions sh-dynamic-complete-functions
;; we can't look if previous line ended with `\'
comint-prompt-regexp "^[ \t]*"