From: Mauro Aranda Date: Thu, 22 Oct 2020 12:30:13 +0000 (+0200) Subject: Pretty print restricted sexp values too X-Git-Tag: emacs-28.0.90~5488 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5215067c4efd186ffc0d8bf2e68bd4be7bf627c5;p=emacs.git 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). --- diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el index c3366b62cdb..009c6b4faf2 100644 --- a/lisp/wid-edit.el +++ b/lisp/wid-edit.el @@ -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)