From unknown Mon Jun 23 18:27:22 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#28591 <28591@debbugs.gnu.org> To: bug#28591 <28591@debbugs.gnu.org> Subject: Status: 27.0.50; xterm-set-window-title Reply-To: bug#28591 <28591@debbugs.gnu.org> Date: Tue, 24 Jun 2025 01:27:22 +0000 retitle 28591 27.0.50; xterm-set-window-title reassign 28591 emacs submitter 28591 Katsumi Yamaoka severity 28591 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 25 05:44:01 2017 Received: (at submit) by debbugs.gnu.org; 25 Sep 2017 09:44:01 +0000 Received: from localhost ([127.0.0.1]:57282 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwPvl-0004j7-AC for submit@debbugs.gnu.org; Mon, 25 Sep 2017 05:44:01 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46573) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwPvk-0004iw-Bb for submit@debbugs.gnu.org; Mon, 25 Sep 2017 05:44:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dwPve-0002ZV-CN for submit@debbugs.gnu.org; Mon, 25 Sep 2017 05:43:55 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34457) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dwPve-0002ZB-9e for submit@debbugs.gnu.org; Mon, 25 Sep 2017 05:43:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwPvd-0007m8-8P for bug-gnu-emacs@gnu.org; Mon, 25 Sep 2017 05:43:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dwPva-0002Y4-IA for bug-gnu-emacs@gnu.org; Mon, 25 Sep 2017 05:43:53 -0400 Received: from mail-hampton.hostforweb.net ([205.234.186.191]:50613 helo=hampton.hostforweb.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dwPva-0002Xs-ED for bug-gnu-emacs@gnu.org; Mon, 25 Sep 2017 05:43:50 -0400 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 1dwPvX-002tms-Om for bug-gnu-emacs@gnu.org; Mon, 25 Sep 2017 04:43:48 -0500 Date: Mon, 25 Sep 2017 18:43:45 +0900 Message-ID: From: Katsumi Yamaoka To: bug-gnu-emacs@gnu.org Subject: 27.0.50; xterm-set-window-title Organization: Emacsen advocacy group 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&( User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (i686-pc-cygwin) Cancel-Lock: sha1:EjYhyG82cirH5iw9obOyN7EBbzo= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OutGoing-Spam-Status: No, score=-1.0 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 - 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-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (barebone) [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hi, The feature looks nice but I want the original title to come back when Emacs exits or suspends (even if it launches with -Q). Thanks. In GNU Emacs 27.0.50 (build 1, i686-pc-cygwin, GTK+ Version 3.18.9) of 2017-09-25 built on localhost Windowing system distributor 'The Cygwin/X Project', version 11.0.11900000 From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 25 08:15:44 2017 Received: (at 28591) by debbugs.gnu.org; 25 Sep 2017 12:15:44 +0000 Received: from localhost ([127.0.0.1]:57411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwSIZ-0001mI-TS for submit@debbugs.gnu.org; Mon, 25 Sep 2017 08:15:44 -0400 Received: from mail-qk0-f170.google.com ([209.85.220.170]:55870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwSIX-0001m4-H2 for 28591@debbugs.gnu.org; Mon, 25 Sep 2017 08:15:42 -0400 Received: by mail-qk0-f170.google.com with SMTP id q8so6318725qkl.12 for <28591@debbugs.gnu.org>; Mon, 25 Sep 2017 05:15:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=udel-edu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=OG038jcAINAroVa5YMpyr5R327yQVGa+zASXNyg60JE=; b=CM261oFqLSGg77QN6nUmVVPz7oT+KyOXjAAWP+T4U/7zdRQiGSjxvJMLc81HjH2PBj TZNKpQdMWXAgZWQsyTav0a4iRbR/KK0jEU4UIu7I6gASWP+WL1UBMKgksp2rwjfNEdpT +Wgo5vWxrjLaGy76rErNbeIXcKkCaZCEjeyyofo2BdT+pP/i70kl7OsrR1K5sof1x6q4 VvCxh61+gha9o6AQunX/feTctQhSKx7l2jwnX7cdQ6HxHkz2GzJFVTIFCWCFzSuQk9wU yBayi+hkHxkXthsuob1AJAO9OKhbFFv7rzb2OMzMRB4axjst86Eny+Y10GIPBqBZJQhG V44A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=OG038jcAINAroVa5YMpyr5R327yQVGa+zASXNyg60JE=; b=TiOvBHHbEOp376iVlLFvnenfCfEjcLOwX12jkQ5uVyMBR0lSzC8WvFaHN2WWZhoIG7 H6tVJWyM60bfXHfamQPdGOzaq7ZUOMQUJDgjm+zKMscTnv2l3sd6SF4Wsl4sIyoRENEU BltT3dqrFwJZInQ+k6A6X7jHH90KsbYHsAHlg2OhNm1TujzJPgpd3f5dzVrlUD55E2X7 m60ezH20K0lXzo35cJhS10XRsWWegH7TOY/64YgY99emI/TxmfsaTtpH8T82xKPrW5xf gHXKVqVEM6uZOlN140S6in6P+tu8Pje0Qg7FnJW74i+x8Takn6yZB30l+HPTs0G6Q2IS PeAw== X-Gm-Message-State: AHPjjUha6jks8ye2pkO96EWR2Jzp5qMGFqa/m8Oy5nT7Sj9C58BEyhE2 ETmKrrRpb96oEUM+ebHCbUqJK5kPQjc= X-Google-Smtp-Source: AOwi7QD5Byn4cXl4G3Iml9tEBb1GRSXBw2BoYnnKIaxSe63keLP2grdreRK3W2gSEUio681H1CosVw== X-Received: by 10.55.146.195 with SMTP id u186mr9518387qkd.14.1506341735605; Mon, 25 Sep 2017 05:15:35 -0700 (PDT) Received: from logos (pool-173-67-36-61.bltmmd.fios.verizon.net. [173.67.36.61]) by smtp.gmail.com with ESMTPSA id u133sm4634483qka.92.2017.09.25.05.15.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 25 Sep 2017 05:15:34 -0700 (PDT) From: Mark Oteiza To: Katsumi Yamaoka Subject: Re: bug#28591: 27.0.50; xterm-set-window-title References: Date: Mon, 25 Sep 2017 08:15:34 -0400 In-Reply-To: (Katsumi Yamaoka's message of "Mon, 25 Sep 2017 18:43:45 +0900") Message-ID: <87efqv9dp5.fsf@udel.edu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 28591 Cc: 28591@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 25 13:24:34 2017 Received: (at 28591) by debbugs.gnu.org; 25 Sep 2017 17:24:34 +0000 Received: from localhost ([127.0.0.1]:58823 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwX7S-0007jI-73 for submit@debbugs.gnu.org; Mon, 25 Sep 2017 13:24:34 -0400 Received: from mail-qt0-f181.google.com ([209.85.216.181]:49223) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwX7P-0007j4-RI for 28591@debbugs.gnu.org; Mon, 25 Sep 2017 13:24:32 -0400 Received: by mail-qt0-f181.google.com with SMTP id o3so7659948qte.6 for <28591@debbugs.gnu.org>; Mon, 25 Sep 2017 10:24:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=udel-edu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=3U2THie92/LadJ+VCPpvo29W5Z7VAVdX5Ti0aOKhaZo=; b=lp+z05/SDaPxIoIhWDbTWEIx8D2Xhp7SShIV9EmMlpiDYC/wOqlY070ZBG/UjVCfOO FWVlhCa4mJ38AuEjELuC1CRk6pSgzx5a/i9DL2MWK5uhBNXYxFO0DhHDp9++Jrmqtdtc blpShllxLUFNNK+nmobvuGgxJLo3wQUVQmBPak5CrdVKqTTq3GNA+gTDrKZ7zffPQqDp LGmDYr4TPV6JI0BNyGcjDoIpc9c2RIfje4vKQt+bvJ1/CoREl9iHVnAbOCn9mpUL3lUj KeauZP8+T7Jz628X3Ux8I+NLQh/QSamg2ChSF1Quv4q+H7yDb3nzV+SVQIGsAkv0MDd/ zorw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=3U2THie92/LadJ+VCPpvo29W5Z7VAVdX5Ti0aOKhaZo=; b=ZROl4PnxMYgbzrZ4wBl1rOPDPeMeMs3A6tt/wxhGGK1IltQIYWlyyL6dZoeMN+eKNm nM1vQlRoRIlcjhXx8lopZ69hdv6/Fy+7X3QwZy0U4EkCuSMuXRQ/7YSiKIYlGkM3qdN2 LuI90asp5SvwHImqIn0MyGnw8Zprw+wQURi3fANnHQCR+HUHsM2f+5WuamwMzboRANzY ajNBnqfnFhvh+35SW76UuNYoBGyM7Uin3Vb6E1sEDZ7t2D6lCXR6ZbJtYVkhlsgFbuin iAx7IwwFI44OqBfuK6SqRuxFR9Rk2qJKq8zY4VOdkgXjztWdkIocJig6ib3U0LU6M8GL E9ew== X-Gm-Message-State: AHPjjUhBy1ex/tdmgybwYZLDNIijh9Ed2rp6WmbYuYwIMvnVPrijIxMl rexx4qM+z75ohVqK/jyUHIyj0XJ2Dpk= X-Google-Smtp-Source: AOwi7QBKJrhL4z6kpjz1ec5WJRg+QyVj9EP3zpUmrgn2DDtwfKfW3DAcsZ7K1a5e+ofFFSZr01vmmw== X-Received: by 10.200.35.204 with SMTP id r12mr12711365qtr.95.1506360266072; Mon, 25 Sep 2017 10:24:26 -0700 (PDT) Received: from logos (pool-173-67-36-61.bltmmd.fios.verizon.net. [173.67.36.61]) by smtp.gmail.com with ESMTPSA id s27sm5300424qtj.60.2017.09.25.10.24.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 25 Sep 2017 10:24:25 -0700 (PDT) From: Mark Oteiza To: Katsumi Yamaoka Subject: Re: bug#28591: 27.0.50; xterm-set-window-title References: <87efqv9dp5.fsf@udel.edu> Date: Mon, 25 Sep 2017 13:24:24 -0400 In-Reply-To: <87efqv9dp5.fsf@udel.edu> (Mark Oteiza's message of "Mon, 25 Sep 2017 08:15:34 -0400") Message-ID: <87377avghj.fsf@udel.edu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.2 (/) X-Debbugs-Envelope-To: 28591 Cc: 28591@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) 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. The following lightly tested patch appears to do the right thing here. diff --git a/lisp/term/xterm.el b/lisp/term/xterm.el index 6a17d382b0..d7214fc849 100644 --- a/lisp/term/xterm.el +++ b/lisp/term/xterm.el @@ -708,6 +708,16 @@ xterm--version-handler ;;(xterm--init-activate-get-selection) (xterm--init-activate-set-selection)))))) +(defvar xterm-window-title-stack nil) + +(defun xterm--title-handler () + (let ((str "") + chr) + (while (and (setq chr (read-event nil nil 2)) + (not (equal chr ?\\))) + (setq str (concat str (string chr)))) + (push str xterm-window-title-stack))) + (defvar xterm-query-timeout 2 "Seconds to wait for an answer from the terminal. Can be nil to mean \"no timeout\".") @@ -837,12 +847,28 @@ xterm--init-activate-set-selection (defun xterm--init-frame-title () "Terminal initialization for XTerm frame titles." + (xterm-push-title-stack) (xterm-set-window-title) + (add-hook 'delete-frame-functions 'xterm-pop-title-stack) (add-hook 'after-make-frame-functions 'xterm-set-window-title-flag) (add-hook 'window-configuration-change-hook 'xterm-unset-window-title-flag) - (add-hook 'post-command-hook 'xterm-set-window-title) + (add-hook 'pre-redisplay-functions 'xterm-set-window-title) (add-hook 'minibuffer-exit-hook 'xterm-set-window-title)) +(defun xterm-push-title-stack () + "Store terminal window title in XTerm's internal stack." + ;; (send-string-to-terminal "\e[22;0t") + (xterm--query "\e[21;0t" + '(("\e]l" . xterm--title-handler)))) + +(defun xterm-pop-title-stack (&optional terminal) + "Pop terminal window title from XTerm's internal stack." + ;; (send-string-to-terminal "\e[23;0t" terminal) + (when xterm-window-title-stack + (send-string-to-terminal + (format "\e]2;%s\a" (pop xterm-window-title-stack)) + terminal))) + (defvar xterm-window-title-flag nil "Whether a new frame has been created, calling for a title update.") @@ -861,7 +887,7 @@ xterm-set-window-title The title is constructed from `frame-title-format'." (send-string-to-terminal (format "\e]2;%s\a" (format-mode-line frame-title-format)) - terminal)) + (if (windowp terminal) (window-frame terminal) terminal))) (defun xterm--selection-char (type) (pcase type From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 25 20:45:18 2017 Received: (at 28591) by debbugs.gnu.org; 26 Sep 2017 00:45:18 +0000 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 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 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 Date: Tue, 26 Sep 2017 09:45:01 +0900 Message-ID: From: Katsumi Yamaoka To: Mark Oteiza Subject: Re: bug#28591: 27.0.50; xterm-set-window-title References: <87efqv9dp5.fsf@udel.edu> <87377avghj.fsf@udel.edu> Organization: Emacsen advocacy group 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&( User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (i686-pc-cygwin) Cancel-Lock: sha1:U0uwE0uBpiSsfiMa9seGWOIT/Ck= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 28591 Cc: 28591@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 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, From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 26 00:08:18 2017 Received: (at 28591) by debbugs.gnu.org; 26 Sep 2017 04:08:18 +0000 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 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 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) 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) Date: Tue, 26 Sep 2017 00:08:08 -0400 From: Mark Oteiza To: Katsumi Yamaoka Subject: Re: bug#28591: 27.0.50; xterm-set-window-title Message-ID: <20170926040808.zofxjqrl735zeye3@logos.localdomain> References: <87efqv9dp5.fsf@udel.edu> <87377avghj.fsf@udel.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170912-13-728bb5 X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 28591 Cc: 28591@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 29 06:46:05 2017 Received: (at 28591) by debbugs.gnu.org; 29 Sep 2017 10:46:06 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 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 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 Date: Fri, 29 Sep 2017 13:45:36 +0300 Message-Id: <83ing1941b.fsf@gnu.org> From: Eli Zaretskii To: Mark Oteiza In-reply-to: <20170926040808.zofxjqrl735zeye3@logos.localdomain> (message from Mark Oteiza on Tue, 26 Sep 2017 00:08:08 -0400) Subject: Re: bug#28591: 27.0.50; xterm-set-window-title References: <87efqv9dp5.fsf@udel.edu> <87377avghj.fsf@udel.edu> <20170926040808.zofxjqrl735zeye3@logos.localdomain> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28591 Cc: yamaoka@jpl.org, 28591@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > 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? From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 29 07:57:11 2017 Received: (at 28591) by debbugs.gnu.org; 29 Sep 2017 11:57:11 +0000 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 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 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) 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) Date: Fri, 29 Sep 2017 07:57:00 -0400 From: Mark Oteiza To: Eli Zaretskii Subject: Re: bug#28591: 27.0.50; xterm-set-window-title Message-ID: <20170929115700.ag4xni2tckiak4nt@logos.localdomain> References: <87efqv9dp5.fsf@udel.edu> <87377avghj.fsf@udel.edu> <20170926040808.zofxjqrl735zeye3@logos.localdomain> <83ing1941b.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83ing1941b.fsf@gnu.org> User-Agent: NeoMutt/20170912-48-0df7d3-dirty X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 28591 Cc: yamaoka@jpl.org, 28591@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 29 08:51:54 2017 Received: (at 28591) by debbugs.gnu.org; 29 Sep 2017 12:51:54 +0000 Received: from localhost ([127.0.0.1]:37740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxulm-0002Qo-Cq for submit@debbugs.gnu.org; Fri, 29 Sep 2017 08:51:54 -0400 Received: from mout.gmx.net ([212.227.17.22]:52561) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxulk-0002Qc-Hg for 28591@debbugs.gnu.org; Fri, 29 Sep 2017 08:51:53 -0400 Received: from [192.168.1.100] ([46.125.249.81]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MV6PJ-1dqU673rmX-00YO1j; Fri, 29 Sep 2017 14:51:43 +0200 Message-ID: <59CE41D9.8070305@gmx.at> Date: Fri, 29 Sep 2017 14:51:37 +0200 From: martin rudalics MIME-Version: 1.0 To: Mark Oteiza , Eli Zaretskii Subject: Re: bug#28591: 27.0.50; xterm-set-window-title References: <87efqv9dp5.fsf@udel.edu> <87377avghj.fsf@udel.edu> <20170926040808.zofxjqrl735zeye3@logos.localdomain> <83ing1941b.fsf@gnu.org> <20170929115700.ag4xni2tckiak4nt@logos.localdomain> In-Reply-To: <20170929115700.ag4xni2tckiak4nt@logos.localdomain> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:tp9i3T7AV9WXiHVlFx69IPMcNR6yslrWJdYaL7t4Paql6ocipvc I3DQP3BKgor/D+/btsY3M+NQJr+9ncDE+h8LPIZAQOFxipDpnZFc8k1qBjdQIi6a+flAkBv NEqC78fYUfr07efJMRFlWFjNG4SB8EBuLw6/X+QEyI5fmJtFQeh6kCnz5+re4UIQfoHWrz5 rebijIcHzov9GJG3eFYEg== X-UI-Out-Filterresults: notjunk:1;V01:K0:GMaye8hymfw=:7En1wVkvYQhNhnvcYhFfrD L6qR6Pv895DS3SzLfmns6q/WD7VglfCjAnoPNIjAu7E+uu2igkcMQelYuM/Cq4OwdGFbMb3gM j3njt5T1A4i6dEHYQa66mjY07W6/tvSVaDGVBinxFKcVQ/ovXEvh2NPPPa/Mk6lFanXi7VD5P 24iiQ3DwdJtF+leY/V2x0PH5ork9bNdjyd69OGvqPQ530DM0+bdkGUYZ3FIT+Dt8kVFb5JXqS xrpXCFg8dOAetZRIDla4+rZ3Cap4UEvZsP2eDn8uqVXJSdRNG+TJH8B7O8odcmoQzVAVlE6M4 x4o4Eeaiaq0RkCYU6k0MVKit2Q5gq+EccHENH3ItbmuWuVNUmfO4aLn7Ha/30ATCv39gVxaDV uyP3ccEUvmLrT1PcNllzHY/1QLwQRaNfp3mX0akTwdyEXGTym8iSyaehOqesyIMPWL7wIPgFC 3rm1VuztyNQkn95hLC87fbkk70RQgbJokLg4kp/+lMw6S7rsqbdyxKu04ijYxelhgaaZq3EKS sSsSbh/+H9e77DUHQLxPtdroVMymiCRPXZ/CEKZb2UbJeIoYhe0vrFYXQRA4YjjF5zEOtJM8g ab7U/Ff2fIgW2KvtGPI9NL7L1y39T5VHU92D0LVc2Owi7XR48GBnEAJ8OqchfKrAWteEFld05 u1+PzDte2NoigocBjAFFvuvXnizMylGAkMgp/9Rs10LoKHwQ2Lxcvz6gy9vUhso/kT1vygNTm AILG2ngRNWYOo74gAKxh/DJfWpVMsUhZjrMNS2/Mkz8ngCwfWeqadd6NCzBFqEW0CDvDoJlYq HZ3PLzn8BTEoG2aRE+YE/AgpNNIp+sf0DDi0YLDFVG+3hOZoMZWQ1hpLSj+P3pnaVIZQG2r X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 28591 Cc: yamaoka@jpl.org, 28591@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) > 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. =E2=80=98window-configuration-change-hook=E2=80=99 is the canonical hook = to "to catch changing windows within a frame". But maybe I'm missing something. martin From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 29 09:03:20 2017 Received: (at 28591) by debbugs.gnu.org; 29 Sep 2017 13:03:20 +0000 Received: from localhost ([127.0.0.1]:37754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxuwp-0002qS-V3 for submit@debbugs.gnu.org; Fri, 29 Sep 2017 09:03:20 -0400 Received: from mail-qk0-f172.google.com ([209.85.220.172]:43833) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxuwn-0002q9-Ut for 28591@debbugs.gnu.org; Fri, 29 Sep 2017 09:03:18 -0400 Received: by mail-qk0-f172.google.com with SMTP id w134so650298qkb.0 for <28591@debbugs.gnu.org>; Fri, 29 Sep 2017 06:03:17 -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:content-transfer-encoding:in-reply-to :user-agent; bh=AtbKg2VMg4FK2CGOk/538gIUPLp5x5IOhsasWIs3EZg=; b=wah0+B2dkpIv3Y0sWssob5c+jpnOD9Y9x1wwNfCF2qmtTHIcTrS5StEc22TIqTz4fS BuVrsbyvTLffruqauwdGOzxAkaEdbnf1DFEFIE3IY45b3eBmHMkMZzfGP5cogbGfFXLL XgE1Gw8lXcdNTEZhygwfGkKDypNFOG3WQp163FrE4/KjGFEKrCxXn5PJ2UMf2Z5HOgBV bmNR4mNcuvOjU1pSfNntFXmZ/0z/ktBvXJASnhb8qxSSF+YmwcQsExuJfSJ3BT/icKIp +9kRICWTFRYrRlWRWV6uVHMnzm6edoHdf9hEgkzK3TIQYZSoitoewAJS+kDWWY6v5AVu RSxQ== 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:content-transfer-encoding :in-reply-to:user-agent; bh=AtbKg2VMg4FK2CGOk/538gIUPLp5x5IOhsasWIs3EZg=; b=k3VrHHRS3cnwFTTIxuAeEOhaHEtUiO8ANUSot6o4xQL14Pv5FqkHmPi7TGCPXeHSbJ eAEsR0Ybp21XIvH4sqzf/SN24MrZh2s1mXbNWrO2clxxRgaSOY4Eyh/sy+KGofP2Cla1 hIAbUzCZEsOBPFwXLAClbEC93GdcfTaeLskKXrYfAjw0Gn5ZZzLOkJYKs+F3Bowx9kEm na7BDci7Ut7V7b057MOMxkvgEVmZdYQf0eerJbP1TRdlMY8HuzQs1FvaZn23LhgIjGPX 11h0ZPUo7uru9UeeppC2Sd347Z+jdVYwhR+s58zXY3BPZ5pRKm99HvLJ0AoD/nTTiZtg eKig== X-Gm-Message-State: AMCzsaVS7natleTP3hRHeahbGYglQMlmQ8y93+pHUvOdJYbpjAANt1+G ST4VfsR+FB92S/t1k1JKGc/UrA== X-Google-Smtp-Source: AOwi7QCUjJJhZjkGdzPL4x4qbxV3Znf3uP73zINv/kOKIFv1H/MIp/XsvMhoPZfIx0rcVG5ucQrIMA== X-Received: by 10.55.79.65 with SMTP id d62mr3105344qkb.224.1506690192377; Fri, 29 Sep 2017 06:03:12 -0700 (PDT) Received: from logos.localdomain (pool-173-67-36-61.bltmmd.fios.verizon.net. [173.67.36.61]) by smtp.gmail.com with ESMTPSA id q51sm2689945qtk.18.2017.09.29.06.03.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Sep 2017 06:03:11 -0700 (PDT) Date: Fri, 29 Sep 2017 09:03:10 -0400 From: Mark Oteiza To: martin rudalics Subject: Re: bug#28591: 27.0.50; xterm-set-window-title Message-ID: <20170929130310.ewqw3prhw73iqbto@logos.localdomain> References: <87efqv9dp5.fsf@udel.edu> <87377avghj.fsf@udel.edu> <20170926040808.zofxjqrl735zeye3@logos.localdomain> <83ing1941b.fsf@gnu.org> <20170929115700.ag4xni2tckiak4nt@logos.localdomain> <59CE41D9.8070305@gmx.at> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <59CE41D9.8070305@gmx.at> User-Agent: NeoMutt/20170912-48-0df7d3-dirty X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 28591 Cc: 28591@debbugs.gnu.org, Eli Zaretskii , yamaoka@jpl.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) On 29/09/17 at 02:51pm, martin rudalics wrote: > > 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. > > ‘window-configuration-change-hook’ is the canonical hook to "to catch > changing windows within a frame". But maybe I'm missing something. Sorry, I meant changing window focus; for instance with `other-window'. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 29 09:05:50 2017 Received: (at 28591) by debbugs.gnu.org; 29 Sep 2017 13:05:50 +0000 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 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 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) 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) Date: Fri, 29 Sep 2017 09:05:42 -0400 From: Mark Oteiza To: Eli Zaretskii Subject: Re: bug#28591: 27.0.50; xterm-set-window-title 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170929115700.ag4xni2tckiak4nt@logos.localdomain> User-Agent: NeoMutt/20170912-48-0df7d3-dirty X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 28591 Cc: yamaoka@jpl.org, 28591@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 29 09:05:53 2017 Received: (at 28591) by debbugs.gnu.org; 29 Sep 2017 13:05:54 +0000 Received: from localhost ([127.0.0.1]:37761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxuzJ-0002uz-Mz for submit@debbugs.gnu.org; Fri, 29 Sep 2017 09:05:53 -0400 Received: from mout.gmx.net ([212.227.17.20]:50247) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxuzF-0002uU-6a for 28591@debbugs.gnu.org; Fri, 29 Sep 2017 09:05:49 -0400 Received: from [192.168.1.100] ([46.125.249.81]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MOBOi-1e1ENF2yLU-005a0B; Fri, 29 Sep 2017 15:05:41 +0200 Message-ID: <59CE4522.9040301@gmx.at> Date: Fri, 29 Sep 2017 15:05:38 +0200 From: martin rudalics MIME-Version: 1.0 To: Mark Oteiza Subject: Re: bug#28591: 27.0.50; xterm-set-window-title References: <87efqv9dp5.fsf@udel.edu> <87377avghj.fsf@udel.edu> <20170926040808.zofxjqrl735zeye3@logos.localdomain> <83ing1941b.fsf@gnu.org> <20170929115700.ag4xni2tckiak4nt@logos.localdomain> <59CE41D9.8070305@gmx.at> <20170929130310.ewqw3prhw73iqbto@logos.localdomain> In-Reply-To: <20170929130310.ewqw3prhw73iqbto@logos.localdomain> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:P7GU6Sgagr09cU3RIEav36xBSi3Y8VPkRT5VR0Dd0/0l3ZFF2hk FNlJJnBJ/zsdHZ+Hs9a5acMWXRL37Xwh+uZmcef65wfWokMu/gaQQahDXTl+26xPYFw8VhX aFey78ejpRE/4BK5f99elwNtic9jLFEWc0og0otIYFdcmm/quThKqC8C34P0L/V+vDCgbvN AZpEa6Cr3aKfD3gv0btYg== X-UI-Out-Filterresults: notjunk:1;V01:K0:Kmkn3iUuPSE=:e8BTePZitNGkFl4y9vCJwf Rqsq2H4jCpih7xQVv/patTl1k7VigBin+XZsAtbIFsxHhxjB7tATXHB3lf7kIdMCGLvYg07Kl xm8iQDmPUqL+gyWTiM/iHq9gqWs5A/5BgaULo9tbO+BFBeX7Ik+Wkpc38SiGxsqmo+SMVpVcZ WJU5ftNe6hfSpodKJOPZ6jRY2cf5eTDsbec0ZFdLQnJtkjxqmBDz/FbBFxwrLNr8jlfaWdYix 11VvoLqYfO5VoIYSWnodnQE2h0kgh0k09UiZCgFAgqblMpZt5M9OTbyPNQD61zfYIagR/V61l n6GJll1LcZTkRXbyE/OXCebk1EeYm2Ielr5jzgABG4A7zZSwOHM83a4bFP2CMfmZFVM2LUhg/ tsPA3mySsiqhkr0FTSAwfPcDLlSTEt0+azkCDVQgz/do/vrQvrSP6PEWfWtS6dUqdeoFvnSVf /94P8lcgSI7OKYF9l5wUpHrqDkNJ4L2qUYFwT6F0yG21C5Y6kKmcpx2sOVSkZwdlfFU/1JTPu z3RxTbGdxlzjGdx6xKb63e2offHAwNVTgVvLh6nfWcDwigREYGG+jgza8zKH4adybOzf1fY2K mwAEq9X7+Nbut9KOtOnCCWEhs1RmoCqpDqSyDwwMln6z6FtU0jxwOZD6mTh6WxTTXEF3Guyuz 2QTqDM3G9CYX9WzAMM1Mqg+jWkNdI1eYOATWoc3swyq7xABLxHfFPUjVrcgmpkfBdKal88kxH epsddme0PPfRAZqIT0rLQhaIo1XP8ymmslFEPjj0z402fUDxsMrEZ3CFsmb1MfED7zhgjuXts aalNCfOflmsfCXTM4VoylKTb2YcRWRj4PHxrVEOtv1G3a0g5j2y48W+ASrENs6it2y5APnG X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 28591 Cc: 28591@debbugs.gnu.org, Eli Zaretskii , yamaoka@jpl.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) > Sorry, I meant changing window focus; for instance with `other-window'= =2E Then try =E2=80=98buffer-list-update-hook=E2=80=99. martin From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 29 13:29:58 2017 Received: (at 28591) by debbugs.gnu.org; 29 Sep 2017 17:29:58 +0000 Received: from localhost ([127.0.0.1]:39519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxz6r-0005jW-Bs for submit@debbugs.gnu.org; Fri, 29 Sep 2017 13:29:58 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37941) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxz6p-0005jG-HF for 28591@debbugs.gnu.org; Fri, 29 Sep 2017 13:29:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxz6g-0008FJ-4k for 28591@debbugs.gnu.org; Fri, 29 Sep 2017 13:29:50 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49811) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxz6g-0008F6-1l; Fri, 29 Sep 2017 13:29:46 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1385 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dxz6f-0006Pk-Km; Fri, 29 Sep 2017 13:29:45 -0400 Date: Fri, 29 Sep 2017 20:29:38 +0300 Message-Id: <83d16976rh.fsf@gnu.org> From: Eli Zaretskii To: Mark Oteiza In-reply-to: <20170929115700.ag4xni2tckiak4nt@logos.localdomain> (message from Mark Oteiza on Fri, 29 Sep 2017 07:57:00 -0400) Subject: Re: bug#28591: 27.0.50; xterm-set-window-title References: <87efqv9dp5.fsf@udel.edu> <87377avghj.fsf@udel.edu> <20170926040808.zofxjqrl735zeye3@logos.localdomain> <83ing1941b.fsf@gnu.org> <20170929115700.ag4xni2tckiak4nt@logos.localdomain> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28591 Cc: yamaoka@jpl.org, 28591@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Fri, 29 Sep 2017 07:57:00 -0400 > From: Mark Oteiza > Cc: yamaoka@jpl.org, 28591@debbugs.gnu.org > > 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") This error comes from here: DEFUN ("send-string-to-terminal", Fsend_string_to_terminal, Ssend_string_to_terminal, 1, 2, 0, doc: /* Send STRING to the terminal without alteration. Control characters in STRING will have terminal-dependent effects. Optional parameter TERMINAL specifies the tty terminal device to use. It may be a terminal object, a frame, or nil for the terminal used by the currently selected frame. In batch mode, STRING is sent to stdout when TERMINAL is nil. */) (Lisp_Object string, Lisp_Object terminal) { ... if (! tty->output) error ("Terminal is currently suspended"); So one way of fixing it would be to have a suspend-hook set some flag which your post-command-hook would check, and avoid calling send-string-to-terminal when the terminal is suspended. Another possibility would be to add a utility function, called 'tty-suspended-p', which you could then test in your post-command-hook. Its implementation should test the tty->output value. Would any of this make sense? From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 29 13:34:20 2017 Received: (at 28591) by debbugs.gnu.org; 29 Sep 2017 17:34:20 +0000 Received: from localhost ([127.0.0.1]:39527 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxzB5-0005rr-Rd for submit@debbugs.gnu.org; Fri, 29 Sep 2017 13:34:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxzB4-0005rf-Rt for 28591@debbugs.gnu.org; Fri, 29 Sep 2017 13:34:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxzAv-0006Cc-PN for 28591@debbugs.gnu.org; Fri, 29 Sep 2017 13:34:13 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxzAv-0006CW-LU; Fri, 29 Sep 2017 13:34:09 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1388 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dxzAv-0003Fq-3j; Fri, 29 Sep 2017 13:34:09 -0400 Date: Fri, 29 Sep 2017 20:34:02 +0300 Message-Id: <83bmlt76k5.fsf@gnu.org> From: Eli Zaretskii To: Mark Oteiza In-reply-to: <20170929130542.tk47k53s5dibjfoe@logos.localdomain> (message from Mark Oteiza on Fri, 29 Sep 2017 09:05:42 -0400) Subject: Re: bug#28591: 27.0.50; xterm-set-window-title References: <87efqv9dp5.fsf@udel.edu> <87377avghj.fsf@udel.edu> <20170926040808.zofxjqrl735zeye3@logos.localdomain> <83ing1941b.fsf@gnu.org> <20170929115700.ag4xni2tckiak4nt@logos.localdomain> <20170929130542.tk47k53s5dibjfoe@logos.localdomain> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28591 Cc: yamaoka@jpl.org, 28591@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Fri, 29 Sep 2017 09:05:42 -0400 > From: Mark Oteiza > Cc: yamaoka@jpl.org, 28591@debbugs.gnu.org > > Correction: deleting a frame does not restore the window title as > Katsumi pointed out. So you are saying the title is only restored when Emacs exits? Otherwise, I think I'm missing something: in what case(s) your restoration code does work? From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 30 15:26:36 2017 Received: (at 28591) by debbugs.gnu.org; 30 Sep 2017 19:26:36 +0000 Received: from localhost ([127.0.0.1]:41471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyNPI-0005yB-CT for submit@debbugs.gnu.org; Sat, 30 Sep 2017 15:26:36 -0400 Received: from mail-qt0-f179.google.com ([209.85.216.179]:57018) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyNPG-0005xy-Pf for 28591@debbugs.gnu.org; Sat, 30 Sep 2017 15:26:35 -0400 Received: by mail-qt0-f179.google.com with SMTP id l25so3215243qtf.13 for <28591@debbugs.gnu.org>; Sat, 30 Sep 2017 12:26:34 -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=WtyC1x2K77K5FOai8DMrgTBegkRdXf5RBbbPhl/1WkE=; b=XX/ST20vN8NTlflInb/hds7ioYxUxpcvW7kbXBAGYrlOzEXltSn7ORZp0mHJoZ16aV E6LYMpilUUVfOVO2ZkNUoff25PM1LCSnfzYSfYnOlZt0aNbtYxDeBmRNLTT/+ZaZCOX8 v+jp8ci2p3L2S0Q1NkXFqnEtOldJzSqNZb+UFpNGcZIpTJF17ES54tObPOHCQAGpsVab +uCcZ/om1Ra8iC+1ujuH77SRVhUJ97F0NZb8DzXrnP1OmRifQxMvME+fPt7HWF4Gqef5 nrL0l/IVw2gaPECgEvAD4fv23zkZBnl1qifF5r36NvETcF9TDUHA8Q7rz3UVdiPixLm2 +MZA== 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=WtyC1x2K77K5FOai8DMrgTBegkRdXf5RBbbPhl/1WkE=; b=XQcy/6jqvKJera4ecoEdbf38iviMlu8B69J0J9hz+jJUTy3W0txeZvuRUCIFmHpWId lfbZWaBmmGL0FYNv214+63Dj+blZWLz00VT4PM6rBWuP03A0GghAVTq/jwM+kshzlg7V 2Tidvnvbfxpdv2nWg0kZkkyKbIkPhf+Ez1vIma/HYgMNGDNYBgT9fVxV4UknRbQAS0xE CUBqVVQG037Kyp/qmzbdlyVYg2BuPy6PVRDKSfZHSHhvJ3SMMvb/QC6n3kNVBHISuKCR 5XFvIh7bmsEUDzlw4ZcPRfVR11BND9/QGftY2Nl5hwOast97IetbCnSuJb5zCQTPyZBd MVYA== X-Gm-Message-State: AMCzsaWaAiTiH5iS83WnWHT7QhcJ6W0J9ILz5iioz8rFA4PDsJG0Hjub 3PXRsACWO8TxuQNAMg9hYIsKEu74l2g= X-Google-Smtp-Source: AOwi7QCYF1GF2jN3nzaXWZFltvJM1kU7SU/Ank0eDdRBjkRHa9I46KwLf5bwz+sIQo8krJm1XtKWOg== X-Received: by 10.200.15.8 with SMTP id e8mr12832438qtk.315.1506799589248; Sat, 30 Sep 2017 12:26:29 -0700 (PDT) Received: from logos.localdomain (pool-173-67-36-61.bltmmd.fios.verizon.net. [173.67.36.61]) by smtp.gmail.com with ESMTPSA id o138sm2296390qke.89.2017.09.30.12.26.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 30 Sep 2017 12:26:28 -0700 (PDT) Date: Sat, 30 Sep 2017 15:26:27 -0400 From: Mark Oteiza To: Eli Zaretskii Subject: Re: bug#28591: 27.0.50; xterm-set-window-title Message-ID: <20170930192627.bevj3syhcuis3y4a@logos.localdomain> References: <87efqv9dp5.fsf@udel.edu> <87377avghj.fsf@udel.edu> <20170926040808.zofxjqrl735zeye3@logos.localdomain> <83ing1941b.fsf@gnu.org> <20170929115700.ag4xni2tckiak4nt@logos.localdomain> <20170929130542.tk47k53s5dibjfoe@logos.localdomain> <83bmlt76k5.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83bmlt76k5.fsf@gnu.org> User-Agent: NeoMutt/20170912-48-0df7d3-dirty X-Spam-Score: -0.2 (/) X-Debbugs-Envelope-To: 28591 Cc: yamaoka@jpl.org, 28591@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) On 29/09/17 at 08:34pm, Eli Zaretskii wrote: > > Date: Fri, 29 Sep 2017 09:05:42 -0400 > > From: Mark Oteiza > > Cc: yamaoka@jpl.org, 28591@debbugs.gnu.org > > > > Correction: deleting a frame does not restore the window title as > > Katsumi pointed out. > > So you are saying the title is only restored when Emacs exits? > Otherwise, I think I'm missing something: in what case(s) your > restoration code does work? There is no restoration code at the moment--I totally overlooked it because of my shell configuration. The following works for me on a VTE based terminal. The commented bits I would expect to do _something_ on XTerm, but I have been unable to get titles to restore on XTerm, whether or not I set the allowWindowOps and disallowedWindowOps resources. diff --git a/lisp/term/xterm.el b/lisp/term/xterm.el index 6a17d382b0..337c75e0ea 100644 --- a/lisp/term/xterm.el +++ b/lisp/term/xterm.el @@ -708,6 +708,16 @@ xterm--version-handler ;;(xterm--init-activate-get-selection) (xterm--init-activate-set-selection)))))) +(defun xterm--title-handler () + (let ((str "") + chr) + (while (and (setq chr (read-event nil nil 2)) + (not (eq chr ?\\))) + (setq str (concat str (string chr)))) + (push (replace-regexp-in-string "\e$" "" str) + (terminal-parameter (frame-terminal (selected-frame)) + 'xterm-saved-title)))) + (defvar xterm-query-timeout 2 "Seconds to wait for an answer from the terminal. Can be nil to mean \"no timeout\".") @@ -837,12 +847,25 @@ xterm--init-activate-set-selection (defun xterm--init-frame-title () "Terminal initialization for XTerm frame titles." + ;; (xterm-push-title-stack) + (xterm-push-window-title (frame-terminal (selected-frame))) (xterm-set-window-title) + (add-hook 'suspend-tty-functions 'xterm-pop-window-title) + (add-hook 'resume-tty-functions 'xterm-push-window-title) + ;; (add-hook 'delete-frame-functions 'xterm-pop-title-stack) (add-hook 'after-make-frame-functions 'xterm-set-window-title-flag) (add-hook 'window-configuration-change-hook 'xterm-unset-window-title-flag) - (add-hook 'post-command-hook 'xterm-set-window-title) + (add-hook 'delete-terminal-functions 'xterm-pop-window-title) + ;; (add-hook 'delete-terminal-functions 'xterm-pop-title-stack) + (add-hook 'buffer-list-update-hook 'xterm-set-window-title) (add-hook 'minibuffer-exit-hook 'xterm-set-window-title)) +;; (defun xterm-push-title-stack () +;; (send-string-to-terminal "\e[22;0t")) + +;; (defun xterm-pop-title-stack (&optional terminal) +;; (send-string-to-terminal "\e[23;0t" terminal)) + (defvar xterm-window-title-flag nil "Whether a new frame has been created, calling for a title update.") @@ -863,6 +886,15 @@ xterm-set-window-title (format "\e]2;%s\a" (format-mode-line frame-title-format)) terminal)) +(defun xterm-pop-window-title (terminal) + (send-string-to-terminal + (format "\e]2;%s\a" (pop (terminal-parameter terminal 'xterm-saved-title))) + terminal)) + +(defun xterm-push-window-title (terminal) + (xterm--query "\e[21;0t" '(("\e]l" . xterm--title-handler))) + (xterm-set-window-title terminal)) + (defun xterm--selection-char (type) (pcase type ('PRIMARY "p") From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 30 15:27:43 2017 Received: (at 28591) by debbugs.gnu.org; 30 Sep 2017 19:27:43 +0000 Received: from localhost ([127.0.0.1]:41475 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyNQM-00060G-QW for submit@debbugs.gnu.org; Sat, 30 Sep 2017 15:27:43 -0400 Received: from mail-qk0-f179.google.com ([209.85.220.179]:47129) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyNQL-000600-Ee for 28591@debbugs.gnu.org; Sat, 30 Sep 2017 15:27:41 -0400 Received: by mail-qk0-f179.google.com with SMTP id b82so2300990qkc.4 for <28591@debbugs.gnu.org>; Sat, 30 Sep 2017 12:27:41 -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=bCWe/gFVdWUHmjbCIvdMsJUP09O4KlufZ05z7bz+LHs=; b=OcAf8H6ojCmTlA/2zmg3ETl5zrSTIcggTwDrtFoLdDV67lLBOZG4THYnhvKXo3WIdP hwDaMYWsxZINvAeR2DFRasAZmM9kgzb6eQAPYhW+FSmxiqv0/NsBY4LpS3Q8LJ0zHqNq Srm234Nwud8QJuJ6cH3xRXl6qiFTohjIIftQlHNgGf3bUHb8H3Wct/3lrA9dzKKWs//L /dIIwsYO5JS2XwnfFd2qe/K3Hs3bk7Tl8hiIrlOdxOSaisZkfZ5tlcd8LV/pl8xmyG19 WsaOsU8NuI1TbuXFFNBd+m/7iTcfkv9wTcfXetLeK4CSO0RWrcwVgtdcS7R0WiThR7LV O4LA== 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=bCWe/gFVdWUHmjbCIvdMsJUP09O4KlufZ05z7bz+LHs=; b=OS7DXcAAIeZJDzdyyQdEqKhuVF/S6jtHOmarTx3lpESpD2IOKT5cZ10QEFC8DIdbDU QTcjxNB7VEsANPZhx9CAlaw8KcZcJFHB64RddfV5LI9Z76SR16mJg6jlYsNKF1+QCEvn M2JAUdKquLrxN6TW07uK0MXINYTAqpEEYpcjx7L/swTIOODTrwlweZI09/OVTLmkDsRG 4m8xTHypcLeeSgZ3CBSCACM9G4o0UReZLgFFnN83jAKsadXNni5WfHzzCg1VYmeEqZDk agr9uVe+EVWi+eDv3NpiEaRX9/JJi0n5p1pYE+SJFOZlXl79obd2Sk9eEtl7ZvOJzXyn 2seA== X-Gm-Message-State: AMCzsaV262ByGENZegSuddzjB4dn8yIfYQS+KVrKR1x5GYw8+UndZJUb HIbQ+7qav9x850G7vyzz6XkxDw== X-Google-Smtp-Source: AOwi7QCMf1xeB2jJ0h9y4f2c41XPotBK0mtVho/dvpw/j1f44iHswHiZtliA6zAJYnM6sLIAl5pMlA== X-Received: by 10.55.188.131 with SMTP id m125mr9048193qkf.12.1506799655922; Sat, 30 Sep 2017 12:27:35 -0700 (PDT) Received: from logos.localdomain (pool-173-67-36-61.bltmmd.fios.verizon.net. [173.67.36.61]) by smtp.gmail.com with ESMTPSA id a35sm4657843qtb.16.2017.09.30.12.27.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 30 Sep 2017 12:27:35 -0700 (PDT) Date: Sat, 30 Sep 2017 15:27:34 -0400 From: Mark Oteiza To: Eli Zaretskii Subject: Re: bug#28591: 27.0.50; xterm-set-window-title Message-ID: <20170930192734.5qwfmncd4j3d4ngc@logos.localdomain> References: <87efqv9dp5.fsf@udel.edu> <87377avghj.fsf@udel.edu> <20170926040808.zofxjqrl735zeye3@logos.localdomain> <83ing1941b.fsf@gnu.org> <20170929115700.ag4xni2tckiak4nt@logos.localdomain> <83d16976rh.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83d16976rh.fsf@gnu.org> User-Agent: NeoMutt/20170912-48-0df7d3-dirty X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 28591 Cc: yamaoka@jpl.org, 28591@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) On 29/09/17 at 08:29pm, Eli Zaretskii wrote: > > Date: Fri, 29 Sep 2017 07:57:00 -0400 > > From: Mark Oteiza > > Cc: yamaoka@jpl.org, 28591@debbugs.gnu.org > > > > 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") > > This error comes from here: > > DEFUN ("send-string-to-terminal", Fsend_string_to_terminal, > Ssend_string_to_terminal, 1, 2, 0, > doc: /* Send STRING to the terminal without alteration. > Control characters in STRING will have terminal-dependent effects. > > Optional parameter TERMINAL specifies the tty terminal device to use. > It may be a terminal object, a frame, or nil for the terminal used by > the currently selected frame. In batch mode, STRING is sent to stdout > when TERMINAL is nil. */) > (Lisp_Object string, Lisp_Object terminal) > { > > ... > if (! tty->output) > error ("Terminal is currently suspended"); > > So one way of fixing it would be to have a suspend-hook set some flag > which your post-command-hook would check, and avoid calling > send-string-to-terminal when the terminal is suspended. > > Another possibility would be to add a utility function, called > 'tty-suspended-p', which you could then test in your > post-command-hook. Its implementation should test the tty->output > value. > > Would any of this make sense? It would, but I ended up taking Martin's suggestion and replacing the use of post-command-hook with instead using buffer-list-update-hook, which doesn't have this problem. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 05 06:16:46 2017 Received: (at 28591) by debbugs.gnu.org; 5 Oct 2017 10:16:46 +0000 Received: from localhost ([127.0.0.1]:49778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e03Cv-00014N-TA for submit@debbugs.gnu.org; Thu, 05 Oct 2017 06:16:46 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e03Cu-00014A-1T for 28591@debbugs.gnu.org; Thu, 05 Oct 2017 06:16:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e03Cl-0002Kx-NC for 28591@debbugs.gnu.org; Thu, 05 Oct 2017 06:16:38 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46388) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e03Cl-0002KU-Iq; Thu, 05 Oct 2017 06:16:35 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2865 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e03Ck-0006Mn-G3; Thu, 05 Oct 2017 06:16:35 -0400 Date: Thu, 05 Oct 2017 13:16:24 +0300 Message-Id: <831smhyk5j.fsf@gnu.org> From: Eli Zaretskii To: Mark Oteiza In-reply-to: <20170930192627.bevj3syhcuis3y4a@logos.localdomain> (message from Mark Oteiza on Sat, 30 Sep 2017 15:26:27 -0400) Subject: Re: bug#28591: 27.0.50; xterm-set-window-title References: <87efqv9dp5.fsf@udel.edu> <87377avghj.fsf@udel.edu> <20170926040808.zofxjqrl735zeye3@logos.localdomain> <83ing1941b.fsf@gnu.org> <20170929115700.ag4xni2tckiak4nt@logos.localdomain> <20170929130542.tk47k53s5dibjfoe@logos.localdomain> <83bmlt76k5.fsf@gnu.org> <20170930192627.bevj3syhcuis3y4a@logos.localdomain> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28591 Cc: yamaoka@jpl.org, 28591@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Sat, 30 Sep 2017 15:26:27 -0400 > From: Mark Oteiza > Cc: yamaoka@jpl.org, 28591@debbugs.gnu.org > > > So you are saying the title is only restored when Emacs exits? > > Otherwise, I think I'm missing something: in what case(s) your > > restoration code does work? > > There is no restoration code at the moment--I totally overlooked it > because of my shell configuration. > > The following works for me on a VTE based terminal. > The commented bits I would expect to do _something_ on XTerm, but > I have been unable to get titles to restore on XTerm, whether or not > I set the allowWindowOps and disallowedWindowOps resources. OK, how about pushing this to master, with some defcustom, by default off, to control whether this feature is used? With any luck, we might have contributions for others to increase the number of configurations supported by this feature. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 08 16:21:50 2017 Received: (at 28591) by debbugs.gnu.org; 8 Oct 2017 20:21:50 +0000 Received: from localhost ([127.0.0.1]:56747 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1I57-0005VF-TR for submit@debbugs.gnu.org; Sun, 08 Oct 2017 16:21:50 -0400 Received: from mail-qk0-f172.google.com ([209.85.220.172]:55273) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1I56-0005V2-9v for 28591@debbugs.gnu.org; Sun, 08 Oct 2017 16:21:48 -0400 Received: by mail-qk0-f172.google.com with SMTP id n5so19758458qke.11 for <28591@debbugs.gnu.org>; Sun, 08 Oct 2017 13:21: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=mOrTbh8+JM4/53Gd+hoHD7ppyKwEowm22U8K527cgY4=; b=joTRLqKOEN8XD6lRCscSUB34EN1xUZe3HTPqvRG6L956IbUvRbeqSjTk1g26algmFz z8GrKw45h0lwoAUDPAwx354RBcdYVKd7o6jjqXHkvMJJpml7BqJov/DWIWKu/8htimT2 a75JxMFThdb68k6J0K9rwZiAJodctffCjKzzhXO5OXvVwcMyd3HQTxUaffxCd9riZoep OixnqWDEbsrFWjKS3YNkc0utoI3OEHWk6KmkoOd+KzwgKUt9W0Ub0ES+XBny8I9LFyTE d9zxM4nFWk3q82dCy17XMTLWUHR7F68cwOkH3/0tomMMEHsaiRp8y4emYz4AdSNAsf/n YPrw== 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=mOrTbh8+JM4/53Gd+hoHD7ppyKwEowm22U8K527cgY4=; b=ifaLEmK+NJ/x8uwG1lWNiD1Lwy/KrVaqV/5zFWD5k7LTzgN5wH3jXuYD/ONJZkJpjY I6JtyF2HNSy8U8xoerIj4qGfhLNV1ue+5vgeZhqmEuj4KcEVpn2ESQRk3XlP/6fd5iQU mbjqeTVKGJLfyO/plwtLfuHs0aLm7o7mDF/cAJqElFiMZ0wqQZI6MoIHACLOuMNi+BNX +V96pQ7kr4K+2Z4y4mcArW7zS77PfU7UvQg1UuO7HB8h4cGNNeMfBq2337DjoL50Ccuh 6oJV5+w3ntpj4djvX/LwgzuljNRe9Qv/c9kkjiJEj9+5r3fQ91x/wXHs8fhI/AsxoHEn Ojkg== X-Gm-Message-State: AMCzsaVpaM0kulFDXFl/CePyxfk2i1uowQ8lu7cwXcWmyCNL9oL43LeP BtNZIuceBMwhMta8uZK9R287WpX9DvKNPg== X-Google-Smtp-Source: AOwi7QDy8k9Dm344WskI51hMKEkhZ9y7S+L20ZOW/4qHZGG4NXK1ZXUG6/rhsijzphaxPoWJ8f7row== X-Received: by 10.55.27.136 with SMTP id m8mr6980577qkh.356.1507494102701; Sun, 08 Oct 2017 13:21:42 -0700 (PDT) Received: from logos.localdomain (pool-173-67-36-61.bltmmd.fios.verizon.net. [173.67.36.61]) by smtp.gmail.com with ESMTPSA id f4sm4000576qtg.35.2017.10.08.13.21.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 08 Oct 2017 13:21:41 -0700 (PDT) Date: Sun, 8 Oct 2017 16:21:40 -0400 From: Mark Oteiza To: Eli Zaretskii Subject: Re: bug#28591: 27.0.50; xterm-set-window-title Message-ID: <20171008202140.6zepseahbsmwdkjh@logos.localdomain> References: <87efqv9dp5.fsf@udel.edu> <87377avghj.fsf@udel.edu> <20170926040808.zofxjqrl735zeye3@logos.localdomain> <83ing1941b.fsf@gnu.org> <20170929115700.ag4xni2tckiak4nt@logos.localdomain> <20170929130542.tk47k53s5dibjfoe@logos.localdomain> <83bmlt76k5.fsf@gnu.org> <20170930192627.bevj3syhcuis3y4a@logos.localdomain> <831smhyk5j.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <831smhyk5j.fsf@gnu.org> User-Agent: NeoMutt/20170912-97-b97206-dirty X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 28591 Cc: yamaoka@jpl.org, 28591@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) On 05/10/17 at 01:16pm, Eli Zaretskii wrote: > > Date: Sat, 30 Sep 2017 15:26:27 -0400 > > From: Mark Oteiza > > Cc: yamaoka@jpl.org, 28591@debbugs.gnu.org > > > > > So you are saying the title is only restored when Emacs exits? > > > Otherwise, I think I'm missing something: in what case(s) your > > > restoration code does work? > > > > There is no restoration code at the moment--I totally overlooked it > > because of my shell configuration. > > > > The following works for me on a VTE based terminal. > > The commented bits I would expect to do _something_ on XTerm, but > > I have been unable to get titles to restore on XTerm, whether or not > > I set the allowWindowOps and disallowedWindowOps resources. > > OK, how about pushing this to master, with some defcustom, by default > off, to control whether this feature is used? With any luck, we might > have contributions for others to increase the number of configurations > supported by this feature. After running with the patch for a bit, I notice sometimes there is a long (second or two) delay when opening a new frame--I guess because of a possible delay like is mentioned in delete-frame-functions. I would prefer to simply turn the existing code off by default than introduce possibly more broken behavior, especially when it only supports a subset of xterm-like terminals. From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 09 02:23:43 2017 Received: (at 28591) by debbugs.gnu.org; 9 Oct 2017 06:23:43 +0000 Received: from localhost ([127.0.0.1]:57012 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1RTa-0003Cg-SB for submit@debbugs.gnu.org; Mon, 09 Oct 2017 02:23:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56520) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1RTY-0003CT-D6 for 28591@debbugs.gnu.org; Mon, 09 Oct 2017 02:23:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1RTQ-0000JS-4I for 28591@debbugs.gnu.org; Mon, 09 Oct 2017 02:23:35 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51998) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1RTQ-0000JO-0L; Mon, 09 Oct 2017 02:23:32 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4631 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e1RTP-0001G5-EB; Mon, 09 Oct 2017 02:23:31 -0400 Date: Mon, 09 Oct 2017 09:23:26 +0300 Message-Id: <83mv50suu9.fsf@gnu.org> From: Eli Zaretskii To: Mark Oteiza In-reply-to: <20171008202140.6zepseahbsmwdkjh@logos.localdomain> (message from Mark Oteiza on Sun, 8 Oct 2017 16:21:40 -0400) Subject: Re: bug#28591: 27.0.50; xterm-set-window-title References: <87efqv9dp5.fsf@udel.edu> <87377avghj.fsf@udel.edu> <20170926040808.zofxjqrl735zeye3@logos.localdomain> <83ing1941b.fsf@gnu.org> <20170929115700.ag4xni2tckiak4nt@logos.localdomain> <20170929130542.tk47k53s5dibjfoe@logos.localdomain> <83bmlt76k5.fsf@gnu.org> <20170930192627.bevj3syhcuis3y4a@logos.localdomain> <831smhyk5j.fsf@gnu.org> <20171008202140.6zepseahbsmwdkjh@logos.localdomain> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28591 Cc: yamaoka@jpl.org, 28591@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Sun, 8 Oct 2017 16:21:40 -0400 > From: Mark Oteiza > Cc: yamaoka@jpl.org, 28591@debbugs.gnu.org > > I would prefer to simply turn the existing code off by default than > introduce possibly more broken behavior, especially when it only > supports a subset of xterm-like terminals. Fine with me, thanks. From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 09 08:40:46 2017 Received: (at 28591) by debbugs.gnu.org; 9 Oct 2017 12:40:46 +0000 Received: from localhost ([127.0.0.1]:57280 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1XMU-0001MG-4o for submit@debbugs.gnu.org; Mon, 09 Oct 2017 08:40:46 -0400 Received: from mail-qt0-f170.google.com ([209.85.216.170]:51220) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1XMR-0001M0-Sg for 28591@debbugs.gnu.org; Mon, 09 Oct 2017 08:40:44 -0400 Received: by mail-qt0-f170.google.com with SMTP id q4so42733471qtq.8 for <28591@debbugs.gnu.org>; Mon, 09 Oct 2017 05:40:43 -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=75/r1jeAVj4T3TkNv4/CsBN/q7/oEb+OXBYjcqw9OYg=; b=jRnY+rVMkAYvx6MEXvh/I72EuclzPCqzrUWXbUd34zn1ItkHc8SAeO3TzGIgLEQB9y zDPUD2Rytfhrn148lgkgeJQFbxanInkuSq0lpuivEjSSSm0EOD82M0Bt7P9OnsfMUJUh to/V/8+/S/D2WusvjN/5S222KoRr9p24w/OR2BTx2d+v2YM2ceshebOALmFaQ2UeiZF3 agv1Do5K1XHygv4ZeW4e5vttyPFEFKTZcA3Sr4po7lwxqcmJhDD/ZhCAQn2bcmwu8ao2 cuKxBO7ersa83UgL4Oxh2rW4nLcFicCqkf3jMkPAGOLf9jNhljox2IoGZjHU2c19bkPg 2O0w== 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=75/r1jeAVj4T3TkNv4/CsBN/q7/oEb+OXBYjcqw9OYg=; b=ZowjCq7q2npLVl4c4+ywUBCTVFhpPZntUQl7QYEnHXhRIaCbVDl9VErVS725u+6ZB8 DAYph1C70hY63ggPIbX1u4jc3wq7mvBrKxJXF7Cot/RHZx/gglU/FNbedh3RID41MAXv vtHBbYpGxSb83Uf4YUbzTB/LdFiNi1l0tGU9R5bJzw1Fq1lrm5Sq07MGXzbHaeTU3B+C 93A+h7ia0egIRqsphnFWYlOHW3QtD0upPk7X9kFGMVOVazFeoq5Kz/4Fhm4rJQQJHqcm i0mFife0FSLwutDSSdizxxuXpwr1gUVOko1Mq7FFH9uy8WbBHQsSkoQmwyJGZAdfy7+b 4Mbw== X-Gm-Message-State: AMCzsaWKVJCbHIzk7/I7dh7sjof/Uor14msaG7PLxRot8I1alOsAfJWS cZ/phVs5ooxN61rnhkDkyQeKRg== X-Google-Smtp-Source: AOwi7QB8NmDjuU21n2psG8qpG9v85klGv8PQU/aO9xMZvaePTmq9Ze7jLri0lrWVnXXsRqBAqgd0bw== X-Received: by 10.200.58.229 with SMTP id x92mr8040840qte.161.1507552838133; Mon, 09 Oct 2017 05:40:38 -0700 (PDT) Received: from logos.localdomain (pool-173-67-36-61.bltmmd.fios.verizon.net. [173.67.36.61]) by smtp.gmail.com with ESMTPSA id k76sm4946487qkk.39.2017.10.09.05.40.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Oct 2017 05:40:37 -0700 (PDT) Date: Mon, 9 Oct 2017 08:40:36 -0400 From: Mark Oteiza To: Eli Zaretskii Subject: Re: bug#28591: 27.0.50; xterm-set-window-title Message-ID: <20171009124036.sbr7sd3goa2vj7pg@logos.localdomain> References: <20170926040808.zofxjqrl735zeye3@logos.localdomain> <83ing1941b.fsf@gnu.org> <20170929115700.ag4xni2tckiak4nt@logos.localdomain> <20170929130542.tk47k53s5dibjfoe@logos.localdomain> <83bmlt76k5.fsf@gnu.org> <20170930192627.bevj3syhcuis3y4a@logos.localdomain> <831smhyk5j.fsf@gnu.org> <20171008202140.6zepseahbsmwdkjh@logos.localdomain> <83mv50suu9.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83mv50suu9.fsf@gnu.org> User-Agent: NeoMutt/20170912-97-b97206-dirty X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 28591 Cc: yamaoka@jpl.org, 28591@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) On 09/10/17 at 09:23am, Eli Zaretskii wrote: > > Date: Sun, 8 Oct 2017 16:21:40 -0400 > > From: Mark Oteiza > > Cc: yamaoka@jpl.org, 28591@debbugs.gnu.org > > > > I would prefer to simply turn the existing code off by default than > > introduce possibly more broken behavior, especially when it only > > supports a subset of xterm-like terminals. > > Fine with me, thanks. Change pushed. From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 24 09:39:44 2020 Received: (at 28591) by debbugs.gnu.org; 24 Aug 2020 13:39:45 +0000 Received: from localhost ([127.0.0.1]:56588 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAChM-0003nT-MO for submit@debbugs.gnu.org; Mon, 24 Aug 2020 09:39:44 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAChK-0003nC-Mb for 28591@debbugs.gnu.org; Mon, 24 Aug 2020 09:39:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=j6xU3uPlExM308ADZ4Hgn5LUfeLyZe5cU4aOXZkRlCE=; b=sBWQ1UnxFsNeJONylmDAiqDP5j dOIw5hDtDr3EuwC8yQdC/kuPGBrr21kMQ2i7b5zC9HEpwGFin2B75Ygm408T8BJRY9PCdSeqzFkqq 13voR9QKKMS+aOyAD/VBxGASha91+rD348I989dtsOHKJx/beqnGNAZnhZqYznkxO8OI=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kACh7-0006pY-KU; Mon, 24 Aug 2020 15:39:35 +0200 From: Lars Ingebrigtsen To: Mark Oteiza Subject: Re: bug#28591: 27.0.50; xterm-set-window-title References: <20170926040808.zofxjqrl735zeye3@logos.localdomain> <83ing1941b.fsf@gnu.org> <20170929115700.ag4xni2tckiak4nt@logos.localdomain> <20170929130542.tk47k53s5dibjfoe@logos.localdomain> <83bmlt76k5.fsf@gnu.org> <20170930192627.bevj3syhcuis3y4a@logos.localdomain> <831smhyk5j.fsf@gnu.org> <20171008202140.6zepseahbsmwdkjh@logos.localdomain> <83mv50suu9.fsf@gnu.org> <20171009124036.sbr7sd3goa2vj7pg@logos.localdomain> X-Now-Playing: Various's _Alefa Madagascar_: "Los Pepitos et leur Ensemble - B.B. Gasy" Date: Mon, 24 Aug 2020 15:39:27 +0200 In-Reply-To: <20171009124036.sbr7sd3goa2vj7pg@logos.localdomain> (Mark Oteiza's message of "Mon, 9 Oct 2017 08:40:36 -0400") Message-ID: <87tuwsb1tc.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Mark Oteiza writes: >> > I would prefer to simply turn the existing code off by default than >> > introduce possibly more broken behavior, especially when it only >> > supports a subset of xterm-like terminals. >> >> Fin [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 28591 Cc: 28591@debbugs.gnu.org, Eli Zaretskii , yamaoka@jpl.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Mark Oteiza writes: >> > I would prefer to simply turn the existing code off by default than >> > introduce possibly more broken behavior, especially when it only >> > supports a subset of xterm-like terminals. >> >> Fine with me, thanks. > > Change pushed. Skimming this thread, it seems like the reported problem was fixed, and I'm closing this bug report. If this is wrong, please respond to the debbugs address and we'll reopen the report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 24 09:39:50 2020 Received: (at control) by debbugs.gnu.org; 24 Aug 2020 13:39:50 +0000 Received: from localhost ([127.0.0.1]:56591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAChR-0003nl-U0 for submit@debbugs.gnu.org; Mon, 24 Aug 2020 09:39:50 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAChP-0003nM-Vk for control@debbugs.gnu.org; Mon, 24 Aug 2020 09:39:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=0aAhcT7qhgZE4jc6oKo6SApzN5weFfy/Z4veoSJzJx4=; b=ZkNncmYjjhPS2MLXnxc/64iY4o XkVAqlOb0W55eXjacaFcAd3RpX1d4dwk6z9cOMMuIxkGAVtZSFJ4OcwcdlOsgREPcJGYGAiAP2gVu bcne+U7/+2uF3X4PdC6EnK0qrMQCQi8RsQdgqdrBpSe9R126puzlq/7d8mWy3xcAxYzw=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kAChI-0006pi-5b for control@debbugs.gnu.org; Mon, 24 Aug 2020 15:39:42 +0200 Date: Mon, 24 Aug 2020 15:39:38 +0200 Message-Id: <87sgccb1t1.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #28591 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 28591 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 28591 quit From unknown Mon Jun 23 18:27:22 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 22 Sep 2020 11:24:12 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator