From: Joost Kremers <joostkremers@yahoo.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Detect window switches?
Date: 26 Sep 2013 16:54:34 GMT [thread overview]
Message-ID: <slrnl48pma.2vt.joostkremers@j.kremers4.news.arnhem.chello.nl> (raw)
In-Reply-To: mailman.2910.1380199959.10748.help-gnu-emacs@gnu.org
martin rudalics wrote:
> > Mmm, the documentation of that hook says that "[t]he buffer-local part
> > of this hook is run once for each window on the affected frame,
> > with the relevant window selected and its buffer current." That doesn't
> > seem to leave much room for determining if the relevant window has just
> > lost focus.
>
> Did you try the "global" part? If it doesn't work, please report a bug.
A quick test I just did suggests that window-configuration-change-hook
isn't even called when switching from one window to another, e.g., with
`other-window' or one of the `windmove-*' commands.
I apologise if my initial description was too unclear. 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. From what
I've been able to find on the internet, this isn't possible.
TIA
--
Joost Kremers joostkremers@fastmail.fm
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
next parent reply other threads:[~2013-09-26 16:54 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 ` Joost Kremers [this message]
2013-09-26 17:49 ` Detect window switches? 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
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=slrnl48pma.2vt.joostkremers@j.kremers4.news.arnhem.chello.nl \
--to=joostkremers@yahoo.com \
--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.