1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-03 11:33:37 +00:00

Pretty print restricted sexp values too

* lisp/wid-edit.el (restricted-sexp widget): Use
widget-sexp-value-to-internal to pretty print the widget's value, when
it is a valid one (bug#7524).
This commit is contained in:
Mauro Aranda 2020-10-22 14:30:13 +02:00 committed by Lars Ingebrigtsen
parent a5b4789d99
commit 5215067c4e

View File

@ -3584,7 +3584,7 @@ To use this type, you must define :match or :match-alternatives."
:match 'widget-restricted-sexp-match
:value-to-internal (lambda (widget value)
(if (widget-apply widget :match value)
(prin1-to-string value)
(widget-sexp-value-to-internal widget value)
value)))
(defun widget-restricted-sexp-match (widget value)