From 5215067c4efd186ffc0d8bf2e68bd4be7bf627c5 Mon Sep 17 00:00:00 2001 From: Mauro Aranda Date: Thu, 22 Oct 2020 14:30:13 +0200 Subject: [PATCH] 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). --- lisp/wid-edit.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2