bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#13914: 24.3.50; fill-paragraph in makefile-automake-mode could make


From: Kazuhiro Ito
Subject: bug#13914: 24.3.50; fill-paragraph in makefile-automake-mode could make infinite loop.
Date: Sun, 10 Mar 2013 15:33:24 +0900
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/24.3.50 (i386-mingw-nt6.1.7601) MULE/6.0 (HANACHIRUSATO)

The below code makes emacs go into infinite loop.

(with-temp-buffer
  (makefile-automake-mode)
  (insert "a \\")
  (fill-paragraph))


Please see the below patch.

=== modified file 'lisp/progmodes/make-mode.el'
--- lisp/progmodes/make-mode.el 2013-02-02 06:04:06 +0000
+++ lisp/progmodes/make-mode.el 2013-03-10 05:46:08 +0000
@@ -1298,7 +1298,7 @@
                  (point))))
            (end
             (save-excursion
-              (while (= (preceding-char) ?\\)
+              (while (and (= (preceding-char) ?\\) (null (eobp)))
                 (end-of-line 2))
               (point))))
        (save-restriction


-- 
Kazuhiro Ito





reply via email to

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