From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.bugs Subject: bug#28591: 27.0.50; xterm-set-window-title Date: Tue, 26 Sep 2017 09:45:01 +0900 Organization: Emacsen advocacy group Message-ID: References: <87efqv9dp5.fsf@udel.edu> <87377avghj.fsf@udel.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1506386783 15600 195.159.176.226 (26 Sep 2017 00:46:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 26 Sep 2017 00:46:23 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (i686-pc-cygwin) Cc: 28591@debbugs.gnu.org To: Mark Oteiza Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 26 02:46:17 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 1dwe0r-0003K6-9R for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Sep 2017 02:46:13 +0200 Original-Received: from localhost ([::1]:45038 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwe0w-0005Sk-Im for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Sep 2017 20:46:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwe0r-0005Se-4J for bug-gnu-emacs@gnu.org; Mon, 25 Sep 2017 20:46:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dwe0m-0005nM-EA for bug-gnu-emacs@gnu.org; Mon, 25 Sep 2017 20:46:13 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50582) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dwe0g-0005Uq-En for bug-gnu-emacs@gnu.org; Mon, 25 Sep 2017 20:46:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dwe0f-0000WQ-SM for bug-gnu-emacs@gnu.org; Mon, 25 Sep 2017 20:46:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Katsumi Yamaoka Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Sep 2017 00:46: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.15063867181950 (code B ref 28591); Tue, 26 Sep 2017 00:46:01 +0000 Original-Received: (at 28591) by debbugs.gnu.org; 26 Sep 2017 00:45:18 +0000 Original-Received: from localhost ([127.0.0.1]:59263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwdzy-0000VM-3Z for submit@debbugs.gnu.org; Mon, 25 Sep 2017 20:45:18 -0400 Original-Received: from mail-hampton.hostforweb.net ([205.234.186.191]:32811 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwdzw-0000VA-JV for 28591@debbugs.gnu.org; Mon, 25 Sep 2017 20:45:16 -0400 Original-Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89) (envelope-from ) id 1dwdzi-002aZU-Iq; Mon, 25 Sep 2017 19:45:09 -0500 X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( Cancel-Lock: sha1:U0uwE0uBpiSsfiMa9seGWOIT/Ck= X-OutGoing-Spam-Status: No, score=-1.5 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: authenticated_id: yamaoka/from_h X-Authenticated-Sender: hampton.hostforweb.net: yamaoka@jpl.org X-Source: X-Source-Args: X-Source-Dir: 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:137445 Archived-At: On Mon, 25 Sep 2017 13:24:24 -0400, Mark Oteiza wrote: > Mark Oteiza writes: >> Katsumi Yamaoka writes: >>> The feature looks nice but I want the original title to come back >>> when Emacs exits or suspends (even if it launches with -Q). >> I posted a patch here >> https://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00728.html >> but at the moment it's not clear to me how to handle other terminals >> that use an xterm- family terminfo. I use: $ xterm -v XTerm(327) $ xterm& Then the title bar of the launched xterm shows "xterm". > 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'. Regards,