unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* foucs-in-hook uses the last tty no the current.
@ 2016-11-24  4:29 Shiyao Ma
  2016-11-24 19:35 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Shiyao Ma @ 2016-11-24  4:29 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

In emacs25, I found 'focus-in-hook uses the last focus-ed tty, not the to be focus-ed tty.
For example,
(add-hook 'focus-in-hook (lambda () (princ (terminal-name))))

It will print the last focus-ed tty.

This is semantically wrong and makes this hook not useful at all, (we already have 'foucs-out-hook).


Can anyone reproduce the above defect behavior?  Or am I get something wrong?



Regards.


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

end of thread, other threads:[~2016-11-24 19:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-24  4:29 foucs-in-hook uses the last tty no the current Shiyao Ma
2016-11-24 19:35 ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).