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#28591: 27.0.50; xterm-set-window-title Date: Tue, 26 Sep 2017 00:08:08 -0400 Message-ID: <20170926040808.zofxjqrl735zeye3@logos.localdomain> 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 1506398954 19390 195.159.176.226 (26 Sep 2017 04:09:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 26 Sep 2017 04:09:14 +0000 (UTC) User-Agent: NeoMutt/20170912-13-728bb5 Cc: 28591@debbugs.gnu.org To: Katsumi Yamaoka Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 26 06:09:08 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 1dwhBC-0004Z3-MT for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Sep 2017 06:09:06 +0200 Original-Received: from localhost ([::1]:45504 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwhBJ-0007Um-Ql for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Sep 2017 00:09:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwhBC-0007T6-55 for bug-gnu-emacs@gnu.org; Tue, 26 Sep 2017 00:09:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dwhB8-0002vE-Vb for bug-gnu-emacs@gnu.org; Tue, 26 Sep 2017 00:09:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50727) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dwhB8-0002v3-OX for bug-gnu-emacs@gnu.org; Tue, 26 Sep 2017 00:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dwhB8-00078R-Dz for bug-gnu-emacs@gnu.org; Tue, 26 Sep 2017 00:09:02 -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, 26 Sep 2017 04:09:02 +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.150639889827373 (code B ref 28591); Tue, 26 Sep 2017 04:09:02 +0000 Original-Received: (at 28591) by debbugs.gnu.org; 26 Sep 2017 04:08:18 +0000 Original-Received: from localhost ([127.0.0.1]:59408 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwhAQ-00077Q-GM for submit@debbugs.gnu.org; Tue, 26 Sep 2017 00:08:18 -0400 Original-Received: from mail-qt0-f170.google.com ([209.85.216.170]:47860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwhAO-00077D-C5 for 28591@debbugs.gnu.org; Tue, 26 Sep 2017 00:08:17 -0400 Original-Received: by mail-qt0-f170.google.com with SMTP id b1so9120375qtc.4 for <28591@debbugs.gnu.org>; Mon, 25 Sep 2017 21:08:16 -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=z81nyeRwi5mM+1P/HwEJQKy5wb3+zWyBVHjjRvb1W5g=; b=e/iP54mWds8FfCpONVSqSaWFD3okMVOkJCIvbDvdFIA3rUijJLMAmHlEWL5fSJkqVW VN3GHiXaxk/cpNEoDQSFIIh61a28ok4kp9AHUaKle6HZgpmn4QF96hb2lz4U/+sshJAC Jp34M8mGCtogC6E/TiyRcjVI1lMu7E1XpLWI7/FU/RvU7NFJyg7rneNhjUCuSoqdOppd UnZbbfMHhroDiTryiAQXKX7s+LmJBVlSSIztkcpVRybBcvP7oGdrLgnp5gdHhTKCk/XU OgtMDAG0Mlzo27vrOE5dnfiSxn/LBtIvrCTTa5kLD/BTn9KZ9x3AAeYiFUw9svOl2tFk 29cw== 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=z81nyeRwi5mM+1P/HwEJQKy5wb3+zWyBVHjjRvb1W5g=; b=aYA+SCbV+B27qfdiIyJCP8xNVXjOACFWSoY/5P65zHVpCWtyzmnOF3aSDBnJCuF+2k RAL+IZTy9tSfDf87Md6w5qw469oidOonzURMki0L5zFYuqPXL6RBrbCcyRUv41JK+inC Hm7p48/EjVGdUuMakND9+44JPEM9VnuMOBPiuHISR1N5dVWR0drr3RK3PqJj0xlHwNW7 5zpRShmN3GZ2K/2ySujNhTxmHm2s36+Qy12EnVQIZPc2TUE+2yS//j3Lg+DcXivf/dC+ zJ65Q2BhgO8FydXgZDtC+BecJd/ja9YZVbcN9g1xgIlbNqr2NTNGvOxHbmKCA2aH8r0c 9GqA== X-Gm-Message-State: AHPjjUg2jq6cIbs0xdYcAsWRV01TqRL3Uf1TfsSrqai2seTCIUElXUYJ jPWbdK8B33GFxRIDNeBWY4JBH+lTzB4= X-Google-Smtp-Source: AOwi7QDpXF2VydGF6OJ+VxvaHre6JfsKZn/1ciEZmfzyJeN+PFHRrua5mqrlXHK9TiVRXXEQULf3oQ== X-Received: by 10.200.24.65 with SMTP id n1mr14081562qtk.323.1506398890763; Mon, 25 Sep 2017 21:08:10 -0700 (PDT) Original-Received: from logos.localdomain (pool-173-67-36-61.bltmmd.fios.verizon.net. [173.67.36.61]) by smtp.gmail.com with ESMTPSA id i84sm6366534qkh.17.2017.09.25.21.08.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 25 Sep 2017 21:08:09 -0700 (PDT) Content-Disposition: inline In-Reply-To: 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:137450 Archived-At: On 26/09/17 at 12:45am, Katsumi Yamaoka wrote: > 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'. 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.