Commit graph

7 commits

Author SHA1 Message Date
Juri Linkov
c8141f7675 * lisp/textmodes/string-edit.el: Improvements for pop-to-buffer (bug#33007)
* lisp/textmodes/string-edit.el (string-edit): Use pop-to-buffer
with fit-window-to-buffer after the buffer is filled with text.
(string-edit-done, string-edit-abort): Use (quit-window 'kill).
2022-05-11 10:50:12 +03:00
Lars Ingebrigtsen
9e24255bc5 Change parameter order for string-edit functions
* lisp/textmodes/string-edit.el (string-edit)
(read-string-from-buffer): Rework the function arguments so that
they're more similar to `read-string'.  Rename symbols throughout
the file from help-text to prompt.
2022-04-27 19:11:20 +02:00
Lars Ingebrigtsen
1f659cd336 Add autoload cookies to string-edit
* lisp/textmodes/string-edit.el (string-edit)
(read-string-from-buffer): Autoload.
2022-04-27 19:03:49 +02:00
Lars Ingebrigtsen
0613e7c33d Add an instruction header line to string-edit
* lisp/textmodes/string-edit.el (string-edit): Add a header line
with instructions.
2022-04-27 14:08:49 +02:00
Lars Ingebrigtsen
e1d0632003 Fix up some string-edit.el strings
* lisp/textmodes/string-edit.el (string-edit)
(read-string-from-buffer): Make doc strings use dynamic key
bindings.
(string-edit): Fix message at the end.
2022-04-25 09:47:54 +02:00
Lars Ingebrigtsen
1a6fa4c5d5 Use C-c C-k' instead of C-c C-d' to abort in string-edit
* lisp/textmodes/string-edit.el (string-edit-mode-map): Use `C-c
C-k' to abort.
2022-04-24 16:06:43 +02:00
Lars Ingebrigtsen
8ee21db4af Add new function `read-string-from-buffer'.
* doc/lispref/minibuf.texi (Text from Minibuffer): Document it.
* lisp/textmodes/string-edit.el: New file.
2022-04-24 15:16:00 +02:00