From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark Oteiza Newsgroups: gmane.emacs.bugs Subject: bug#28340: 26.0.50; xterm frame titles Date: Mon, 11 Sep 2017 21:21:22 -0400 Message-ID: <20170912012122.GA11282@holos.localdomain> References: <87h8wjo44r.fsf@holos> <83mv6b2j4l.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1505331704 1178 195.159.176.226 (13 Sep 2017 19:41:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 13 Sep 2017 19:41:44 +0000 (UTC) User-Agent: Mutt/1.9.0 (2017-09-02) Cc: 28340@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 12 03:22:22 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 1drZtu-0008VI-07 for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Sep 2017 03:22:06 +0200 Original-Received: from localhost ([::1]:33062 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drZu1-00056n-7R for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Sep 2017 21:22:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drZtu-00055h-Uw for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2017 21:22:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drZtq-0003ig-2N for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2017 21:22:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53932) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1drZtp-0003iU-Un for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2017 21:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1drZtp-0005k3-Ns for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2017 21:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mark Oteiza Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Sep 2017 01:22:01 +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.150517929122036 (code B ref 28340); Tue, 12 Sep 2017 01:22:01 +0000 Original-Received: (at 28340) by debbugs.gnu.org; 12 Sep 2017 01:21:31 +0000 Original-Received: from localhost ([127.0.0.1]:34380 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drZtL-0005jL-I7 for submit@debbugs.gnu.org; Mon, 11 Sep 2017 21:21:31 -0400 Original-Received: from mail-qk0-f195.google.com ([209.85.220.195]:36271) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drZtK-0005j9-4a for 28340@debbugs.gnu.org; Mon, 11 Sep 2017 21:21:30 -0400 Original-Received: by mail-qk0-f195.google.com with SMTP id i14so6419680qke.3 for <28340@debbugs.gnu.org>; Mon, 11 Sep 2017 18:21:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=udel-edu.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=pkTEi21mozXh7OKW/5OdIe5BQykc2LRBRZQ9au+JoT0=; b=AgamkrbL7p3aysqdTGAVIY971Wm8iWHxiftw8QC+18jJuzVt3lMTdErfggjx14uCGh lfut86gF/ZIb1Xb5k/3h0OVEB00OeVQU/xEGv44JFT60nCL7c1CGHN8uawZrhk/y4nQK TB8/Xd9rZbupybinKA/lskfXliJbV4V2QJexZxigO9+eJ5VHY4HiZwHVipq7BRmlpg8h UnPRAmkwlK2m7ej7dpPRdJKovgef/ueQHriWo1nOjnb72MG+l5m4IEt/RDQCGONjHqoK ja/XLRTplarHMXBjAf1FlMW5Kk527MwdvRthkH9TsZ8j1FobsJex/hX5V+y3832pIeLT nLAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=pkTEi21mozXh7OKW/5OdIe5BQykc2LRBRZQ9au+JoT0=; b=iDJ0kcbUodivJfMlUpLUNqRZcSv069yH9fDuFqo4/VjGJBqqjk7vbnN9hxJBNG4VcZ O1uV+MXYnZNstiREDCC20TMAm9Js8C4NFC8qnH/vvuXmqsl9zOIyjNLFtvlBf+pF1M2K 3ecYcywAyCuCCJwQOgDSx2Eblq5YbOqKIpioeYj30YADGLxM9/WMHM5BEE+QwBhA7OuX SAYmicVFGH0564sQ3cFIz2/jJI6dGYuTvxkExZlwL9G9wV4i58QAVexNh2XzyO6AJRTL 3FbeZIxHeQowreZYdLYAxYmHBGUIMnaBtnAuXQlpqGajng5UszKTGA731XNVqK2rQa28 rxng== X-Gm-Message-State: AHPjjUj7QJUJJQy5cwjo8VuX+7phWSSVr1H0lLUFizl8bt8+nwrDQCqz PfDymy5HE4EjZWSHWJOpMw== X-Google-Smtp-Source: AOwi7QC30uo2lY3OwdSrNyj8BqS5aFKTIu+GSIe7rT/t3VD+sbaAiVydfELOmHWRdcCnvgwQ+GQNyg== X-Received: by 10.55.215.211 with SMTP id t80mr11371973qkt.30.1505179284365; Mon, 11 Sep 2017 18:21:24 -0700 (PDT) Original-Received: from holos.localdomain (pool-173-67-36-61.bltmmd.fios.verizon.net. [173.67.36.61]) by smtp.gmail.com with ESMTPSA id o9sm6947423qte.71.2017.09.11.18.21.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Sep 2017 18:21:23 -0700 (PDT) Original-Received: by holos.localdomain (Postfix, from userid 1000) id 26EDB68E70; Mon, 11 Sep 2017 21:21:22 -0400 (EDT) Content-Disposition: inline In-Reply-To: <83mv6b2j4l.fsf@gnu.org> 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:136929 On 04/09/17 at 07:16am, Eli Zaretskii wrote: > > From: Mark Oteiza > > Date: Sun, 03 Sep 2017 17:37:24 -0400 > > I tacked setting window/iconified window titles into term/xterm.el, but > > Thanks. This needs a NEWS entry, and I think there should be a > defcustom to turn this off, for those who'd like the default title > provided by xterm. Ok. > > found a quirk I suspect is related to Bug#18137 (which refers to > > 42fe2e88d and Bug#15025). Because clients don't always have focus, > > opening a new client won't trigger hooks that I would think trigger, > > perhaps even after-make-frame-functions or window-size-change-functions. > > 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. (defun xterm--init-frame-title () "Terminal initialization for `gui-set-selection'." (xterm-set-window-title) (add-hook 'after-make-frame-functions 'xterm-test) (add-hook 'server-switch-hook 'xterm-test) ;; (add-hook 'window-size-change-functions 'xterm-set-window-title) ;; (add-hook 'post-command-hook 'xterm-set-window-title) ;; (add-hook 'minibuffer-exit-hook 'xterm-set-window-title) ) (defun xterm-test (&optional frame) (select-frame (car (frame-list))) (xterm-set-window-title frame))