all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Detect window switches?
Date: Thu, 26 Sep 2013 20:49:32 +0300	[thread overview]
Message-ID: <83r4cbfp77.fsf@gnu.org> (raw)
In-Reply-To: <slrnl48pma.2vt.joostkremers@j.kremers4.news.arnhem.chello.nl>

> From: Joost Kremers <joostkremers@yahoo.com>
> Date: 26 Sep 2013 16:54:34 GMT
> 
> What I'd like to know is if it's possible to detect when a window
> goes from being selected to being not selected and vice versa. Or,
> alternatively, when a buffer goes from being current to not current
> and vice versa.

There's always post-command-hook, where you can test whether the
current-buffer is one of yours, and act accordingly.



  reply	other threads:[~2013-09-26 17:49 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 [this message]
     [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
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=83r4cbfp77.fsf@gnu.org \
    --to=eliz@gnu.org \
    --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.