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#12648: 24.2.50; display-buffer switches to another frame Date: Sun, 14 Oct 2012 18:49:44 +0200 Message-ID: <83391h5787.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1350233410 4865 80.91.229.3 (14 Oct 2012 16:50:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Oct 2012 16:50:10 +0000 (UTC) To: 12648@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 14 18:50:16 2012 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 1TNROH-0002gd-91 for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Oct 2012 18:50:13 +0200 Original-Received: from localhost ([::1]:39275 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNROA-0007P7-Ha for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Oct 2012 12:50:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59074) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNRO7-0007My-1H for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2012 12:50:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TNRO4-0006hC-LQ for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2012 12:50:02 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33787) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNRO4-0006h8-I8 for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2012 12:50:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TNRP4-0001wD-J2 for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2012 12:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Oct 2012 16:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12648 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13502334547433 (code B ref -1); Sun, 14 Oct 2012 16:51:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Oct 2012 16:50:54 +0000 Original-Received: from localhost ([127.0.0.1]:44038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TNROv-0001vp-OP for submit@debbugs.gnu.org; Sun, 14 Oct 2012 12:50:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59840) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TNROt-0001va-EC for submit@debbugs.gnu.org; Sun, 14 Oct 2012 12:50:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TNRNm-0006ao-Qe for submit@debbugs.gnu.org; Sun, 14 Oct 2012 12:49:43 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:48849) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNRNm-0006ad-NW for submit@debbugs.gnu.org; Sun, 14 Oct 2012 12:49:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58464) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNRNl-0007Cq-Ap for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2012 12:49:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TNRNj-0006aB-Pz for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2012 12:49:41 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:56769) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNRNj-0006Zq-Hx for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2012 12:49:39 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MBW005006MK0700@a-mtaout21.012.net.il> for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2012 18:49:37 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MBW004Y26QOU260@a-mtaout21.012.net.il> for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2012 18:49:37 +0200 (IST) X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:65599 Archived-At: This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgment at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': emacs -Q C-x b foo C-x 5 b bar Now you have 2 frames, one displays the buffer "foo", the other displays the buffer "bar" and is the selected frame. M-: (display-buffer "foo" nil 'visible) RET This quite unexpectedly selects the frame which displays "foo". But display-buffer is not supposed to select the window where it displays the buffer. And indeed, if the same experiment is repeated when the same frame displays "foo" and "bar" in 2 different windows, the window that shows "bar" being the selected one, display-buffer does not select the other window, as expected. This is an annoyance when you use GUD with the GDB interaction buffer on one frame and the source on another. Each command that moves through the program, such as 'n', 's', etc., switches to the source frame, which is inconvenient. See http://lists.gnu.org/archive/html/help-gnu-emacs/2012-10/msg00188.html for the original complaint. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file d:/gnu/bzr/emacs/trunk/etc/DEBUG. In GNU Emacs 24.2.50.1 (i386-mingw-nt5.1.2600) of 2012-10-14 on HOME-C4E4A596F7 Bzr revision: 110541 monnier@iro.umontreal.ca-20121014014248-jy0lxhbhkiihxjy0 Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (3.4) --no-opt --enable-checking --cflags -Id:/usr/include/libxml2 -DGLYPH_DEBUG=1' Important settings: value of $LANG: ENU locale-coding-system: cp1255 default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x b f o o C-x 5 b b a r M-: ( d i s p l a y - b u f f e r SPC " f o o " S-SPC ' n i l SPC ' v i s i b l e ) M-x r e p o r t - e m Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. # Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32 multi-tty emacs)