From: Rasmus <rasmus@gmx.us>
To: 20097@debbugs.gnu.org
Subject: bug#20097: 25.0.50; focus-out-hook doesn't work w/other emacsclient frame
Date: Thu, 12 Mar 2015 12:38:42 +0100 [thread overview]
Message-ID: <87vbi64f99.fsf@gmx.us> (raw)
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!
next reply other threads:[~2015-03-12 11:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-12 11:38 Rasmus [this message]
2015-03-12 15:01 ` bug#20097: 25.0.50; focus-out-hook doesn't work w/other emacsclient frame Stefan Monnier
2015-03-12 15:14 ` Rasmus
2020-01-15 5:30 ` Stefan Kangas
2020-01-15 14:03 ` Stefan Monnier
2020-01-15 18:16 ` Stefan Kangas
2020-01-15 19:08 ` Stefan Monnier
2020-01-15 19:16 ` Stefan Kangas
2020-01-15 19:50 ` Stefan Monnier
2020-01-15 20:18 ` Stefan Kangas
2020-01-19 10:15 ` bug#20097: " Rasmus Pank Roulund
2020-08-12 16:21 ` Stefan Kangas
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=87vbi64f99.fsf@gmx.us \
--to=rasmus@gmx.us \
--cc=20097@debbugs.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.