all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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

* bug#16159: [PATCH] Better paragraph separation for sh-mode
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2013-12-18  7:53 UTC (permalink / raw)
  To: Daniel Colascione; +Cc: 16159

Daniel Colascione wrote:

> -  (setq-local paragraph-separate paragraph-start)
> +  (setq-local paragraph-separate (concat paragraph-start "\\|#!/"))

Looks ok to me; please apply.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#16159: [PATCH] Better paragraph separation for sh-mode
  2013-12-18  7:53 ` Glenn Morris
@ 2013-12-22 23:26   ` Glenn Morris
  0 siblings, 0 replies; 3+ messages in thread
From: Glenn Morris @ 2013-12-22 23:26 UTC (permalink / raw)
  To: 16159-done

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.





^ 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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.