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 07:57:00 -0400 Message-ID: <20170929115700.ag4xni2tckiak4nt@logos.localdomain> References: <87efqv9dp5.fsf@udel.edu> <87377avghj.fsf@udel.edu> <20170926040808.zofxjqrl735zeye3@logos.localdomain> <83ing1941b.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 1506686289 28165 195.159.176.226 (29 Sep 2017 11:58:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 29 Sep 2017 11:58:09 +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 13:58:04 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 1dxtvg-0006uJ-25 for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Sep 2017 13:58:04 +0200 Original-Received: from localhost ([::1]:34916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxtvn-00027O-KV for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Sep 2017 07:58:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33022) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxtvh-000269-Dp for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 07:58:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxtve-0005iU-85 for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 07:58:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57247) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dxtve-0005iK-4s for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 07:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dxtvd-0000zF-UO for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 07:58: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: Fri, 29 Sep 2017 11:58: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.15066862313730 (code B ref 28591); Fri, 29 Sep 2017 11:58:01 +0000 Original-Received: (at 28591) by debbugs.gnu.org; 29 Sep 2017 11:57:11 +0000 Original-Received: from localhost ([127.0.0.1]:37695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxtuo-0000y4-WA for submit@debbugs.gnu.org; Fri, 29 Sep 2017 07:57:11 -0400 Original-Received: from mail-qt0-f175.google.com ([209.85.216.175]:57188) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxtum-0000xo-55 for 28591@debbugs.gnu.org; Fri, 29 Sep 2017 07:57:08 -0400 Original-Received: by mail-qt0-f175.google.com with SMTP id l25so1219690qtf.13 for <28591@debbugs.gnu.org>; Fri, 29 Sep 2017 04:57:08 -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=WXsHCCzvaaCffXMAUiTPsCPGizOgmcr6IBgQqVYHsPg=; b=JePhUsD5Ih+TnKdcxNBvMXNkzllxzfD88XzUYOSF5q8TgXpel21RVa+JZYeJsz+ySO bnYh8IV9+GAwYadaAn7rAaCKMgIfn7t2YZ21uSkSdvihw9cKl8rmhhOL/+r0BpE8VDiA AONZJmmV/s3Na4q/L2IaTLmPAoDFkFuFfqTQszq6ZNFuyg6AY3ZEJFk1wOo5rlKXnp7Y AyqzcIDrXKTk6KBZ9y8FzxD0BHOP1TXzr0aIe/p5ki4eZttMUnrVSVeOrVkUe2ok9Uqm UMAVAIjYZ4TnHPLXZaQZgaXzpftnEinDRkXCieheRw8nxqMPPcLYhDuIcJayQ9YRj0Ea Ykvw== 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=WXsHCCzvaaCffXMAUiTPsCPGizOgmcr6IBgQqVYHsPg=; b=TPUbG7R0eU9wUKXdLdLGe4GbnS09w7JRbIQMyr2r1jqt9ft+jPTiK1Fl7DSFR8rpRk a1r+G50qqVhMxhVcPTLyhAdxbL5gojxgyy6JocH7TP1uyPqvFskfzUk0segIOgFd5mzN PzTEUAyR6CwvOw1OA9Jkxj6yJamANPUJyVq7jnGJtNkM16LRC3y0Zx4akNEsHBzNHbYq Wht/jTgBI83nkFAaYiUWp3jnpoUayyP53MK0SUFJWMx63jwogXWyC+x2kq+EDFxrTD4W vKzr4BqaS0raaMKGc4bTUDaFwiMAcLcq6Ypgf1iqgg9w4bpMdRmwjuH+g8K4Flo/0Ibx k4GA== X-Gm-Message-State: AMCzsaVGf/w4DemTr14V47cker4EcHEVtER3RUXQksoEK4AmrRqLhzPz jakZg0RfkL8QPJeO+rvt+C0whw== X-Google-Smtp-Source: AOwi7QC3REAIQTvFYF/pk6rbqzHvCvrXLUnvxNJXlvrKx4ggv+U3xESfPzzOXh7guQhZ/EEnHp37XA== X-Received: by 10.200.38.68 with SMTP id v4mr5900055qtv.128.1506686222574; Fri, 29 Sep 2017 04:57:02 -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 y63sm2466390qky.75.2017.09.29.04.57.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Sep 2017 04:57:01 -0700 (PDT) Content-Disposition: inline In-Reply-To: <83ing1941b.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:137579 Archived-At: 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: Error in post-command-hook (xterm-set-window-title): (error "Terminal is currently suspended") post-command-hook is used to catch changing windows within a frame--I do not know if there is another hook (or event perhaps) that would better serve this purpose.