From: Alexandre Bacquart <tek512@free.fr>
To: emacs-devel@gnu.org
Subject: gdb-setup-windows
Date: Mon, 25 Apr 2016 00:12:34 +0200 [thread overview]
Message-ID: <571D44D2.7060006@free.fr> (raw)
Hi,
There's a bug in gdb UI which bothers me since several years now. That
is enough and I want to get rid of it definitely. But I'm not here to
report it (not the right place), I just want to ask something that I
have been unable to do.
In gdb-mi.el, there's this function gdb-setup-window. This function is
used to setup the 6 windows layout. Here's my question: when emacs
evaluate this function, in which case the (selected-window) is NOT a
window representing the buffer gud-comint-buffer? Whatever I do, I have
been unable to make emacs evaluate this function without
(selected-window) being anything else than a gud-comint-buffer window.
------------------------
Now for details: the bug is that each time I run gdb (with
gdb-many-window set), the windows for gud-comint-buffer is set as non
dedicated (which is quite annoying as any action opening a source file
will open it in this window, hiding the gdb command buffer). As far as I
understand it, gud-comint-buffer is supposed to be dedicated.
The only way I found to fix this bug is by replacing:
(set-window-dedicated-p (selected-window) nil)
with:
(set-window-dedicated-p (selected-window) t)
I found myself doing that EACH TIME I upgrade my emacs package since
years. I want this comedy to stop. However, that looks too simple. It's
not because I cannot reproduce a wrong behavior in result of this fix
that it's a good one. Hence, my question ;)
Thanks.
--
Alexandre
reply other threads:[~2016-04-24 22:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=571D44D2.7060006@free.fr \
--to=tek512@free.fr \
--cc=emacs-devel@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).