all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* makefile-mode makefile-fill-paragraph
@ 2006-05-25  9:56 Karl Chen
  2006-05-25 14:11 ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Karl Chen @ 2006-05-25  9:56 UTC (permalink / 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

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

end of thread, other threads:[~2006-05-28 20:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-25  9:56 makefile-mode makefile-fill-paragraph Karl Chen
2006-05-25 14:11 ` Stefan Monnier
2006-05-25 22:14   ` Karl Chen
2006-05-28 20:56     ` Stefan Monnier

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.