GNU bug report logs -
#15961
24.3.50; display-buffer-at-bottom not at bottom
Previous Next
Reported by: Juri Linkov <juri <at> jurta.org>
Date: Sat, 23 Nov 2013 23:45:01 UTC
Severity: normal
Found in version 24.3.50
Done: Juri Linkov <juri <at> jurta.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> In emacs -Q that is wide enough to contain two side-by-side windows
> in the *scratch* buffer evaluate:
>
> (add-to-list 'display-buffer-alist '("\\*Completions\\*" display-buffer-at-bottom (nil)))
>
> (display-buffer (get-buffer-create "*Completions*"))
>
> The *Completions* window is displayed to the right from the *scratch* window,
> not below.
Strictly spoken, the new window also appears at the bottom of the frame ;-)
An obvious solution to do what you mean is to bind
`split-width-threshold' to nil in `display-buffer-at-bottom' as
(let (split-width-threshold)
(setq window (window--try-to-split-window bottom-window alist)))
But this should be better done _around_ calling `display-buffer'. There
an application should also bind `split-height-threshold' and
`window-min-height' appropriately as well as a specify a `window-height'
alist entry. Otherwise, Emacs will often refuse to make a new window
which is probably not what we want when displaying *Completions*.
martin
This bug report was last modified 11 years and 174 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.