From 83c60f60bfa7a2f2c5d3e487e7e5c00732996815 Mon Sep 17 00:00:00 2001 From: Kazuhiro Ito Date: Wed, 18 Dec 2013 13:01:30 +0800 Subject: [PATCH] make-mode.el (makefile-fill-paragraph): Fix infloop. Fixes: debbugs:13914 --- lisp/ChangeLog | 5 +++++ lisp/progmodes/make-mode.el | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fa79352e7a2..aef7eb5cc5b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-12-18 Kazuhiro Ito (tiny change) + + * progmodes/make-mode.el (makefile-fill-paragraph): Fix infloop + (Bug#13914). + 2013-12-18 Shigeru Fukaya * apropos.el (apropos-words-to-regexp): Fix algorithm (Bug#13946). diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index 3c0871e57b6..01d1e76457d 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el @@ -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 -- 2.39.2