* bug#13914: 24.3.50; fill-paragraph in makefile-automake-mode could make infinite loop.
@ 2013-03-10 6:33 Kazuhiro Ito
2013-12-18 5:01 ` Chong Yidong
0 siblings, 1 reply; 2+ messages in thread
From: Kazuhiro Ito @ 2013-03-10 6:33 UTC (permalink / raw
To: 13914
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-18 5:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-10 6:33 bug#13914: 24.3.50; fill-paragraph in makefile-automake-mode could make infinite loop Kazuhiro Ito
2013-12-18 5:01 ` Chong Yidong
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.