From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#28340: 26.0.50; xterm frame titles Date: Wed, 20 Sep 2017 10:47:26 +0300 Message-ID: <83poalg6b5.fsf@gnu.org> References: <87h8wjo44r.fsf@holos> <83mv6b2j4l.fsf@gnu.org> <20170912012122.GA11282@holos.localdomain> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1505893698 2053 195.159.176.226 (20 Sep 2017 07:48:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 20 Sep 2017 07:48:18 +0000 (UTC) Cc: 28340@debbugs.gnu.org To: Mark Oteiza Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 20 09:48:09 2017 Return-path: Envelope-to: geb-bug-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 1duZjt-0008Qt-7w for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Sep 2017 09:48:09 +0200 Original-Received: from localhost ([::1]:47255 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duZk0-0004Bd-CX for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Sep 2017 03:48:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duZjq-00049s-Va for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2017 03:48:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duZjm-00085y-TC for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2017 03:48:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40364) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duZjm-00084u-P7 for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2017 03:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1duZjm-0006VT-Ej for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2017 03:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Sep 2017 07:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28340 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28340-submit@debbugs.gnu.org id=B28340.150589367124995 (code B ref 28340); Wed, 20 Sep 2017 07:48:02 +0000 Original-Received: (at 28340) by debbugs.gnu.org; 20 Sep 2017 07:47:51 +0000 Original-Received: from localhost ([127.0.0.1]:49045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duZjZ-0006V2-IK for submit@debbugs.gnu.org; Wed, 20 Sep 2017 03:47:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duZjV-0006Uo-W7 for 28340@debbugs.gnu.org; Wed, 20 Sep 2017 03:47:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duZjM-0006O1-Ql for 28340@debbugs.gnu.org; Wed, 20 Sep 2017 03:47:40 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34863) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duZjM-0006NW-Nm; Wed, 20 Sep 2017 03:47:36 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3026 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1duZjK-0000e0-SS; Wed, 20 Sep 2017 03:47:35 -0400 In-reply-to: <20170912012122.GA11282@holos.localdomain> (message from Mark Oteiza on Mon, 11 Sep 2017 21:21:22 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:137163 Archived-At: > Date: Mon, 11 Sep 2017 21:21:22 -0400 > From: Mark Oteiza > Cc: 28340@debbugs.gnu.org > > > Maybe one of the hooks provided by server.el would fit the bill? > > Nope, none of those appear relevant, and hooking into them does nothing > apparent. Even doing the following, I get the title as the selected > buffer in the previously selected frame. > > Messaging (frame-list) in xterm-test shows that the car of the list is > always the new frame, but still the frame title is incorrect--a new > frame created by emacsclient -t ends up on the scratch buffer. I say > "ends up" because sometimes I see another buffer flash before I see the > scratch buffer. This all seems a little buggy to me, but I know > Bug#18137 and its ancestors were tough. What about window-configuration-change-hook, does that help? You could set some flag in after-make-frame-functions, and then test and reset that flag in window-configuration-change-hook, when you see that a buffer is switched in the frame. Would that work?