aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes/string-edit.el (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ; Add 2026 to copyright years.Sean Whitton2026-01-011-1/+1
|
* ; (read-string-from-buffer): Fix thinko and typo.Eshel Yaron2025-09-271-4/+2
|
* ; Fix compilation warning in string-edit.elEli Zaretskii2025-04-261-3/+3
| | | | | * lisp/textmodes/string-edit.el (string-edit): Avoid shadowing the global 'major-mode'.
* Improve help-fns-edit-variable for Lisp editingSpencer Baugh2025-04-261-24/+38
| | | | | | | | | | | | | | | | | | | | | Before d50c82f3e98e ("Simplify 'help-enable-variable-value-editing' using 'string-edit'"), 'help-fns-edit-variable' would open a buffer in 'emacs-lisp-mode' and would not allow exiting that buffer with an invalid Lisp expression. Restore that functionality by enhancing 'string-edit' to allow choosing a major mode and allow passing a function to validate the buffer contents before returning. * lisp/help-fns.el (help-fns-edit-variable): Call 'string-edit', passing 'emacs-lisp-mode' and 'read'. * lisp/textmodes/string-edit.el (string-edit--read): Add. (string-edit): Add :major-mode and :read arguments and avoid passive voice. (read-string-from-buffer): Avoid passive voice in docs. (string-edit-mode-map, string-edit-minor-mode-map) (string-edit-mode, string-edit-minor-mode): Move 'string-edit' keybindings to a minor mode. (string-edit-done): Call 'string-edit--read' before exiting. (Bug#77834)
* Document return values of the various read-* functionsEli Zaretskii2025-03-091-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/textmodes/string-edit.el (read-string-from-buffer): * lisp/simple.el (read-from-kill-ring, read-shell-command) (read-signal-name): * lisp/replace.el (read-regexp-case-fold-search): * lisp/auth-source.el (read-passwd): * lisp/subr.el (read-key, read-number): * lisp/minibuffer.el (read-file-name, read-no-blanks-input): * lisp/international/mule-cmds.el (read-multilingual-string): * lisp/language/japan-util.el (read-hiragana-string): * lisp/files-x.el (read-file-local-variable) (read-file-local-variable-mode, read-file-local-variable-value): * lisp/faces.el (read-face-font, read-face-name): * lisp/simple.el (read-extended-command): * lisp/env.el (read-envvar-name): * lisp/files.el (read-directory-name): * lisp/faces.el (read-color): * lisp/international/mule-diag.el (read-charset): * lisp/emacs-lisp/map-ynp.el (read-answer): * src/coding.c (Fread_coding_system) (Fread_non_nil_coding_system): * src/minibuf.c (Fread_command, Fread_from_minibuffer): * src/lread.c (Fread_char, Fread_char_exclusive, Fread_event): Doc fixes.
* Update copyright year to 2025Stefan Kangas2025-01-021-1/+1
| | | | Run "TZ=UTC0 admin/update-copyright".
* Prevent deletion of separator in *edit string* bufferEli Zaretskii2024-06-151-1/+2
| | | | | * lisp/textmodes/string-edit.el (string-edit): Make the separator line read-only. (Bug#71405)
* Fix 'string-edit' when abort-callback is omittedEli Zaretskii2024-06-081-2/+1
| | | | | | * lisp/textmodes/string-edit.el (string-edit): Set 'string-edit--abort-callback' even if ABORT-CALLBACK is nil. (Bug#71406)
* ; Add 2024 to copyright yearsPo Lu2024-01-021-1/+1
|
* ; Add 2023 to copyright years.Eli Zaretskii2023-01-011-1/+1
|
* Fix thinko in read-string-from-bufferLars Ingebrigtsen2022-10-121-3/+1
| | | | | * lisp/textmodes/string-edit.el (string-edit-done): Return an empty string when the user has entered no text.
* Make read-string-from-buffer and string-edit mention each otherLars Ingebrigtsen2022-10-111-2/+6
| | | | | * lisp/textmodes/string-edit.el (read-string-from-buffer) (string-edit): Mention each other in the doc strings.
* * lisp/textmodes/string-edit.el: Improvements for pop-to-buffer (bug#33007)Juri Linkov2022-05-111-28/+35
| | | | | | * 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).
* Change parameter order for string-edit functionsLars Ingebrigtsen2022-04-271-14/+16
| | | | | | | * 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.
* Add autoload cookies to string-editLars Ingebrigtsen2022-04-271-0/+2
| | | | | * lisp/textmodes/string-edit.el (string-edit) (read-string-from-buffer): Autoload.
* Add an instruction header line to string-editLars Ingebrigtsen2022-04-271-0/+3
| | | | | * lisp/textmodes/string-edit.el (string-edit): Add a header line with instructions.
* Fix up some string-edit.el stringsLars Ingebrigtsen2022-04-251-5/+5
| | | | | | | * 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.
* Use `C-c C-k' instead of `C-c C-d' to abort in string-editLars Ingebrigtsen2022-04-241-3/+3
| | | | | * lisp/textmodes/string-edit.el (string-edit-mode-map): Use `C-c C-k' to abort.
* Add new function `read-string-from-buffer'.Lars Ingebrigtsen2022-04-241-0/+122
* doc/lispref/minibuf.texi (Text from Minibuffer): Document it. * lisp/textmodes/string-edit.el: New file.