aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorSpencer Baugh2025-04-15 17:17:27 -0400
committerEli Zaretskii2025-04-26 14:53:18 +0300
commit8f58f55551341001119034f2e9f5fdc87d3abd54 (patch)
treedad0de190ae866d8633c75cc4ec0968b5136efe0 /java
parent0e2fd0e441b2cc7686450d8784707ebc6fbe4917 (diff)
downloademacs-8f58f55551341001119034f2e9f5fdc87d3abd54.tar.gz
emacs-8f58f55551341001119034f2e9f5fdc87d3abd54.zip
Improve help-fns-edit-variable for Lisp editing
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)
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions