From: Karl Chen <quarl@cs.berkeley.edu>
Subject: makefile-mode makefile-fill-paragraph
Date: Thu, 25 May 2006 02:56:20 -0700 [thread overview]
Message-ID: <quack.20060525T0256.lthac964ed7@roar.cs.berkeley.edu> (raw)
Hello, M-q in comments in makefile-mode currently destroys spaces
after the comment start.
Example:
emacs -q /tmp/Makefile
# Foo aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
# Bar
M-q
==>
# Foo aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
#Bar
This patch works for me.
--- make-mode.el 25 May 2006 02:52:02 -0700 1.115
+++ make-mode.el 25 May 2006 02:52:19 -0700
@@ -1302,7 +1302,7 @@
(save-excursion
(beginning-of-line)
(cond
- ((looking-at "^#+")
+ ((looking-at "^#+\\s-*")
;; Found a comment. Set the fill prefix, and find the paragraph
;; boundaries by searching for lines that look like comment-only
;; lines.
--
Karl 2006-05-25 02:52
next reply other threads:[~2006-05-25 9:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-25 9:56 Karl Chen [this message]
2006-05-25 14:11 ` makefile-mode makefile-fill-paragraph Stefan Monnier
2006-05-25 22:14 ` Karl Chen
2006-05-28 20:56 ` Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=quack.20060525T0256.lthac964ed7@roar.cs.berkeley.edu \
--to=quarl@cs.berkeley.edu \
/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 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.