all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: dmantipov@yandex.ru, emacs-devel@gnu.org
Subject: Re: Hit eassert introduced in r110971
Date: Sat, 06 Apr 2013 20:36:35 -0400	[thread overview]
Message-ID: <jwvk3of2nc1.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <83sj33cvvx.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 06 Apr 2013 22:16:34 +0300")

> And btw, why do we at all care here about the selected window?
> AFAICS, none of the code involved ever changes that.

As the comment indicates, this code needs to temporarily change the
selected frame, and hence the selected window.

> Or, if we do care (maybe some weird code that updates the tool bar can
> switch windows?), then simply saving and restoring it would be better
> than the assertion.

> Stefan, am I missing something?

AFAIK, if this assertion fails, it means we have a problem somewhere.
Not necessarily in update_tool_bar, but somewhere.  OTOH it is a problem
that will very rarely cause real trouble once you deactivate
the assertion.  So what we need to do is to add similar assertions
elsewhere to work our way up to the root of the problem.


        Stefan



  reply	other threads:[~2013-04-07  0:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-06 16:35 Hit eassert introduced in r110971 Dmitry Antipov
2013-04-06 18:37 ` Eli Zaretskii
2013-04-06 19:16   ` Eli Zaretskii
2013-04-07  0:36     ` Stefan Monnier [this message]
2013-04-07  2:49       ` Eli Zaretskii
2013-04-07 13:50         ` Stefan Monnier
2013-04-07 15:37           ` Eli Zaretskii
2013-04-07 17:54             ` Stefan Monnier
2013-04-08 15:02       ` Eli Zaretskii
2013-04-08 17:40         ` Stefan Monnier

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

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

  git send-email \
    --in-reply-to=jwvk3of2nc1.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=dmantipov@yandex.ru \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.