GNU bug report logs -
#6786
23.2; Ido-mode switch-to-buffer switches frames
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 6786 in the body.
You can then email your comments to 6786 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6786
; Package
emacs
.
(Tue, 03 Aug 2010 18:36:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Joel James Adamson <adamsonj <at> email.unc.edu>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 03 Aug 2010 18:36:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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.
This is infuriating! I should be able to switch to whatever buffer I
want with multiple frames and not have the focus change. Let me give
you an example: I have a gdb session running, so I have several frames,
one for output, one for backtrace and one for the gdb controller. 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. However, when I try to to switch back to the *gud* buffer, it
puts the point in a completely different window. 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".
In GNU Emacs 23.2.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.20.1)
of 2010-05-13 on x86-07.phx2.fedoraproject.org
Windowing system distributor `Fedora Project', version 11.0.10802000
configured using `configure '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=gtk' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: @im=none
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t
Major mode: Debugger
Minor modes in effect:
shell-dirtrack-mode: t
auto-insert-mode: t
global-auto-complete-mode: t
diff-auto-refine-mode: t
which-function-mode: t
show-paren-mode: t
savehist-mode: t
epa-global-mail-mode: t
display-time-mode: t
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
font-lock-mode: t
blink-cursor-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
<triple-mouse-4> <triple-down-mouse-4> <triple-mouse-4>
<triple-down-mouse-4> <triple-mouse-4> <triple-down-mouse-4>
<triple-mouse-4> C-s w i n d o w <return> M-: i d o
- d e f a u l t - f i l e - m e t h o d <return> M-:
M-p M-f M-f M-f M-D b u f f e r <return> <f1> i d m
i d <tab> <tab> <backspace> <backspace> e m a c s <return>
i i d o <return> <switch-frame> <switch-frame> <switch-frame>
C-x b C-b <return> M-x c u s t o m i z e C-g <f1> v
s w i t c h <tab> <tab> M-D s w i t c h <tab> <tab>
<tab> C-g <f1> f s w i t c h SPC SPC SPC C-g M-x c
u s t o m i z e SPC g r SPC <return> w i n d o w s
<return> <help-echo> <down-mouse-5> <mouse-5> <double-down-mouse-5>
<double-mouse-5> <triple-down-mouse-5> <triple-mouse-5>
<down-mouse-5> <mouse-5> <double-down-mouse-5> <double-mouse-5>
<down-mouse-5> <mouse-5> <down-mouse-5> <mouse-5> <double-down-mouse-5>
<double-mouse-5> <down-mouse-5> <mouse-5> <double-down-mouse-5>
<double-mouse-5> <down-mouse-5> <mouse-5> <down-mouse-5>
<mouse-5> <down-mouse-4> <mouse-4> <double-down-mouse-4>
<double-mouse-4> <triple-down-mouse-4> <triple-mouse-4>
<triple-down-mouse-4> <triple-mouse-4> <triple-down-mouse-4>
<triple-mouse-4> <triple-down-mouse-4> <triple-mouse-4>
<triple-down-mouse-4> <triple-mouse-4> <triple-down-mouse-4>
<triple-mouse-4> <help-echo> <switch-frame> <switch-frame>
<help-echo> <help-echo> <down-mouse-1> <mouse-movement>
<mouse-1> <help-echo> <menu-bar> <buffer> C-b <help-echo>
<down-mouse-3> <mouse-3> <down-mouse-1> <mouse-movement>
<mouse-1> <double-down-mouse-1> <double-mouse-1> <help-echo>
<down-mouse-1> <mouse-movement> <mouse-movement> <drag-mouse-1>
<switch-frame> <switch-frame> <help-echo> <switch-frame>
<down-mouse-1> <mouse-movement> <mouse-1> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<menu-bar> <buffer> <next-buffer> <switch-frame> <switch-frame>
<switch-frame> <switch-frame> <switch-frame> <switch-frame>
<down-mouse-1> <mouse-movement> <mouse-1> C-x C-b <switch-frame>
<switch-frame> <switch-frame> <switch-frame> C-x b
<return> <help-echo> <help-echo> <switch-frame> <switch-frame>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <down-mouse-1> <mouse-movement> <mouse-1>
<help-echo> C-p C-p C-n C-j C-l C-j C-l C-k C-j C-;
C-l C-k C-j C-; C-l C-k C-j <menu-bar> <buffer> C-a
<help-echo> <switch-frame> <switch-frame> <switch-frame>
M-x r e p o r t SPC e m a SPC SPC <return>
Recent messages:
Creating group state...
Creating group... done
Creating customization items ...done
Resetting customization items...done
Creating customization setup...done
byte-code: Beginning of buffer [2 times]
Updating buffer list...
Formats have changed, recompiling...done
Updating buffer list...done
Commands: m, u, t, RET, g, k, S, D, Q; q to quit; h for help
Load-path shadows:
/usr/share/emacs/site-lisp/flim/hex-util hides /usr/share/emacs/23.2/lisp/hex-util
/usr/share/emacs/site-lisp/flim/md4 hides /usr/share/emacs/23.2/lisp/md4
/usr/share/emacs/site-lisp/flim/sha1 hides /usr/share/emacs/23.2/lisp/sha1
/usr/share/emacs/site-lisp/ruby-mode/ruby-mode hides /usr/share/emacs/23.2/lisp/progmodes/ruby-mode
/usr/share/emacs/site-lisp/flim/sasl hides /usr/share/emacs/23.2/lisp/net/sasl
/usr/share/emacs/site-lisp/flim/hmac-def hides /usr/share/emacs/23.2/lisp/net/hmac-def
/usr/share/emacs/site-lisp/flim/hmac-md5 hides /usr/share/emacs/23.2/lisp/net/hmac-md5
/usr/share/emacs/site-lisp/flim/sasl-digest hides /usr/share/emacs/23.2/lisp/net/sasl-digest
/usr/share/emacs/site-lisp/flim/sasl-ntlm hides /usr/share/emacs/23.2/lisp/net/sasl-ntlm
/usr/share/emacs/site-lisp/flim/sasl-cram hides /usr/share/emacs/23.2/lisp/net/sasl-cram
/usr/share/emacs/site-lisp/flim/ntlm hides /usr/share/emacs/23.2/lisp/net/ntlm
Features:
(shadow emacsbug winner windmove follow warnings doc-view ps-mode crm
cus-edit gnus-cite smiley mail-extr gnus-bcklg gnus-async gnus-dup
gnus-uu yenc sort gnus-ml utf-7 utf7 disp-table woman man asm-mode
thingatpt conf-mode newcomment dabbrev cmuscheme scheme sh-script
executable gdb-ui bindat json gud image-mode image-file image-dired
locate gnuplot-gui gnuplot info-look help-mode view info timezone
nnfolder nnagent nnml nnimap imap nndraft nnmh gnus-agent gnus-srvr
gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view
smime dig nntp gnus-cache gnus-sum nnoo gnus-group gnus-undo nnmail
mail-source gnus-start gnus-spec gnus-int gnus-range message idna
ecomplete rfc822 mml mml-sec mm-decode mm-bodies mm-encode mailcap
mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev gmm-utils
mailheader canlock sha1 sha1-el hex-util hashcash gnus-win gnus gnus-ems
nnheader mule-util cal-move parse-time jka-compr cal-iso compile
make-mode multi-isearch vc-dispatcher vc-svn cc-mode cc-fonts cc-menus
cc-cmds cc-styles cc-align cc-engine cc-vars vc-hg footnote flyspell
ispell org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc
org-jsinfo org-infojs org-html org-exp org-exp-blocks org-agenda
org-info org-gnus org-bibtex org-bbdb tramp-imap tramp-gw tramp-gvfs
zeroconf url-parse url-vars mm-util mail-prsvr dbus xml tramp-fish
tramp-smb tramp-cache tramp-ftp tramp-cmds tramp auth-source gnus-util
netrc password-cache format-spec tramp-compat trampver shell comint
autoinsert org-clock org org-footnote org-src org-list org-faces
org-compat org-macs time-date noutline outline speedbar sb-image ezimage
dframe assoc server appt diary-lib diary-loaddefs cal-menu calendar
cal-loaddefs ansi-color xcscope idomenu ido c-eldoc cc-defs eldoc
auto-complete-config auto-complete popup ibuf-ext ibuffer preview
prv-emacs latex tex-style tex-buf tex reftex reftex-vars uniquify
dired-x dired-aux supercite sendmail regi psvn byte-opt bytecomp
byte-compile advice help-fns advice-preload edmacro kmacro log-edit ring
pcvs-util add-log diff-mode easy-mmode pp elp ediff-merg ediff-diff
ediff-wind ediff-mult ediff-help ediff-init ediff-util dired regexp-opt
midnight which-func imenu paren savehist avoid epa-mail mail-utils epa
derived epg epg-config time cus-start cus-load preview-latex color-theme
easymenu wid-edit cl cl-19 bbdb-autoloads tex-site auto-loads tooltip
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting
tool-bar dnd fontset image fringe lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar mldrag 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 loaddefs button
minibuffer faces cus-face files text-properties overlay md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process dbusbind system-font-setting
font-render-setting gtk x-toolkit x multi-tty emacs)
--
Joel J. Adamson
Servedio Lab
University of North Carolina at Chapel Hill
FSF Member #8164
http://www.unc.edu/~adamsonj
[Message part 2 (application/pgp-signature, inline)]
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6786
; Package
emacs
.
(Tue, 03 Aug 2010 18:43:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 6786 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
The buffer-switching behavior I submitted earlier also happens when
using the Buffers menu.
Joel
--
Joel J. Adamson
Servedio Lab
University of North Carolina at Chapel Hill
FSF Member #8164
http://www.unc.edu/~adamsonj
[Message part 2 (application/pgp-signature, inline)]
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6786
; Package
emacs
.
(Tue, 03 Aug 2010 20:58:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 6786 <at> debbugs.gnu.org (full text, mbox):
On Tue, Aug 3, 2010 at 20:35, Joel James Adamson <adamsonj <at> email.unc.edu> wrote:
> 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.
I have no 23.2 to test right now, but the latest trunk does work as
expected, if you set ido-default-buffer-method to 'selected-window.
Juanma
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6786
; Package
emacs
.
(Tue, 03 Aug 2010 21:06:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 6786 <at> debbugs.gnu.org (full text, mbox):
Joel James Adamson <adamsonj <at> email.unc.edu> 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.
It does for me with version 24.0.50.1 following your recipe starting
with emacs -Q. The buffer appears on the selected window of the current
frame.
See the variable display-buffer-reuse-frames, it should be `nil' to work
as you want. But that's already the default value son I don't understand
why you see that behavior with emacs -Q.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6786
; Package
emacs
.
(Tue, 03 Aug 2010 21:26:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 6786 <at> debbugs.gnu.org (full text, mbox):
For the record: the OP refused my e-mail, so maybe he is not aware of
the response:
Final-recipient: rfc822; adamsonj <at> email.unc.edu
Action: failed
Status: 5.1.1
Diagnostic-Code: smtp; 550 5.7.0 Message blocked by recipient - personal blocklist
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6786
; Package
emacs
.
(Wed, 04 Aug 2010 06:41:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 6786 <at> debbugs.gnu.org (full text, mbox):
> 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?
> 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.
> 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?
> 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?
> 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.
martin
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6786
; Package
emacs
.
(Thu, 05 Aug 2010 19:17:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 6786 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
martin rudalics <rudalics <at> gmx.at> 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
--
Joel J. Adamson
Servedio Lab
University of North Carolina at Chapel Hill
FSF Member #8164
http://www.unc.edu/~adamsonj
[Message part 2 (application/pgp-signature, inline)]
Reply sent
to
martin rudalics <rudalics <at> gmx.at>
:
You have taken responsibility.
(Mon, 17 Oct 2011 13:38:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Joel James Adamson <adamsonj <at> email.unc.edu>
:
bug acknowledged by developer.
(Mon, 17 Oct 2011 13:38:01 GMT)
Full text and
rfc822 format available.
Message #28 received at 6786-done <at> debbugs.gnu.org (full text, mbox):
> 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.
Since nobody could repeat this behavior with the current trunk I'm
closing this bug. If the erroneous behavior persists on your machine,
please give the precise sequence of the actions you applied here.
Thanks, martin
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 15 Nov 2011 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 283 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.