[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#17809: 24.4.50; Completions display
From: |
Juri Linkov |
Subject: |
bug#17809: 24.4.50; Completions display |
Date: |
Sat, 28 Jun 2014 02:54:10 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) |
>>> explicitly instead of using an action alist `(window-height
>>> . fit-window-to-buffer)'?
>>
>> IIUC that would mean that it couldn't be configured via
>> display-buffer-alist, right?
>
> Obviously. Do we want to control filling via `display-buffer'?
Maybe it would be a good thing to add a new action parameter to
`display-buffer' that would be like the existing `quit-function'
in `with-current-buffer-window', and will call its body between
displaying the buffer and applying final actions alists like
(window-height . fit-window-to-buffer)
> Anyway, the output happens via `with-output-to-temp-buffer' which has no
> direct means to pass an appropriate action to `display-buffer'. If we
> used `with-temp-buffer-window' instead, we could pass an ACTION argument
> to fill the buffer according to the size of the window used instead of
> adjusting the window to the buffer size. In that case the configuration
> could be controlled via `display-buffer-alist'.
`dired-mark-pop-up' already uses `with-current-buffer-window' that is
like `with-temp-buffer-window', but still has the same problem
as the screenshot below demonstrates: it inserts the contents
to the buffer before displaying it, so it has no way to get the
final window dimensions while inserting the contents, and leaves
empty columns.
It's possible in `dired-mark-pop-up' to move formatting
(i.e. the call to `dired-format-columns-of-files')
from the BODY arg of `with-current-buffer-window'
to its QUIT-FUNCTION arg, and it will fill the empty columns,
because the formatting will happen after displaying the buffer.
But then (window-height . fit-window-to-buffer) will be called
on the empty buffer, that will always produce a small window
with 3-lines height.
- bug#17831: 24.4.50; bad default value for `Man-width', (continued)
- bug#17831: 24.4.50; bad default value for `Man-width', Juri Linkov, 2014/06/24
- bug#17831: 24.4.50; bad default value for `Man-width', martin rudalics, 2014/06/25
- bug#17809: 24.4.50; Completions display, Juri Linkov, 2014/06/24
- bug#17809: 24.4.50; Completions display, martin rudalics, 2014/06/25
- bug#17809: 24.4.50; Completions display, Juri Linkov, 2014/06/26
- bug#17809: 24.4.50; Completions display, Stefan Monnier, 2014/06/26
- bug#17809: 24.4.50; Completions display, martin rudalics, 2014/06/27
- bug#17809: 24.4.50; Completions display,
Juri Linkov <=
- bug#17809: 24.4.50; Completions display, martin rudalics, 2014/06/28
- bug#17809: 24.4.50; Completions display, Juri Linkov, 2014/06/29
- bug#17809: 24.4.50; Completions display, martin rudalics, 2014/06/27
- bug#17809: 24.4.50; Completions display, Juri Linkov, 2014/06/27
- bug#17809: 24.4.50; Completions display, martin rudalics, 2014/06/28