GNU bug report logs - #7368
display-buffer may not respect pop-up-frames value

Previous Next

Package: emacs;

Reported by: Andrey Paramonov <cmr.aparamon <at> gmail.com>

Date: Wed, 10 Nov 2010 21:55:01 UTC

Severity: normal

Found in version 23.2

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

Full log


Message #67 received at 7368 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Андрей Парамонов
	<cmr.pent <at> gmail.com>
Cc: 7368 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#7368: display-buffer a softly dedicated window
Date: Thu, 18 Nov 2010 11:27:12 +0100
> comint.el forces *Completions* to close and shows the interpreter
> immediately, in its place. That's what I want, exactly. Showing the
> interpreter in place of *Completions* would have the same effect, so
> it's what I want, too.

I've looked into comint.el.  It's apparently based on window
configurations and restores the old configuration when you do
`choose-completion' or type SPACE.  I don't see where it deletes the
window when you do something else.  Very contrived code.

> My code window occupies full frame most of the time. That allows me to
> see more code.

Hm...  What about setting `display-buffer-function' to something like:

(defun my-display-buffer (buffer flag)
  (let (window display-buffer-function)
    (when (and (= (length (window-list)) 2)
	       (setq window (get-buffer-window "*Completions*")))
      (set-window-dedicated-p window nil))
    (display-buffer buffer flag)))

martin





This bug report was last modified 10 years and 237 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.