From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25062: 24.5; Frame title (with "%b" format) changes when going to minibuffer Date: Tue, 29 Nov 2016 19:37:52 +0200 Message-ID: <83mvgixk3z.fsf@gnu.org> References: <6551952.t1DPFT6gTp@keelhaul> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1480441156 10943 195.159.176.226 (29 Nov 2016 17:39:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 29 Nov 2016 17:39:16 +0000 (UTC) Cc: 25062@debbugs.gnu.org To: Jonathan Marten Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 29 18:39:11 2016 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 1cBmN2-0001hW-Hd for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Nov 2016 18:39:08 +0100 Original-Received: from localhost ([::1]:38423 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBmN6-0006Im-DA for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Nov 2016 12:39:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBmN0-0006Ig-Up for bug-gnu-emacs@gnu.org; Tue, 29 Nov 2016 12:39:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBmMv-0000Ct-VK for bug-gnu-emacs@gnu.org; Tue, 29 Nov 2016 12:39:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59204) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cBmMv-0000Cp-Rg for bug-gnu-emacs@gnu.org; Tue, 29 Nov 2016 12:39:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cBmMv-0003EM-Jr for bug-gnu-emacs@gnu.org; Tue, 29 Nov 2016 12:39:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Nov 2016 17:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25062 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 25062-submit@debbugs.gnu.org id=B25062.148044108312350 (code B ref 25062); Tue, 29 Nov 2016 17:39:01 +0000 Original-Received: (at 25062) by debbugs.gnu.org; 29 Nov 2016 17:38:03 +0000 Original-Received: from localhost ([127.0.0.1]:46370 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cBmLz-0003D8-9h for submit@debbugs.gnu.org; Tue, 29 Nov 2016 12:38:03 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cBmLx-0003Ce-Gs for 25062@debbugs.gnu.org; Tue, 29 Nov 2016 12:38:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBmLn-0008Js-Fs for 25062@debbugs.gnu.org; Tue, 29 Nov 2016 12:37:56 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBmLn-0008Jo-CQ; Tue, 29 Nov 2016 12:37:51 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1053 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1cBmLm-0006JA-FD; Tue, 29 Nov 2016 12:37:51 -0500 In-reply-to: <6551952.t1DPFT6gTp@keelhaul> (message from Jonathan Marten on Tue, 29 Nov 2016 15:55:30 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:126250 Archived-At: > From: Jonathan Marten > Date: Tue, 29 Nov 2016 15:55:30 +0000 > > When using the "%b" substitution in frame-title-format (the default > value includes this when there are multiple frames), the user would > expect the name of the buffer that they are editing to be shown. This > happens, but when going to the minibuffer for any sort of prompt the > title changes to the buffer name of the minibuffer - "*Minibuf-0*" or > similar. This may be what is happening internally, but it is an > implementation detail which does not need to be revealed. The user > might wonder why the window title is changing just because they are > being prompted for some information. I actually use this feature all the time: it helps me to find the frame which is waiting for some input. So I don't think we should change that. Can't you achieve what you want by using some 'eval' form in frame-title-format? > Applying the following patch corrects this. If the selected window is a > minibuffer window, it evaluates the format string in the buffer of the > minibuffer-selected-window instead of the buffer of the minibuffer. With this > patch, the frame title stays the same as before when being prompted in the > minibuffer. Sorry, I don't think it's right to change that for everyone. Thanks.