From 3282bd2ea5c392b518f8ac663e9fa480a8ba9b65 Mon Sep 17 00:00:00 2001 From: Daniel Colascione Date: Fri, 20 Dec 2013 13:41:57 -0800 Subject: [PATCH] * progmodes/sh-script.el (sh-mode): Tweak paragraph-separate so that we don't reflow comments into the shebang line. --- lisp/ChangeLog | 5 +++++ lisp/progmodes/sh-script.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 17a3434cb19..cfec8e62eb2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-12-20 Daniel Colascione + + * 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 * saveplace.el (save-place-to-alist): Add `dired-filename' as diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index c270d433e76..5f2f70cf32a 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el @@ -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) -- 2.11.4.GIT