Eli Zaretskii
6d12157fa8
Prevent deletion of separator in *edit string* buffer
...
* lisp/textmodes/string-edit.el (string-edit): Make the separator
line read-only. (Bug#71405)
2024-06-15 11:37:34 +03:00
Eli Zaretskii
bd50c804ec
Fix 'string-edit' when abort-callback is omitted
...
* lisp/textmodes/string-edit.el (string-edit): Set
'string-edit--abort-callback' even if ABORT-CALLBACK is nil.
(Bug#71406)
2024-06-08 16:07:24 +03:00
Po Lu
8e1c56ae46
; Add 2024 to copyright years
2024-01-02 09:47:10 +08:00
Eli Zaretskii
cae528457c
; Add 2023 to copyright years.
2023-01-01 05:31:12 -05:00
Lars Ingebrigtsen
820e6f399d
Fix thinko in read-string-from-buffer
...
* lisp/textmodes/string-edit.el (string-edit-done): Return an empty
string when the user has entered no text.
2022-10-12 13:40:51 +02:00
Lars Ingebrigtsen
5724ee6131
Make read-string-from-buffer and string-edit mention each other
...
* lisp/textmodes/string-edit.el (read-string-from-buffer)
(string-edit): Mention each other in the doc strings.
2022-10-11 13:02:27 +02:00
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