GNU bug report logs -
#20097
Add new hook to be run when switching frames
Previous Next
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
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#20097: Add new hook to be run when switching frames
which was filed against the emacs package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 20097 <at> debbugs.gnu.org.
--
20097: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20097
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Rasmus Pank Roulund <rasmus <at> gmx.us> writes:
>>> Yes, but it's up to you to describe your use case with enough info that
>>> the semantics that they choose is useful for you.
>>
>> I'm just triaging bugs, and don't have any use case to provide.
>> Perhaps the OP will be able to provide us with more details.
>
> I hardly remember at this point.
>
> I think I wanted to use it for opening an Org Agenda view via Gnome Shell
> and (type <Super> agenda, opening an emacsclient) and get rid of the
> window once I click somewhere else.
>
> Feel free to close.
Thanks, it seems to be that it will be hard to make any progress here
without having a specific use-case.
I'm therefore closing this bug report.
Best regards,
Stefan Kangas
[Message part 3 (message/rfc822, inline)]
Hi,
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.
Try the following. Start a new emacsclient. Let's call its first GTK
frame 'A' (informally). Do
1. Make (new-frame). Let's call this frame 'B' (informally).
2. Make a new buffer in B and eval:
(set (make-local-variable (quote focus-out-hook)) (quote delete-frame))
3. Switch focus to frame A. I do so by clicking on A or using
Super/M-TAB. Notice that nothing happens
4. Now try this with another program that's not an emacsclient. The
Frame is closed as expected.
The real use case for this is an org-agenda desktop file that I use to
integrate the Org calendar with the system calendar button.
Thanks,
Ramus
GNU Emacs 25.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.8) of 2015-02-06 on x200s
--
When in doubt, do it!
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.