* bug#16159: [PATCH] Better paragraph separation for sh-mode
@ 2013-12-16 10:49 Daniel Colascione
2013-12-18 7:53 ` Glenn Morris
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Colascione @ 2013-12-16 10:49 UTC (permalink / raw)
To: 16159
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-12-22 23:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-16 10:49 bug#16159: [PATCH] Better paragraph separation for sh-mode Daniel Colascione
2013-12-18 7:53 ` Glenn Morris
2013-12-22 23:26 ` Glenn Morris
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).