[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#16159: [PATCH] Better paragraph separation for sh-mode
From: |
Daniel Colascione |
Subject: |
bug#16159: [PATCH] Better paragraph separation for sh-mode |
Date: |
Mon, 16 Dec 2013 02:49:32 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
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)
- bug#16159: [PATCH] Better paragraph separation for sh-mode,
Daniel Colascione <=