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#28591: 27.0.50; xterm-set-window-title Date: Fri, 29 Sep 2017 13:45:36 +0300 Message-ID: <83ing1941b.fsf@gnu.org> References: <87efqv9dp5.fsf@udel.edu> <87377avghj.fsf@udel.edu> <20170926040808.zofxjqrl735zeye3@logos.localdomain> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1506682036 31506 195.159.176.226 (29 Sep 2017 10:47:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 29 Sep 2017 10:47:16 +0000 (UTC) Cc: yamaoka@jpl.org, 28591@debbugs.gnu.org To: Mark Oteiza Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 29 12:47: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 1dxsp1-0007QC-9J for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Sep 2017 12:47:07 +0200 Original-Received: from localhost ([::1]:34631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxsp7-0001TN-3q for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Sep 2017 06:47:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxsp0-0001Ss-7q for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 06:47:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxsow-0002ta-8Y for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 06:47:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57210) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dxsow-0002tU-53 for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 06:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dxsov-0005hW-UR for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 06:47:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Sep 2017 10:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28591 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28591-submit@debbugs.gnu.org id=B28591.150668196621828 (code B ref 28591); Fri, 29 Sep 2017 10:47:01 +0000 Original-Received: (at 28591) by debbugs.gnu.org; 29 Sep 2017 10:46:06 +0000 Original-Received: from localhost ([127.0.0.1]:37655 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxso1-0005g0-NO for submit@debbugs.gnu.org; Fri, 29 Sep 2017 06:46:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56501) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxso0-0005fF-5E for 28591@debbugs.gnu.org; Fri, 29 Sep 2017 06:46:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxsnr-0002Y3-36 for 28591@debbugs.gnu.org; Fri, 29 Sep 2017 06:45:58 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37310) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxsnq-0002Xw-VX; Fri, 29 Sep 2017 06:45:54 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1138 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dxsnp-0007a8-8H; Fri, 29 Sep 2017 06:45:54 -0400 In-reply-to: <20170926040808.zofxjqrl735zeye3@logos.localdomain> (message from Mark Oteiza on Tue, 26 Sep 2017 00:08:08 -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:137576 Archived-At: > Date: Tue, 26 Sep 2017 00:08:08 -0400 > From: Mark Oteiza > Cc: 28591@debbugs.gnu.org > > > > The following lightly tested patch appears to do the right thing here. > > > > Thanks. I tried. But nothing seems to be changed unfortunately. > > When I run `emacs -nw' in the xterm, the title becomes to > > "emacs@hostname" but the original title "xterm" is not pushed to > > the `xterm-window-title-stack' variable. And the title does not > > come back to "xterm" when I exit or suspend Emacs -nw. > > > > I tried adding `(error "XXX")' to the `xterm--title-handler' > > function but nothing happens (with no error). So, the function > > doesn't seem to run by way of `xterm-push-title-stack'. > > Grr, thanks. I see what you're seeing in XTerm 330. I am stumped--not > sure this is possible in Elisp, so I'm inclined to revert. That'd be too drastic, I think. The code did work for you, right? So it definitely works for some configurations out there, and I think we could leave it in Emacs, turned off by default, and allow its optional activation with the proper warning that it might not work for some versions of xterm. WDYT?