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: Sun, 16 Feb 2014 09:14:56 -0800 (PST) Message-ID: <3febc9ab-b7b2-443c-8ec8-eaaf28ace468@default> References: <<97c44b41-de36-472b-833d-3b0d1ac4c912@default>> <> <<831tzgypbp.fsf@gnu.org>> <> <<83zjm3xuu8.fsf@gnu.org>> <> <> <<83vbwhblkp.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 1392570984 28852 80.91.229.3 (16 Feb 2014 17:16:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Feb 2014 17:16:24 +0000 (UTC) Cc: 16661@debbugs.gnu.org To: Eli Zaretskii , Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 16 18:16:27 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 1WF5KL-00035i-DA for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Feb 2014 18:16:25 +0100 Original-Received: from localhost ([::1]:34298 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WF5KK-0000dH-UY for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Feb 2014 12:16:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52458) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WF5K8-0000Za-EE for bug-gnu-emacs@gnu.org; Sun, 16 Feb 2014 12:16:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WF5Jy-0008Q3-Hf for bug-gnu-emacs@gnu.org; Sun, 16 Feb 2014 12:16:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WF5Jy-0008Py-EK for bug-gnu-emacs@gnu.org; Sun, 16 Feb 2014 12:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WF5Jy-0001wR-4o for bug-gnu-emacs@gnu.org; Sun, 16 Feb 2014 12:16: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: Sun, 16 Feb 2014 17:16: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.13925709107371 (code B ref 16661); Sun, 16 Feb 2014 17:16:02 +0000 Original-Received: (at 16661) by debbugs.gnu.org; 16 Feb 2014 17:15:10 +0000 Original-Received: from localhost ([127.0.0.1]:54957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WF5J7-0001uo-J9 for submit@debbugs.gnu.org; Sun, 16 Feb 2014 12:15:10 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:42847) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WF5J4-0001ts-CB for 16661@debbugs.gnu.org; Sun, 16 Feb 2014 12:15:06 -0500 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s1GHF8fI007201 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 16 Feb 2014 17:15:09 GMT Original-Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s1GHEpXK015960 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 16 Feb 2014 17:14:52 GMT Original-Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s1GHEogK015957; Sun, 16 Feb 2014 17:14:50 GMT In-Reply-To: <<83vbwhblkp.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: acsinet22.oracle.com [141.146.126.238] 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:85679 Archived-At: > > > > Perhaps advising modify-frame-parameters and modify-frame- > > > > parameter, to record their changes in some buffer, could > > > > find out the answer. > You could use a separate buffer for that. I tried that and got lucky (the problem arose), but it didn't give me any info that is useful, I'm afraid. Perhaps you have a suggestion of something better/additional to print out? Here is the info that was printed: 000 this-cmd: nil, last-cmd: nil =09(name . "drews-lisp-20") 111 this-cmd: nil, last-cmd: nil =09(name . "drews-lisp-20") All that tells us is that (a) it was `modify-frame-parameters', not `set-frame-parameter', that caused the name change, and (b) both `this-command' and `last-command' were nil when that happened. `drews-lisp-20' is a Dired buffer in a separate frame - the only frame that existed at the time, apart from the minibuffer frame. (I think that I have seen this bug only when there is only one other frame besides the minibuffer frame.) This is the code that printed that debug info: (defadvice modify-frame-parameters (around mini-debug activate) (when (and (eq (ad-get-arg 0) 1on1-minibuffer-frame) (assoc 'name (ad-get-arg 1)))=20 (with-current-buffer (get-buffer-create "*MINI-DEBUG*") (let ((str (format "000 this-cmd: %S, last-cmd: %S\n\t%S\n" this-command last-command (assoc 'name (ad-get-arg 1))))) (insert str)))) ad-do-it (when (and (eq (ad-get-arg 0) 1on1-minibuffer-frame) (assoc 'name (ad-get-arg 1))) (with-current-buffer (get-buffer-create "*MINI-DEBUG*") (let ((str (format " 111 this-cmd: %S, last-cmd: %S\n\t%S\n" this-command last-command (assoc 'name (ad-get-arg 1))))) (insert str))))) (defadvice set-frame-parameter (around mini-debug activate) (when (and (eq (ad-get-arg 0) 1on1-minibuffer-frame) (eq 'name (ad-get-arg 1)))=20 (with-current-buffer (get-buffer-create "*MINI-DEBUG*") (let ((str (format "333 this-cmd: %S, last-cmd: %S\n\t%S\n" this-command last-command (ad-get-arg 2)))) (insert str)))) ad-do-it (when (and (eq (ad-get-arg 0) 1on1-minibuffer-frame) (eq 'name (ad-get-arg 1))) (with-current-buffer (get-buffer-create "*MINI-DEBUG*") (let ((str (format " 444 this-cmd: %S, last-cmd: %S\n\t%S\n" this-command last-command (ad-get-arg 2)))) (insert str)))))