unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Stefan Monnier'" <monnier@iro.umontreal.ca>
Cc: 12704@debbugs.gnu.org
Subject: bug#12704: 24.2.50; QuitError during redisplay: (eval (\` ((-3 (\, (propertize "%p" ...
Date: Mon, 22 Oct 2012 13:39:26 -0700	[thread overview]
Message-ID: <2B2AB6A97B554C8EAA17A1A14422F191@us.oracle.com> (raw)
In-Reply-To: <jwv3916bbmz.fsf-monnier+emacs@gnu.org>

> The message should not be printed, because what happened is something
> which shouldn't happen.

Hm.  FWIW, Eli's msg seems to contradict that:

  "They are always printed to *Messages*, as redisplay has no
   other ways of recording these errors that don't re-enter redisplay.

Which makes sense.

From what I gather from your reply and his, a quit signal from C-g (but not from
code?) during mode-line redisplay normally does not result in such a message in
*Messages*, because the redisplay code binds `inhibit-quit' to non-nil while it
does its thing.

So if the msg resulted from my hitting C-g then the fact that the message is
present indicates that something must have changed `inhibit-quit' to nil.

FWIW, this is the only time I've seen such a msg.

> I'm not sure how best to try and 
> track down the source of this `quit' signal, OTOH.
> 
> The only non-negligible computation in your expression seems 
> to be a few calls to `current-column'
> Oh, wait, there's also the "mapcar #'eval" which could potentially do
> something non-trivial, so you might want to look in there, see if some
> of the code run from there might let-bind inhibit-quit back 
> to nil or if it might signal `quit'?

This is the list that `eval' is mapped over:

 (" %d ch, %d l"
  (abs (- (mark t) (point)))
  (count-lines (mark t) (point)))

(`format' is then applied to that result.)

I don't see anywhere that `inhibit-quit' could be bound to nil in that code.
But I didn't recursively check the def of each function that is called by
`count-lines'.

I imagine that it could be bound to nil more generally, in some operation during
which the mode line happened to get updated by display.  But that is presumably
already taken care of - I imagine that the binding to non-nil happens when
mode-line updating begins.






  reply	other threads:[~2012-10-22 20:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-22 16:00 bug#12704: 24.2.50; QuitError during redisplay: (eval (\` ((-3 (\, (propertize "%p" Drew Adams
2012-10-22 17:10 ` Eli Zaretskii
2012-10-22 17:56   ` Drew Adams
2012-10-22 18:40     ` Stefan Monnier
2012-10-22 20:39       ` Drew Adams [this message]
2012-10-22 21:18         ` Eli Zaretskii
2012-10-31 21:03         ` Drew Adams
2014-02-09  3:06           ` bug#12515: " Lars Ingebrigtsen
2012-10-22 20:13     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2B2AB6A97B554C8EAA17A1A14422F191@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=12704@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).