emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 5215067: Pretty print restricted sexp values too


From: Lars Ingebrigtsen
Subject: master 5215067: Pretty print restricted sexp values too
Date: Thu, 22 Oct 2020 08:30:30 -0400 (EDT)

branch: master
commit 5215067c4efd186ffc0d8bf2e68bd4be7bf627c5
Author: Mauro Aranda <maurooaranda@gmail.com>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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 c3366b6..009c6b4 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]