1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-20 11:33:09 -08:00
emacs/lisp/textmodes
Spencer Baugh 8f58f55551 Improve help-fns-edit-variable for Lisp editing
Before d50c82f3e9 ("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-04-26 14:53:18 +03:00
..
artist.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
bib-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
bibtex-style.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
bibtex.el ; Fix typos 2025-02-22 14:48:29 +01:00
conf-mode.el Add major mode for highlighting npmrc files (Bug#77138) 2025-03-29 13:19:04 +03:00
css-mode.el Revert addition of electric-block-comment-mode & follow-up commits 2025-04-22 20:47:56 +08:00
dns-mode.el Prefer plusp/minusp to cl-plusp/cl-minusp 2025-02-17 22:46:56 +01:00
emacs-authors-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
emacs-news-mode.el Delete redundant lambdas around unary functions 2025-02-11 19:04:00 +01:00
enriched.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
fill.el Merge branch 'scratch/no-purespace' into 'master' 2025-02-01 04:56:52 +01:00
flyspell.el Make turn-on-flyspell/turn-off-flyspell obsolete 2025-03-14 19:50:22 +01:00
glyphless-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
html-ts-mode.el Lock tree-sitter language grammars to verified versions. 2025-04-18 19:22:50 +03:00
ispell.el Use defvar-keymap for some trivial keymaps 2025-03-16 13:48:11 +01:00
less-css-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
makeinfo.el Recommend using 'keymap-set' in Commentaries 2025-03-15 04:10:27 +01:00
markdown-ts-mode.el Fix parens inside links in markdown-ts--treesit-settings. 2025-04-18 20:15:40 +03:00
mhtml-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
mhtml-ts-mode.el Lock tree-sitter language grammars to verified versions. 2025-04-18 19:22:50 +03:00
nroff-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
page-ext.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
page.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
paragraphs.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
picture.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
pixel-fill.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
po.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
refbib.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
refer.el Recommend using 'keymap-set' in Commentaries 2025-03-15 04:10:27 +01:00
refill.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
reftex-auc.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
reftex-cite.el Add RefTeX support for non-file buffers 2025-04-04 14:37:33 -04:00
reftex-dcr.el Prefer incf to cl-incf in textmodes/*.el 2025-02-24 19:27:47 +01:00
reftex-global.el Add RefTeX support for non-file buffers 2025-04-04 14:37:33 -04:00
reftex-index.el Add RefTeX support for non-file buffers 2025-04-04 14:37:33 -04:00
reftex-parse.el Add RefTeX support for non-file buffers 2025-04-04 14:37:33 -04:00
reftex-ref.el Add RefTeX support for non-file buffers 2025-04-04 14:37:33 -04:00
reftex-sel.el Add RefTeX support for non-file buffers 2025-04-04 14:37:33 -04:00
reftex-toc.el Add RefTeX support for non-file buffers 2025-04-04 14:37:33 -04:00
reftex-vars.el Remove support for supertabular from RefTeX 2025-01-08 20:47:43 +01:00
reftex.el Handle TeX-master holding a buffer 2025-04-04 16:17:36 -04:00
remember.el Recommend using 'keymap-set' in Commentaries 2025-03-15 04:10:27 +01:00
rst.el Merge from origin/emacs-30 2025-03-30 16:17:00 +02:00
sgml-mode.el Revert addition of electric-block-comment-mode & follow-up commits 2025-04-22 20:47:56 +08:00
string-edit.el Improve help-fns-edit-variable for Lisp editing 2025-04-26 14:53:18 +03:00
table.el Recommend using 'keymap-set' in Commentaries 2025-03-15 04:10:27 +01:00
tex-mode.el Extend prettify-symbols-alist in TeX mode 2025-04-05 12:21:29 +03:00
texinfmt.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
texinfo.el Merge branch 'scratch/no-purespace' into 'master' 2025-02-01 04:56:52 +01:00
texnfo-upd.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
text-mode.el Improve conversion between half-width and full-width characters 2025-03-15 13:58:44 +02:00
tildify.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
toml-ts-mode.el Lock tree-sitter language grammars to verified versions. 2025-04-18 19:22:50 +03:00
two-column.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
underline.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
word-wrap-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
yaml-ts-mode.el Fix 'yaml-ts-mode' filling of comments (Bug#77095) 2025-04-26 14:37:02 +03:00