GNU bug report logs - #20097
Add new hook to be run when switching frames

Previous Next

Package: emacs;

Reported by: Rasmus <rasmus <at> gmx.us>

Date: Thu, 12 Mar 2015 11:40:03 UTC

Severity: wishlist

Found in version 25.0.50

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 20097 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Rasmus <rasmus <at> gmx.us>
Cc: 20097 <at> debbugs.gnu.org
Subject: Re: bug#20097: 25.0.50;
 focus-out-hook doesn't work w/other emacsclient frame
Date: Thu, 12 Mar 2015 11:01:56 -0400
> I think focus-out-hook doesn't work as expected when used with other
> emacsclient that belong to the same daemon.  Of course I could be
> misunderstanding the meaning of "input focus" cf. the docstring.

`focus-out-hook' is run when focus moved away from Emacs (at least,
that's the intention).

If you want a hook run when switching between frames, then I think
you'll need to catch the `switch-frame' event (yes, this sucks: one is
a hook, the other is an event), which is normally handled by
handle-switch-frame via a binding in the global-map.

So IIUC I think that what you're seeing is not a bug.  But I'm not sure IUC.


        Stefan




This bug report was last modified 4 years and 285 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.