[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pop-to-buffer and friends new behavior or bug?

From: martin rudalics
Subject: Re: pop-to-buffer and friends new behavior or bug?
Date: Fri, 17 Jun 2011 17:46:05 +0200
User-agent: Thunderbird (Windows/20090302)

> (when (boundp 'display-buffer-alist)
>   (setq display-buffer-alist
>         '((((regexp . ".*"))
>            reuse-window
>            (reuse-window nil same visible)
>            pop-up-window
>            (pop-up-window
>             (fit-window-to-buffer)
>             (nil))
>            reuse-window
>            (reuse-window other other nil)
>            (reuse-window-even-sizes . nil)))))

This "works" only because there's a bug when processing the
`pop-up-window' specifier whose cdr must be a list of (window . side)
pairs.  I suppose you didn't use the customization interface :-(

So what happens is that because of this bug Emacs doesn't pop up a new
window but reuses an existing one.

>>> but not for code that use switch-to-buffer-other-window.

I checked in a fix which should handle `switch-to-buffer-other-window'
as well.  Please have another look.

Thanks, martin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]