summaryrefslogtreecommitdiff
path: root/lisp/progmodes/make-mode.el
diff options
context:
space:
mode:
authorKazuhiro Ito <kzhr@d1.dion.ne.jp>2013-12-18 13:01:30 +0800
committerChong Yidong <cyd@gnu.org>2013-12-18 13:01:30 +0800
commit83c60f60bfa7a2f2c5d3e487e7e5c00732996815 (patch)
tree73b26d056a1ee63e329c89206ea183a5d3ff8466 /lisp/progmodes/make-mode.el
parentba874b6430893be55d48840a901aac4e64a4befc (diff)
downloademacs-83c60f60bfa7a2f2c5d3e487e7e5c00732996815.tar.gz
make-mode.el (makefile-fill-paragraph): Fix infloop.
Fixes: debbugs:13914
Diffstat (limited to 'lisp/progmodes/make-mode.el')
-rw-r--r--lisp/progmodes/make-mode.el3
1 files changed, 2 insertions, 1 deletions
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