GNU bug report logs -
#33007
27.0.50; Proposal for function to edit and return string
Previous Next
Reported by: Jean Louis <bugs <at> gnu.support>
Date: Wed, 10 Oct 2018 20:51:02 UTC
Severity: wishlist
Found in version 27.0.50
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> pop-to-buffer-same-window does allow customization via
> display-buffer-alist, but -below-selected would be a better default.
This is what could be used:
(pop-to-buffer (generate-new-buffer "*edit string*")
'(display-buffer-below-selected
(window-min-height . 10)
(window-height . fit-window-to-buffer)))
but currently its window-min-height has no effect.
Maybe because of a bug? The docstring of display-buffer-below-selected:
If ALIST contains a `window-min-height' entry, this function
ensures that the window used is or can become at least as high as
specified by that entry's value. Note that such an entry alone
will not resize the window per se. In order to do that, ALIST
must also contain a `window-height' entry with the same value.
But still the window height is less than 10 lines.
BTW, maybe read-string-from-buffer should have ###autoload cookie?
Also any chance to make it argument-wise compatible with read-string?
Currently:
(read-string PROMPT &optional INITIAL-INPUT
(read-string-from-buffer STRING &optional HELP-TEXT
HELP-TEXT could be renamed to PROMPT, and STRING really is INITIAL-INPUT.
This bug report was last modified 3 years and 15 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.