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: Fri, 29 Sep 2017 09:05:42 -0400 Message-ID: <20170929130542.tk47k53s5dibjfoe@logos.localdomain> References: <87efqv9dp5.fsf@udel.edu> <87377avghj.fsf@udel.edu> <20170926040808.zofxjqrl735zeye3@logos.localdomain> <83ing1941b.fsf@gnu.org> <20170929115700.ag4xni2tckiak4nt@logos.localdomain> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1506690389 22568 195.159.176.226 (29 Sep 2017 13:06:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 29 Sep 2017 13:06:29 +0000 (UTC) User-Agent: NeoMutt/20170912-48-0df7d3-dirty Cc: yamaoka@jpl.org, 28591@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 29 15:06:21 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 1dxuzh-0004tZ-Gd for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Sep 2017 15:06:17 +0200 Original-Received: from localhost ([::1]:35362 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxuzl-0008Pb-N4 for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Sep 2017 09:06:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxuzY-0008OF-Kp for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 09:06:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxuzS-0005Iv-S3 for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 09:06:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57313) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dxuzS-0005Ir-OC for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 09:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dxuzS-0002vO-Gp for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 09:06: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: Fri, 29 Sep 2017 13:06: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.150669035011216 (code B ref 28591); Fri, 29 Sep 2017 13:06:02 +0000 Original-Received: (at 28591) by debbugs.gnu.org; 29 Sep 2017 13:05:50 +0000 Original-Received: from localhost ([127.0.0.1]:37759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxuzG-0002up-E5 for submit@debbugs.gnu.org; Fri, 29 Sep 2017 09:05:50 -0400 Original-Received: from mail-qk0-f177.google.com ([209.85.220.177]:55955) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxuzE-0002uS-Q2 for 28591@debbugs.gnu.org; Fri, 29 Sep 2017 09:05:49 -0400 Original-Received: by mail-qk0-f177.google.com with SMTP id q8so1067484qkl.12 for <28591@debbugs.gnu.org>; Fri, 29 Sep 2017 06:05:48 -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=ROc5/hEaxX1XM76BVjQjkGMMqKoJQUbttH8hkKZWEN0=; b=CJmCPs1Bqskdnf20Yg3QL4njLYJvy/dBY10ipJDTIWbXxlMn8HzdoxktIre72ujGIc e4s0MfDoqpIybTr1fKgXcSVd+tiV1k2i/QbGBOwgJgbRBEN5xD/9uAWEWdCwJ/rwQYiK jDAGGu248PdndhrisGKqyPGZ1RQeuYskZvRjg9S1hpjK9Un0HTAbt+h9MuOXeivgBPKC EeN2lE8/pQYqBktzok8nPXEUvBgYW7ajiPUJE7PsLlclYncabh0KoTR43ukdqcnezEVd lyXS8XoIzo6s0uMBMpgkaMdWM2N7A+u+2sdkbWoa9xynwlgVemXJOH9DeVHyg/I5u7DN Z3GA== 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=ROc5/hEaxX1XM76BVjQjkGMMqKoJQUbttH8hkKZWEN0=; b=JGVwLyyJjCjqkY4UW98rb4u6TJOwTMVfh2Gvf3WkGL5Ygf8OTHzaCWXf3jkFiLWXkc RA/M3+M3s2ZKrD3tSkUn+eFYlOLIvoh6FoIOVm9AaZ+6X9NPTUNReb0BWwSjjyum3RWT wR9F+8J4UE6LiWLN/38oe+u2HoaugBGgvv/7sAZAmnaS9BqoxCZTejh3XONy5br2q8lG XVgOpks/7axAOpNYtL//t1V0PLfHSkDlpVqmGu8kpMcLoF3tQBUt9aS2LZRn2s+al9nC 4hJgx06ty2xCJG4HXlwg1VPD17UdHbYbg8KeZ7ZD5hQFuqHnH8Xd43BfpMgm98yn4NkP WSyw== X-Gm-Message-State: AMCzsaUfjnWLL/bdvUeRtXXuFegkhc/MWbCVBe0hzTR8ekuxdJtTCWPw BJYVahJDj5Ga4h8sNIrroFx7f/9Yks4= X-Google-Smtp-Source: AOwi7QAd2YqfbuLb6edAyHeULjTV9Uq5cbeQiYB3QgKISB6PC5x/feWix6Mns6UuuIqlqdwYgD92Bw== X-Received: by 10.55.68.77 with SMTP id r74mr2992866qka.125.1506690343345; Fri, 29 Sep 2017 06:05:43 -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 a132sm2522906qkb.28.2017.09.29.06.05.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Sep 2017 06:05:42 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20170929115700.ag4xni2tckiak4nt@logos.localdomain> 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:137588 Archived-At: On 29/09/17 at 07:57am, Mark Oteiza wrote: > On 29/09/17 at 01:45pm, Eli Zaretskii wrote: > > > 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. > > Everything except foregrounding a client works (I did not test this), > where the following occurs: Correction: deleting a frame does not restore the window title as Katsumi pointed out. I have a shell hook that sets the window title which I keep forgetting to disable when testing this