emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#13914: closed (24.3.50; fill-paragraph in makefile


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#13914: closed (24.3.50; fill-paragraph in makefile-automake-mode could make infinite loop.)
Date: Wed, 18 Dec 2013 05:02:02 +0000

Your message dated Wed, 18 Dec 2013 13:01:40 +0800
with message-id <address@hidden>
and subject line Re: bug#13914: 24.3.50; fill-paragraph in 
makefile-automake-mode could make infinite loop.
has caused the debbugs.gnu.org bug report #13914,
regarding 24.3.50; fill-paragraph in makefile-automake-mode could make infinite 
loop.
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
13914: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13914
GNU Bug Tracking System
Contact address@hidden with problems
--- 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 ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]