unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Daniel Colascione <dancol@dancol.org>
To: 16159@debbugs.gnu.org
Subject: bug#16159: [PATCH] Better paragraph separation for sh-mode
Date: Mon, 16 Dec 2013 02:49:32 -0800	[thread overview]
Message-ID: <52AEDABC.2020305@dancol.org> (raw)

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)






             reply	other threads:[~2013-12-16 10:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-16 10:49 Daniel Colascione [this message]
2013-12-18  7:53 ` bug#16159: [PATCH] Better paragraph separation for sh-mode Glenn Morris
2013-12-22 23:26   ` Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52AEDABC.2020305@dancol.org \
    --to=dancol@dancol.org \
    --cc=16159@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).