* 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
* bug#13914: 24.3.50; fill-paragraph in makefile-automake-mode could make infinite loop.
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
0 siblings, 0 replies; 2+ messages in thread
From: Chong Yidong @ 2013-12-18 5:01 UTC (permalink / raw)
To: Kazuhiro Ito; +Cc: 13914-done
Kazuhiro Ito <kzhr@d1.dion.ne.jp> writes:
> The below code makes emacs go into infinite loop.
>
> (with-temp-buffer
> (makefile-automake-mode)
> (insert "a \\")
> (fill-paragraph))
>
>
> Please see the below patch.
Thanks, committed to trunk.
^ 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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).