GNU bug report logs - #12515
24.2.50; Error during redisplay: (eval (mode-line-eol-desc)) signaled (quit)

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Tue, 25 Sep 2012 18:36:01 UTC

Severity: minor

Merged with 12704

Found in version 24.2.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12515 in the body.
You can then email your comments to 12515 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#12515; Package emacs. (Tue, 25 Sep 2012 18:36:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Drew Adams" <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 25 Sep 2012 18:36:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: <bug-gnu-emacs <at> gnu.org>
Subject: 24.2.50;
	Error during redisplay: (eval (mode-line-eol-desc)) signaled (quit)
Date: Tue, 25 Sep 2012 11:33:22 -0700
Sorry, no recipe from emacs -Q, and I have nothing else to offer besides
the error message in the subject line.  If that does not help, feel free
to close the bug.

In GNU Emacs 24.2.50.1 (i386-mingw-nt5.1.2600)
 of 2012-09-17 on MARVIN
Bzr revision: 110062 cyd <at> gnu.org-20120917054104-r93rtwkrtva73ewe
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
 `configure --with-gcc (4.7) --no-opt --enable-checking --cflags
 -ID:/devel/emacs/libs/libXpm-3.5.8/include
 -ID:/devel/emacs/libs/libXpm-3.5.8/src
 -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
 -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
 -ID:/devel/emacs/libs/giflib-4.1.4-1/include
 -ID:/devel/emacs/libs/jpeg-6b-4/include
 -ID:/devel/emacs/libs/tiff-3.8.2-1/include
 -ID:/devel/emacs/libs/gnutls-3.0.9/include
 -ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/include
 -ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2'
 





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12515; Package emacs. (Tue, 25 Sep 2012 20:21:02 GMT) Full text and rfc822 format available.

Message #8 received at 12515 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 12515 <at> debbugs.gnu.org
Subject: Re: bug#12515: 24.2.50;
	Error during redisplay: (eval (mode-line-eol-desc)) signaled (quit)
Date: Tue, 25 Sep 2012 22:18:23 +0200
> From: "Drew Adams" <drew.adams <at> oracle.com>
> Date: Tue, 25 Sep 2012 11:33:22 -0700
> 
> Sorry, no recipe from emacs -Q, and I have nothing else to offer besides
> the error message in the subject line.  If that does not help, feel free
> to close the bug.

Do you remember what were you doing when this happened?  Is it
possible you typed "C-g"?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12515; Package emacs. (Tue, 25 Sep 2012 20:26:02 GMT) Full text and rfc822 format available.

Message #11 received at 12515 <at> debbugs.gnu.org (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Eli Zaretskii'" <eliz <at> gnu.org>
Cc: 12515 <at> debbugs.gnu.org
Subject: RE: bug#12515: 24.2.50;
	Error during redisplay: (eval (mode-line-eol-desc)) signaled (quit)
Date: Tue, 25 Sep 2012 13:22:40 -0700
> Do you remember what were you doing when this happened?  Is it
> possible you typed "C-g"?

No.  But yes, it is possible that I hit `C-g'.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12515; Package emacs. (Tue, 25 Sep 2012 20:40:02 GMT) Full text and rfc822 format available.

Message #14 received at 12515 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 12515 <at> debbugs.gnu.org
Subject: Re: bug#12515: 24.2.50;
	Error during redisplay: (eval (mode-line-eol-desc)) signaled (quit)
