all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Window/buffer management in gdb-ui
Date: Wed, 24 Nov 2004 09:59:41 -0500	[thread overview]
Message-ID: <jwvy8grcnbt.fsf-monnier+emacs@gnu.org> (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

             reply	other threads:[~2004-11-24 14:59 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-24 14:59 Stefan Monnier [this message]
2004-11-24 20:09 ` Window/buffer management in gdb-ui 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

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=jwvy8grcnbt.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    /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.