]> git.eshelyaron.com Git - emacs.git/commitdiff
* progmodes/sh-script.el (sh-mode): Tweak paragraph-separate
authorDaniel Colascione <dancol@dancol.org>
Fri, 20 Dec 2013 21:41:57 +0000 (13:41 -0800)
committerDaniel Colascione <dancol@dancol.org>
Fri, 20 Dec 2013 21:41:57 +0000 (13:41 -0800)
so that we don't reflow comments into the shebang line.

lisp/ChangeLog
lisp/progmodes/sh-script.el

index 17a3434cb19b6eeaee7ea4b08314bd0046029aef..cfec8e62eb2b8dc5de39c32d1d780703633e8dbf 100644 (file)
@@ -1,3 +1,8 @@
+2013-12-20  Daniel Colascione  <dancol@dancol.org>
+
+       * progmodes/sh-script.el (sh-mode): Tweak paragraph-separate
+       so that we don't reflow comments into the shebang line.
+
 2013-12-20  Juri Linkov  <juri@jurta.org>
 
        * saveplace.el (save-place-to-alist): Add `dired-filename' as
index c270d433e76168349d8ec0552b079d1dd57539fb..5f2f70cf32a4b39d1a0036ceea11413c491d8ab3 100644 (file)
@@ -1589,7 +1589,7 @@ with your script for an edit-interpret-debug cycle."
              (lambda () (or (eolp) (newline) (indent-relative))))
 
   (setq-local paragraph-start (concat page-delimiter "\\|$"))
-  (setq-local paragraph-separate paragraph-start)
+  (setq-local paragraph-separate (concat paragraph-start "\\|#!/"))
   (setq-local comment-start "# ")
   (setq-local comment-start-skip "#+[\t ]*")
   (setq-local local-abbrev-table sh-mode-abbrev-table)