GNU bug report logs -
#22374
24.4; Buffers of previously open files appear in gud interaction window instead of source window in many-windows mode
Previous Next
Reported by: Michael Buksas <mwbuksas <at> stellarscience.com>
Date: Fri, 15 Jan 2016 00:01:02 UTC
Severity: normal
Tags: confirmed, fixed
Found in versions 26.1, 24.4
Fixed in version 27.1
Done: Noam Postavsky <npostavs <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 22374 in the body.
You can then email your comments to 22374 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#22374
; Package
emacs
.
(Fri, 15 Jan 2016 00:01:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Michael Buksas <mwbuksas <at> stellarscience.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 15 Jan 2016 00:01:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
If a file is open before running gdb and many-windows mode, and is not
currently visible in the source code window, switching to
the file by clicking or pressing enter on a line in the stack frame
window will cause the buffer to appear in the gud interaction window,
and not in the source window.
To reproduce:
1) Create a test code test.cpp containing:
int main() { while (1) { } return 0; }
2) Compile with debugging symbols
> gcc test.cpp -g
3) Run emacs:
> emacs -Q
4) Open test.cpp in emacs.
5) Run gdb and select a.out if necessary.
6) Enter many-windows mode with M-x many-windows-mode
7) Start the program in the gud interaction window:
> (gdb) start
8) Switch to a different buffer in the source window. e.g. *scratch*
9) Middle-click the single line in the stack frame window.
The buffer for file test.cpp will appear in the gud interaction window,
instead of the source window.
If you omit step 4. The file test.cpp will appear in the source window.
Thanks!
In GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.9)
of 2015-03-21 on kissel, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.11701000
System Description: Ubuntu 15.04
Configured using:
`configure --build x86_64-linux-gnu --prefix=/usr
--sharedstatedir=/var/lib --libexecdir=/usr/lib
--localstatedir=/var/lib --infodir=/usr/share/info
--mandir=/usr/share/man --with-pop=yes
--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-lisp:/usr/share/emacs/site-lisp
--build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib
--libexecdir=/usr/lib --localstatedir=/var/lib
--infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes
--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-lisp:/usr/share/emacs/site-lisp
--with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars
'CFLAGS=-g -O2 -fstack-protector-strong -Wformat
-Werror=format-security -Wall' CPPFLAGS=-D_FORTIFY_SOURCE=2
'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro''
Important settings:
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: @im=ibus
locale-coding-system: utf-8-unix
Major mode: Frames [thread 1]
Minor modes in effect:
gdb-many-windows: t
tooltip-mode: t
electric-indent-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-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
buffer-read-only: t
line-number-mode: t
transient-mark-mode: t
Recent input:
<help-echo> M-x g d b <return> <return> M-x g d b -
m a n y - w i n <tab> <return> r u n <return> C-c C-c
<help-echo> <help-echo> <help-echo> <down-mouse-2>
<mouse-2> <help-echo> <help-echo> <down-mouse-1> <mouse-1>
C-x b <return> <help-echo> <help-echo> <down-mouse-2>
<mouse-2> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> M-x
r e p o r t - a m <backspace> <backspace> e m a c s
- b u g <return>
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Target doesn't support non-stop mode. Turning it off.
Gdb-Many-Windows mode enabled
Switched to thread 1
Load-path shadows:
None found.
Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
help-fns mail-prsvr mail-utils cus-start cus-load gdb-mi bindat json gud
easy-mmode comint ansi-color ring cc-langs cl-loaddefs cl-lib cc-mode
cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine
cc-vars cc-defs time-date tooltip electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment lisp-mode prog-mode register page
--
Michael Buksas
Stellar Science, LLC
mwbuksas <at> stellarscience.com
www.stellarscience.com
bug Marked as found in versions 26.1.
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Mon, 21 May 2018 00:21:02 GMT)
Full text and
rfc822 format available.
Added tag(s) confirmed.
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Mon, 21 May 2018 00:21:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#22374
; Package
emacs
.
(Mon, 21 May 2018 20:39:01 GMT)
Full text and
rfc822 format available.
Message #12 received at 22374 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
[moving from bug#17675 to #22374]
martin rudalics <rudalics <at> gmx.at> writes:
> If you think that this might solve Bug#22374, I'd go for it. Can you
> explain how it solves that bug?
Oh, I only observed that it [35] fixes the bug, I was hoping you could
explain it. Actually, it looks like the explanation you put before [20]
still applies. The reason the inhibit-same-window fix doesn't help is
that step 9 (middle-click the single line in the stack frame window)
changes the current window, hence the gud interaction window is no
longer the "same-window" and not inhibited.
[do-test.el (text/plain, attachment)]
[Message part 3 (text/plain, inline)]
[20]: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=17675#20
[35]: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=17675#35
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#22374
; Package
emacs
.
(Tue, 22 May 2018 07:26:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 22374 <at> debbugs.gnu.org (full text, mbox):
> The reason the inhibit-same-window fix doesn't help is
> that step 9 (middle-click the single line in the stack frame window)
> changes the current window, hence the gud interaction window is no
> longer the "same-window" and not inhibited.
Then I think you should install it and we will see soon enough
whether it has any bad side effects.
martin
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#22374
; Package
emacs
.
(Wed, 23 May 2018 23:12:01 GMT)
Full text and
rfc822 format available.
Message #18 received at 22374 <at> debbugs.gnu.org (full text, mbox):
tags 22374 fixed
close 22374 27.1
quit
martin rudalics <rudalics <at> gmx.at> writes:
>> The reason the inhibit-same-window fix doesn't help is
>> that step 9 (middle-click the single line in the stack frame window)
>> changes the current window, hence the gud interaction window is no
>> longer the "same-window" and not inhibited.
>
> Then I think you should install it and we will see soon enough
> whether it has any bad side effects.
Done.
[1: 0d224e8241]: 2018-05-23 07:53:58 -0400
Avoid messing up buffer list when starting gud (Bug#22374)
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=0d224e82411d9471f03fc339890d6a2952b5e239
Added tag(s) fixed.
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Wed, 23 May 2018 23:12:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 27.1, send any further explanations to
22374 <at> debbugs.gnu.org and Michael Buksas <mwbuksas <at> stellarscience.com>
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Wed, 23 May 2018 23:12:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 21 Jun 2018 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 58 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.