Date: Tue, 25 Sep 2012 22:37:41 +0200
> From: "Drew Adams" <drew.adams <at> oracle.com>
> Cc: <12515 <at> debbugs.gnu.org>
> Date: Tue, 25 Sep 2012 13:22:40 -0700
> 
> > Do you remember what were you doing when this happened?  Is it
> > possible you typed "C-g"?
> 
> No.  But yes, it is possible that I hit `C-g'.

Unless you see a lot of these messages in *Messages*, I wouldn't worry
about this.

What happens is that as part of redisplay of the mode line, the
display engine calls the function mode-line-eol-desc (defined on
bindings.el), which produces the end-of-line (EOL) indicator near the
left edge of the mode line.  Because signaling an error normally
re-enters redisplay (to display the error message), the display code
suppresses the normal way of processing signals from Lisp it calls,
and instead intercepts all signals and adds this kind of message to
*Messages*.  Since mode-line-eol-desc does not disable quitting (maybe
it should), hitting C-g when it runs could cause this signal, I think.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12515; Package emacs. (Tue, 25 Sep 2012 20:55:02 GMT) Full text and rfc822 format available.

Message #17 received at 12515 <at> debbugs.gnu.org (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Eli Zaretskii'" <eliz <at> gnu.org>
Cc: 12515 <at> debbugs.gnu.org
Subject: RE: bug#12515: 24.2.50;
	Error during redisplay: (eval (mode-line-eol-desc)) signaled (quit)
Date: Tue, 25 Sep 2012 13:51:38 -0700
 > Unless you see a lot of these messages in *Messages*, I wouldn't worry
> about this.

OK, good.  I noticed it only once.

> What happens is that as part of redisplay of the mode line, the
> display engine calls the function mode-line-eol-desc (defined on
> bindings.el), which produces the end-of-line (EOL) indicator near the
> left edge of the mode line.  Because signaling an error normally
> re-enters redisplay (to display the error message), the display code
> suppresses the normal way of processing signals from Lisp it calls,
> and instead intercepts all signals and adds this kind of message to
> *Messages*.  Since mode-line-eol-desc does not disable quitting (maybe
> it should), hitting C-g when it runs could cause this signal, I think.

Thanks for taking the time to explain this.

I guess part of what you are saying (implying) is that _quitting_ (C-g), because
it involves signalling, also "normally re-enters redisplay (to display the" quit
message).

Sounds like `mode-line-eol-desc' should disable quitting only if it is
guaranteed to end quickly.  IOW, code that disables quitting should not prevent
a user from actually quitting in a timely manner.

When you say "disable quitting", do you mean that the user would need to hit
`C-g' again, or only that the `C-g' would not be processed until after redisplay
finishes (i.e., respects a previously set `quit-flag')?

BTW, I looked in `(elisp) Quitting' for some explanation of this, but it does
not seem to mention "display" or "redisplay" at all.  (It does mention C code,
however.)





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12515; Package emacs. (Tue, 25 Sep 2012 21:14:02 GMT) Full text and rfc822 format available.

Message #20 received at 12515 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 12515 <at> debbugs.gnu.org
Subject: Re: bug#12515: 24.2.50;
	Error during redisplay: (eval (mode-line-eol-desc)) signaled (quit)
Date: Tue, 25 Sep 2012 23:11:04 +0200
> From: "Drew Adams" <drew.adams <at> oracle.com>
> Cc: <12515 <at> debbugs.gnu.org>
> Date: Tue, 25 Sep 2012 13:51:38 -0700
> 
> I guess part of what you are saying (implying) is that _quitting_ (C-g), because
> it involves signalling, also "normally re-enters redisplay (to display the" quit
> message).

Yes.  But there are places in Emacs that signal 'quit' for other
reasons, AFAICS.

> Sounds like `mode-line-eol-desc' should disable quitting only if it is
> guaranteed to end quickly.

If it doesn't end quickly, redisplay will become sluggish, and people
will promptly complain that, say, C-f takes too long.  In general,
anything that is called as part of redisplay must be quick, for that
very reason.

> When you say "disable quitting", do you mean that the user would need to hit
> `C-g' again, or only that the `C-g' would not be processed until after redisplay
> finishes (i.e., respects a previously set `quit-flag')?

The latter.

> BTW, I looked in `(elisp) Quitting' for some explanation of this, but it does
> not seem to mention "display" or "redisplay" at all.  (It does mention C code,
> however.)

It's not quitting that re-enters redisplay, it's the 'quit' signal
that is caused by it, when it is caused by it.

But yes, documentation of the Emacs display engine leaves a lot to be
desired.  Luckily, Lisp programmers don't normally need to know too
much about that, and the simple "natural" mental model will usually
do.




Forcibly Merged 12515 12704. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 11 Dec 2012 21:13:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12515; Package emacs. (Sun, 09 Feb 2014 03:08:01 GMT) Full text and rfc822 format available.

Message #25 received at 12515 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 12515 <at> debbugs.gnu.org, 'Stefan Monnier' <monnier <at> iro.umontreal.ca>,
 12704 <at> debbugs.gnu.org
Subject: Re: bug#12704: 24.2.50;
 QuitError during redisplay: (eval (\` ((-3 (\, (propertize "%p" ...
Date: Sat, 08 Feb 2014 19:06:09 -0800
"Drew Adams" <drew.adams <at> oracle.com> writes:

> It happened again today, when I was trying to use the debugger with icomplete
> code.
>
> Error during redisplay: (eval (mode-line-eol-desc)) signaled (quit)

Ok, then this doesn't seem to be a bug.  Closing.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




bug closed, send any further explanations to 12515 <at> debbugs.gnu.org and "Drew Adams" <drew.adams <at> oracle.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 09 Feb 2014 03:08:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 09 Mar 2014 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 109 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.