Subject: bug#16159: closed (Re: bug#16159: [PATCH] Better paragraph separation for sh-mode)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 22 Dec 2013 23:27:05 +0000

Your bug report

#16159: [PATCH] Better paragraph separation for sh-mode

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
16159: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16159
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#16159: [PATCH] Better paragraph separation for sh-mode
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Sun, 22 Dec 2013 18:26:17 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

Version: 24.4

Thanks for applying it. Next time please close the associated bug as
well, which you do simply by mailing ###-done@debbugs. You may also wish
to refer to the bug number in the ChangeLog entry.

Subject: [PATCH] Better paragraph separation for sh-mode
From: Daniel Colascione <[email-masked]>
To: bug-emacs <[email-masked]>
Date: Mon, 16 Dec 2013 02:49:32 -0800
List-Id: <debbugs-submit.debbugs.gnu.org>

This change should make sure that M-q doesn't combine a comment line 
with the initial shebang of a shell script.

$ bzr diff
=== modified file 'lisp/progmodes/sh-script.el'
--- lisp/progmodes/sh-script.el	2013-11-09 10:49:42 +0000
+++ lisp/progmodes/sh-script.el	2013-12-16 10:46:04 +0000
@@ -1589,7 +1589,7 @@
  	      (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)