From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joel James Adamson Newsgroups: gmane.emacs.bugs Subject: bug#6786: 23.2; Ido-mode switch-to-buffer switches frames Date: Thu, 05 Aug 2010 15:16:59 -0400 Message-ID: References: <4C590B63.9050309@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1281037107 7578 80.91.229.12 (5 Aug 2010 19:38:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 5 Aug 2010 19:38:27 +0000 (UTC) Cc: 6786@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 05 21:38:24 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oh6Gi-0007ao-6K for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Aug 2010 21:38:20 +0200 Original-Received: from localhost ([127.0.0.1]:37086 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oh6Gh-0004KT-OA for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Aug 2010 15:38:19 -0400 Original-Received: from [140.186.70.92] (port=33440 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oh6Gb-0004Jo-Uo for bug-gnu-emacs@gnu.org; Thu, 05 Aug 2010 15:38:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oh6GZ-0008WK-62 for bug-gnu-emacs@gnu.org; Thu, 05 Aug 2010 15:38:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50994) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oh6GZ-0008WD-4e for bug-gnu-emacs@gnu.org; Thu, 05 Aug 2010 15:38:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Oh5w6-0004z5-KL; Thu, 05 Aug 2010 15:17:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Joel James Adamson Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Aug 2010 19:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6786 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6786-submit@debbugs.gnu.org id=B6786.128103579319141 (code B ref 6786); Thu, 05 Aug 2010 19:17:02 +0000 Original-Received: (at 6786) by debbugs.gnu.org; 5 Aug 2010 19:16:33 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oh5vc-0004yg-LA for submit@debbugs.gnu.org; Thu, 05 Aug 2010 15:16:32 -0400 Original-Received: from chondestes.bio.unc.edu ([152.2.67.61]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oh5va-0004yZ-Pv for 6786@debbugs.gnu.org; Thu, 05 Aug 2010 15:16:31 -0400 Original-Received: from chondestes.bio.unc.edu (chondestes.bio.unc.edu [127.0.0.1]) by chondestes.bio.unc.edu (8.14.4/8.14.3) with ESMTP id o75JH1TS019882; Thu, 5 Aug 2010 15:17:01 -0400 Original-Received: (from joel@localhost) by chondestes.bio.unc.edu (8.14.4/8.14.4/Submit) id o75JH1NG019881; Thu, 5 Aug 2010 15:17:01 -0400 X-Authentication-Warning: chondestes.bio.unc.edu: joel set sender to adamsonj@email.unc.edu using -f User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 05 Aug 2010 15:17:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39270 Archived-At: --=-=-= Content-Transfer-Encoding: quoted-printable martin rudalics writes: >> emacs -Q; open a new frame using "C-x 5 2" and switch to that frame. >> Then switch from *scratch* to *Messages* in the first frame. Enable >> ido-mode using "M-x ido-mode". Switch to the second frame and try >> switching to *Messages*. The point (and focus) move to the other >> window. >> >> Setting the ido-mode variables `ido-default-file-method' and >> `ido-default-buffer-method' to 'selected-window does not change this >> behavior. > > What happens when you set `ido-default-buffer-method' to 'other-window? Then I get window-splitting. Should that affect frame-based behavior? >> For some reason the gdb frame was split into two windows and I >> accidentally deleted the wrong one and now the Separate IO is going >> into the gdb buffer. > > Where IO goes to is not related to the window/buffer relationship. I don't think it's related to the bug, it was just part of my narrative describing the problem. >> However, when I try to to switch back to the *gud* buffer, it >> puts the point in a completely different window. > > What do you mean by this? That the *gud* buffer is displayed in the > wrong window? In the wrong frame: for example, say *gud* originally was in frame 1; then I accidentally switch buffers (so no frame displays the *gud* buffer). Then with the point in frame 1 I switch buffers and *gud* pops up in frame 2. >> I don't want *gud* in that frame, I want it in the one I'm trying to >> put it in! NOTE: THIS BEHAVIOR PERSISTS EVEN AFTER SWITCHING OUT OF >> IDO-SWITCH-BUFFER BY PRESSING "C-b". > > What is C-b bound to in this situation? C-b in ido-switch-buffer reverts to normal (non-ido) buffer-switching. So if you start a buffer-switch with C-xb, the ido menu comes up; if you press C-b you get the regular buffer switch prompt. >> The buffer-switching behavior I submitted earlier also happens when >> using the Buffers menu. > > Could you please try to run `display-buffer' with edebug to trace the > behavior you observe? > > Usually this can happen only if (1) `pop-up-frames' is non-nil, (2) > `display-buffer-reuse-frames' is non-nil, or (3) the windows on the > selected frame are dedicated. *gud* should be dedicated when I open the frame from the GDB menu; unfortunately it doesn't "stay dedicated," it rather switches its dedication to another frame Benedict Arnold-style. Thanks, Joel =2D-=20 Joel J. Adamson Servedio Lab University of North Carolina at Chapel Hill FSF Member #8164 http://www.unc.edu/~adamsonj --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iF4EAREIAAYFAkxbDi0ACgkQp61eY7lvATJUeQD/aelzCZup6eg2GjrNS8ACvu51 6jqHC/feIio9bX04DPQA/icizfKAtJbxN8TOo7hGTOHf76Z++iHMH0Rl1VuHFI38 =sLma -----END PGP SIGNATURE----- --=-=-=--