From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#16661: 24.3.50; standalone minibuffer frame gets renamed with name of aother frame Date: Sat, 22 Feb 2014 08:41:56 -0800 (PST) Message-ID: References: <<97c44b41-de36-472b-833d-3b0d1ac4c912@default>> <> <<831tzgypbp.fsf@gnu.org>> <> <<83zjm3xuu8.fsf@gnu.org>> <> <> <<83vbwhblkp.fsf@gnu.org>> <<3febc9ab-b7b2-443c-8ec8-eaaf28ace468@default>> <> <<8338jd693l.fsf@gnu.org>> <<16fff663-6320-4d96-a575-e3c368472a0a@default>> <<83a9dj4jc3.fsf@gnu.org>> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1393087402 19179 80.91.229.3 (22 Feb 2014 16:43:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Feb 2014 16:43:22 +0000 (UTC) Cc: 16661@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 22 17:43:29 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WHFfk-00076m-FC for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Feb 2014 17:43:28 +0100 Original-Received: from localhost ([::1]:50133 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHFfk-0004tI-4m for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Feb 2014 11:43:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHFfZ-0004sA-54 for bug-gnu-emacs@gnu.org; Sat, 22 Feb 2014 11:43:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHFfL-00057j-90 for bug-gnu-emacs@gnu.org; Sat, 22 Feb 2014 11:43:17 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34674) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHFfL-00057f-5V for bug-gnu-emacs@gnu.org; Sat, 22 Feb 2014 11:43:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WHFfK-0001gL-6u for bug-gnu-emacs@gnu.org; Sat, 22 Feb 2014 11:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Feb 2014 16:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16661 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 16661-submit@debbugs.gnu.org id=B16661.13930873286387 (code B ref 16661); Sat, 22 Feb 2014 16:43:02 +0000 Original-Received: (at 16661) by debbugs.gnu.org; 22 Feb 2014 16:42:08 +0000 Original-Received: from localhost ([127.0.0.1]:35856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHFeR-0001ew-EB for submit@debbugs.gnu.org; Sat, 22 Feb 2014 11:42:07 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:26883) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHFeO-0001eH-UD for 16661@debbugs.gnu.org; Sat, 22 Feb 2014 11:42:05 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s1MGfws0031724 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 22 Feb 2014 16:41:58 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s1MGfvbE008053 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 22 Feb 2014 16:41:57 GMT Original-Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s1MGfuuZ005834; Sat, 22 Feb 2014 16:41:56 GMT In-Reply-To: <<83a9dj4jc3.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:86027 Archived-At: > I'm confused: Probably not as much as I. > window-setup-hook is called only once, as part of Emacs > startup. Yes, and I'm sorry that I do not recall just why I do that add-hook. I have used it ever since I've used a standalone minibuffer frame, I believe, but I can try without it. I have this comment next to that code, but again, I do not recall what the problem was: ;;; A HACK FOR WINDOWS > Are you saying that all these cases of renaming happened > during Emacs startup, and only at that time? I somehow decided, > probably erroneously, that the renaming randomly happened during a > running session. What I have observed, irrespective of the debugging output, is that: a. Initially, after startup, things are normal wrt frame names. b. Sometime later, in the middle of a session, the bug arises. The order of what I do at startup is this: 1. Rename the newly created minibuffer frame to the name it should have always. (I do this in oneonone.el.) 2. Do the add-hook for `window-setup-hook'. > > Why should the `buffer-name' of the minibuffer frame be > > different from the frame name, for the minibuffer frame? >=20 > AFAIK, buffer-name in the minibuffer always returns the name of the > buffer which caused minibuffer to be entered. Anything else would be > highly confusing, e.g. "M-: (buffer-name) RET" surely must return the > name of the invoking buffer. Not if you select the standalone minibuffer frame (e.g., click mouse-1 on its title bar). In that case, `M-: (buffer-name)' shows the minibuffer's buffer name: ` *Minibuf-N*', N=3D0,1,2... This is as it should be. No problem with that. > IOW, I think that buffer-name in the minibuffer is unreliable, if you > want to get the name of the minibuffer itself. The buffer displayed in the minibuffer window is typically named ` *Minibuf-N*', N=3D0,1,2... It is still named this way with my setup. The only thing I change is the `name' parameter of the frame. I will try removing the `window-setup-hook' renaming, to see whether that makes a difference.