make-mode.el (makefile-fill-paragraph): Fix infloop.
authorKazuhiro Ito <kzhr@d1.dion.ne.jp>
Wed, 18 Dec 2013 05:01:30 +0000 (13:01 +0800)
committerChong Yidong <cyd@gnu.org>
Wed, 18 Dec 2013 05:01:30 +0000 (13:01 +0800)
Fixes: debbugs:13914

lisp/ChangeLog
lisp/progmodes/make-mode.el

index fa79352..aef7eb5 100644 (file)
@@ -1,3 +1,8 @@
+2013-12-18  Kazuhiro Ito  <kzhr@d1.dion.ne.jp>  (tiny change)
+
+       * progmodes/make-mode.el (makefile-fill-paragraph): Fix infloop
+       (Bug#13914).
+
 2013-12-18  Shigeru Fukaya <shigeru.fukaya@gmail.com>
 
        * apropos.el (apropos-words-to-regexp): Fix algorithm (Bug#13946).
index 3c0871e..01d1e76 100644 (file)
@@ -1300,7 +1300,8 @@ Fill comments, backslashed lines, and variable definitions specially."
                  (point))))
            (end
             (save-excursion
-              (while (= (preceding-char) ?\\)
+              (while (and (= (preceding-char) ?\\)
+                          (not (eobp)))
                 (end-of-line 2))
               (point))))
        (save-restriction