From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Shiyao Ma Newsgroups: gmane.emacs.help Subject: foucs-in-hook uses the last tty no the current. Date: Wed, 23 Nov 2016 20:29:51 -0800 (PST) Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1479962036 7599 195.159.176.226 (24 Nov 2016 04:33:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 24 Nov 2016 04:33:56 +0000 (UTC) Injection-Date: Thu, 24 Nov 2016 04:29:51 +0000 User-Agent: G2/1.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 24 05:33:52 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9ljM-0001BY-7w for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Nov 2016 05:33:52 +0100 Original-Received: from localhost ([::1]:37887 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9ljP-0002ft-LQ for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Nov 2016 23:33:55 -0500 X-Received: by 10.157.17.136 with SMTP id v8mr60787otf.92.1479961791445; Wed, 23 Nov 2016 20:29:51 -0800 (PST) X-Received: by 10.157.37.59 with SMTP id k56mr11759otb.3.1479961791334; Wed, 23 Nov 2016 20:29:51 -0800 (PST) Original-Path: usenet.stanford.edu!n6no514472qtd.0!news-out.google.com!j8ni2044qtc.0!nntp.google.com!n6no514468qtd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Original-Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=59.149.183.163; posting-account=t6zkagoAAABMlcDHKIr0fSXTarZKJY86 Original-NNTP-Posting-Host: 59.149.183.163 Original-Xref: usenet.stanford.edu gnu.emacs.help:219011 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111780 Archived-At: 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.