summaryrefslogtreecommitdiff
path: root/lisp/textmodes/string-edit.el
AgeCommit message (Collapse)Author
2026-04-22; (string-edit-minor-mode): Fix mode line lighter.Eshel Yaron
2026-01-01; Add 2026 to copyright years.Sean Whitton
2025-09-27; (read-string-from-buffer): Fix thinko and typo.Eshel Yaron
2025-04-26; Fix compilation warning in string-edit.elEli Zaretskii
* lisp/textmodes/string-edit.el (string-edit): Avoid shadowing the global 'major-mode'.
2025-04-26Improve help-fns-edit-variable for Lisp editingSpencer Baugh
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)
2025-03-09Document return values of the various read-* functionsEli Zaretskii
* 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.
2025-01-02Update copyright year to 2025Stefan Kangas
Run "TZ=UTC0 admin/update-copyright".
2024-06-15Prevent deletion of separator in *edit string* bufferEli Zaretskii
* lisp/textmodes/string-edit.el (string-edit): Make the separator line read-only. (Bug#71405)
2024-06-08Fix 'string-edit' when abort-callback is omittedEli Zaretskii
* lisp/textmodes/string-edit.el (string-edit): Set 'string-edit--abort-callback' even if ABORT-CALLBACK is nil. (Bug#71406)
2024-01-02; Add 2024 to copyright yearsPo Lu
2023-01-01; Add 2023 to copyright years.Eli Zaretskii
2022-10-12Fix thinko in read-string-from-bufferLars Ingebrigtsen
* lisp/textmodes/string-edit.el (string-edit-done): Return an empty string when the user has entered no text.
2022-10-11Make read-string-from-buffer and string-edit mention each otherLars Ingebrigtsen
* lisp/textmodes/string-edit.el (read-string-from-buffer) (string-edit): Mention each other in the doc strings.
2022-05-11* lisp/textmodes/string-edit.el: Improvements for pop-to-buffer (bug#33007)Juri Linkov
* 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-04-27Change parameter order for string-edit functionsLars Ingebrigtsen
* 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-27Add autoload cookies to string-editLars Ingebrigtsen
* lisp/textmodes/string-edit.el (string-edit) (read-string-from-buffer): Autoload.
2022-04-27Add an instruction header line to string-editLars Ingebrigtsen
* lisp/textmodes/string-edit.el (string-edit): Add a header line with instructions.
2022-04-25Fix up some string-edit.el stringsLars Ingebrigtsen
* 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-24Use `C-c C-k' instead of `C-c C-d' to abort in string-editLars Ingebrigtsen
* lisp/textmodes/string-edit.el (string-edit-mode-map): Use `C-c C-k' to abort.
2022-04-24Add new function `read-string-from-buffer'.Lars Ingebrigtsen
* doc/lispref/minibuf.texi (Text from Minibuffer): Document it. * lisp/textmodes/string-edit.el: New file.