all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#20097: 25.0.50; focus-out-hook doesn't work w/other emacsclient frame
@ 2015-03-12 11:38 Rasmus
  2015-03-12 15:01 ` Stefan Monnier
  0 siblings, 1 reply; 12+ messages in thread
From: Rasmus @ 2015-03-12 11:38 UTC (permalink / raw)
  To: 20097

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!





^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-08-12 16:21 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-12 11:38 bug#20097: 25.0.50; focus-out-hook doesn't work w/other emacsclient frame Rasmus
2015-03-12 15:01 ` 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

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.