all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: Detect window switches?
Date: Thu, 26 Sep 2013 16:27:04 -0400	[thread overview]
Message-ID: <jwv1u4bz5zb.fsf-monnier+gmane.emacs.help@gnu.org> (raw)
In-Reply-To: 83mwmzfjoc.fsf@gnu.org

>> Hmm, starting to sound like a bug.  Here's an event that Emacs acts
>> on but doesn't make the event visible to ELisp.
> No, Emacs doesn't act on this as an event.  What happens is that the
> next redisplay after a window switch redraws the mode line in a
> different face.  The redisplay isn't triggered by an event (because
> there is no such event), it is triggered by other means, mostly
> because Emacs becomes idle.  That could happen many seconds after the
> switch, if Emacs becomes busy calculating something, for example.

Well the event is `redisplay', and indeed if we had
a before-redisplay-hook, we could use it to do that in Lisp (although
we'd bump into another problem: faces can't be set per-window.
Tho maybe with a redisplay-window-hook we could trick the display into
using different face settings for different windows).


        Stefan




  reply	other threads:[~2013-09-26 20:27 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.2910.1380199959.10748.help-gnu-emacs@gnu.org>
2013-09-26 16:54 ` Detect window switches? Joost Kremers
2013-09-26 17:49   ` Eli Zaretskii
     [not found]   ` <mailman.2942.1380217810.10748.help-gnu-emacs@gnu.org>
2013-09-26 18:22     ` Dan Espen
2013-09-26 18:37       ` Eli Zaretskii
     [not found]       ` <mailman.2950.1380220732.10748.help-gnu-emacs@gnu.org>
2013-09-26 19:22         ` Dan Espen
2013-09-26 19:48           ` Eli Zaretskii
2013-09-26 20:27             ` Stefan Monnier [this message]
2013-09-27  6:01               ` Eli Zaretskii
2013-09-27 13:13                 ` Stefan Monnier
     [not found]           ` <mailman.2957.1380224960.10748.help-gnu-emacs@gnu.org>
2013-09-26 20:15             ` Dan Espen
2013-09-27  5:57               ` Eli Zaretskii
     [not found]               ` <mailman.2973.1380261467.10748.help-gnu-emacs@gnu.org>
2013-09-27 15:27                 ` Dan Espen
2013-09-26 20:54           ` Joost Kremers
2013-09-26 20:51     ` Joost Kremers
2013-09-27  5:48 martin rudalics
  -- strict thread matches above, loose matches on Subject: below --
2013-09-26 12:52 martin rudalics
2013-09-25  9:07 Joost Kremers
2013-09-25  9:28 ` Pascal J. Bourguignon
2013-09-25 21:30   ` Joost Kremers
2013-09-25 21:44     ` Eli Zaretskii
     [not found]     ` <mailman.2884.1380145465.10748.help-gnu-emacs@gnu.org>
2013-09-26  2:50       ` Joost Kremers
2013-09-26  6:45         ` Eli Zaretskii
     [not found]         ` <mailman.2899.1380177976.10748.help-gnu-emacs@gnu.org>
2013-09-26 10:23           ` Joost Kremers

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=jwv1u4bz5zb.fsf-monnier+gmane.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@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.