--- Begin Message ---
Subject: |
24.3.50; fill-paragraph in makefile-automake-mode could make infinite loop. |
Date: |
Sun, 10 Mar 2013 15:33:24 +0900 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/24.3.50 (i386-mingw-nt6.1.7601) MULE/6.0 (HANACHIRUSATO) |
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
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#13914: 24.3.50; fill-paragraph in makefile-automake-mode could make infinite loop. |
Date: |
Wed, 18 Dec 2013 13:01:40 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Kazuhiro Ito <address@hidden> 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.
--- End Message ---