From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii 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 10:55:56 +0200 Message-ID: <83a9dj4jc3.fsf@gnu.org> 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1393059370 30382 80.91.229.3 (22 Feb 2014 08:56:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Feb 2014 08:56:10 +0000 (UTC) Cc: 16661@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 22 09:56:18 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 1WH8Nd-0000qO-1q for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Feb 2014 09:56:17 +0100 Original-Received: from localhost ([::1]:48821 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WH8Nc-0006lD-8V for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Feb 2014 03:56:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WH8NT-0006e0-Pr for bug-gnu-emacs@gnu.org; Sat, 22 Feb 2014 03:56:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WH8NO-0001cv-TP for bug-gnu-emacs@gnu.org; Sat, 22 Feb 2014 03:56:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34173) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WH8NO-0001ce-QE for bug-gnu-emacs@gnu.org; Sat, 22 Feb 2014 03:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WH8NN-0003Lo-Nc for bug-gnu-emacs@gnu.org; Sat, 22 Feb 2014 03:56:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Feb 2014 08:56:01 +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.139305934812857 (code B ref 16661); Sat, 22 Feb 2014 08:56:01 +0000 Original-Received: (at 16661) by debbugs.gnu.org; 22 Feb 2014 08:55:48 +0000 Original-Received: from localhost ([127.0.0.1]:35355 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WH8N9-0003LH-BB for submit@debbugs.gnu.org; Sat, 22 Feb 2014 03:55:47 -0500 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:49318) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WH8N5-0003Ks-Bx for 16661@debbugs.gnu.org; Sat, 22 Feb 2014 03:55:44 -0500 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0N1E00N003DG8E00@mtaout28.012.net.il> for 16661@debbugs.gnu.org; Sat, 22 Feb 2014 10:56:12 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N1E00H3Q3HOMP60@mtaout28.012.net.il>; Sat, 22 Feb 2014 10:56:12 +0200 (IST) In-reply-to: <16fff663-6320-4d96-a575-e3c368472a0a@default> X-012-Sender: halo1@inter.net.il 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:86009 Archived-At: > Date: Fri, 21 Feb 2014 20:23:47 -0800 (PST) > From: Drew Adams > Cc: 16661@debbugs.gnu.org > > > How about adding a Lisp backtrace to the info you already put there? > > OK, I have some more info about this. This is the backtrace: > > 000 this-cmd: nil, last-cmd: nil > (name . "drews-lisp-20") > backtrace() > ad-Advice-modify-frame-parameters(# # ((name . "drews-lisp-20"))) > apply(ad-Advice-modify-frame-parameters # (# ((name . "drews-lisp-20")))) > modify-frame-parameters(# ((name . "drews-lisp-20"))) > rename-frame() > run-hooks(window-setup-hook) > > I do this in my init file: > > (when (and (if (fboundp 'display-graphic-p) (display-graphic-p) window-system) > (eq system-type 'windows-nt) (fboundp 'rename-frame)) > (add-hook 'window-setup-hook 'rename-frame)) I'm confused: window-setup-hook is called only once, as part of Emacs startup. 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. > Why should the `buffer-name' of the minibuffer frame be > different from the frame name, for the minibuffer frame? 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. IOW, I think that buffer-name in the minibuffer is unreliable, if you want to get the name of the minibuffer itself.