unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Window/buffer management in gdb-ui
@ 2004-11-24 14:59 Stefan Monnier
  2004-11-24 20:09 ` Nick Roberts
       [not found] ` <jwvpt23arhf.fsf-monnier+emacs@gnu.org>
  0 siblings, 2 replies; 16+ messages in thread
From: Stefan Monnier @ 2004-11-24 14:59 UTC (permalink / raw)



The window-/buffer management in gdb-ui is not working well in my setup.
And the code in gdb-ui looks pretty frightening.  E.g. things like:

   (defun dedicated-switch-to-buffer (name)
     (set-window-dedicated-p 
      (get-buffer-window
       (switch-to-buffer name)) t))

make me cringe:
- messes up the namespace
- it changes the currently selected window and makes it dedicated
  (because we know that (get-buffer-window (switch-to-buffer name))
   is always equal to (selected-window))

I understand that maybe my setup is not representative, but maybe if you
could describe what behavior you're trying to get, I can help you come up
with a way to code it that doesn't plays nicely in my situation.

I.e. what is the behavior you're trying to get.  You can describe it with
a mix of description of how *you* want it plus some examples of problematic
behaviors you'd like to avoid (i.e. bug-reports).

As for my own setup, I use 1 buffer per frame and 1 frame per buffer with
a separate dedicated minibuffer.  In my setup, any code that uses
`switch-to-buffer' is a pain in the rear.


        Stefan

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2004-11-26 22:46 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-24 14:59 Window/buffer management in gdb-ui Stefan Monnier
2004-11-24 20:09 ` Nick Roberts
2004-11-24 20:42   ` {Spam?} " Stefan Monnier
2004-11-25  2:30     ` Nick Roberts
2004-11-25 16:26       ` {Spam?} " Stefan
2004-11-24 21:30   ` Kai Grossjohann
2004-11-24 21:39     ` Kai Grossjohann
     [not found] ` <jwvpt23arhf.fsf-monnier+emacs@gnu.org>
2004-11-25  2:14   ` Nick Roberts
2004-11-25 16:07     ` Stefan Monnier
2004-11-25 23:59       ` Nick Roberts
2004-11-26  4:21         ` Stefan Monnier
2004-11-26 15:53           ` Nick Roberts
2004-11-26 22:46             ` {Spam?} " Stefan Monnier
2004-11-26 10:16         ` Kim F. Storm
2004-11-26 15:42           ` Nick Roberts
2004-11-26 22:43             ` Stefan Monnier

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).