[Top][All Lists]

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

Re: Freeze with Emacs 21.1 and CVS Gnus

From: Andreas Schwab
Subject: Re: Freeze with Emacs 21.1 and CVS Gnus
Date: 07 Dec 2001 10:26:28 +0100
User-agent: Gnus/5.090003 (Oort Gnus v0.03) Emacs/21.1.30

Richard Stallman <address@hidden> writes:

|>     >From the backtrace (see below), my wild guess is that Gnus tries to 
|>     display the article name in the mode line, and since the name includes a 
|>     percent character, it tries to interpret that as a special mode-line 
|>     element.
|> If that is true, it could be an Emacs bug as well as a Gnus bug.
|> Giving Emacs an absurd %-spec in the mode-line-format would give
|> absurd output in the mode line, but it shouldn't hang things.

display_mode_element could read beyond the end of the string if the last
character was a '%', although I could not reproduce any bad behaviour.
This patch should fix that:

2001-12-07  Andreas Schwab  <address@hidden>

        * xdisp.c (display_mode_element): Don't read past end of string if
        it ends with '%'.

--- xdisp.c.~1.711.~    Tue Dec  4 11:23:07 2001
+++ xdisp.c     Fri Dec  7 10:16:22 2001
@@ -13584,6 +13584,8 @@
+               else /* c == 0 */
+                 break;


Andreas Schwab                                  "And now for something
address@hidden                          completely different."
SuSE Labs, SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5

reply via email to

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