emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

makefile-mode makefile-fill-paragraph


From: Karl Chen
Subject: makefile-mode makefile-fill-paragraph
Date: Thu, 25 May 2006 02:56:20 -0700

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]