all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: 12648@debbugs.gnu.org
Subject: bug#12648: 24.2.50; display-buffer switches to another frame
Date: Sun, 14 Oct 2012 18:49:44 +0200	[thread overview]
Message-ID: <83391h5787.fsf@gnu.org> (raw)

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 <return> C-x 5 b b a r <return> M-: ( d 
i s p l a y - b u f f e r SPC " f o o " S-SPC ' <backspace> 
n i l SPC ' v i s i b l e ) <return> <switch-frame> 
<help-echo> M-x r e p o r t - e m <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
#<window 3 on foo>

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)





             reply	other threads:[~2012-10-14 16:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-14 16:49 Eli Zaretskii [this message]
2012-10-14 18:33 ` bug#12648: 24.2.50; display-buffer switches to another frame martin rudalics
2012-10-14 19:28   ` Eli Zaretskii
2012-10-15 12:52     ` martin rudalics
2012-10-15 17:26       ` Eli Zaretskii
2012-10-16  9:39         ` martin rudalics
2012-10-16 13:27           ` Stefan Monnier
2012-10-17  9:37             ` martin rudalics
2012-10-18 19:46         ` Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83391h5787.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=12648@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.