emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/transient 0d79ccfaf8 218/366: transient--parse-suffix:


From: Jonas Bernoulli
Subject: [elpa] externals/transient 0d79ccfaf8 218/366: transient--parse-suffix: Don't fallback to read-string for options
Date: Tue, 25 Jan 2022 18:54:42 -0500 (EST)

branch: externals/transient
commit 0d79ccfaf899f6192151d1191fbc234795489923
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    transient--parse-suffix: Don't fallback to read-string for options
    
    `transient-infix-read' already falls back to using `read-string',
    but only if appropriate (e.g. not when `:choices' is specified).
---
 lisp/transient.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisp/transient.el b/lisp/transient.el
index 8cc93a5bc9..ffa1e3c1fd 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -995,8 +995,7 @@ example, sets a variable use `transient-define-infix' 
instead.
                 ((not (string-suffix-p "=" arg))
                  (setq class 'transient-switch))
                 (t
-                 (setq class 'transient-option)
-                 (setq args (plist-put args :reader 'read-string))))))
+                 (setq class 'transient-option)))))
        (t
         (error "Needed command or argument, got %S" car)))
       (while (keywordp car)



reply via email to

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