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

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

[elpa] externals/dict-tree e752b53 101/154: Accept symbols for dictionar


From: Stefan Monnier
Subject: [elpa] externals/dict-tree e752b53 101/154: Accept symbols for dictionary arguments.
Date: Mon, 14 Dec 2020 12:21:53 -0500 (EST)

branch: externals/dict-tree
commit e752b53430050112c21ffe7732eacd23a1670188
Author: Toby S. Cubitt <toby-predictive@dr-qubit.org>
Commit: Toby S. Cubitt <toby-predictive@dr-qubit.org>

    Accept symbols for dictionary arguments.
---
 dict-tree.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dict-tree.el b/dict-tree.el
index d640bd3..48864f0 100644
--- a/dict-tree.el
+++ b/dict-tree.el
@@ -1696,7 +1696,7 @@ additional information, and can only be retrieved using
 `dictree-get-property'."
 
   ;; sort out arguments
-  (when (symbolp dict) (setq dict (eval dict)))
+  (and (symbolp dict) (setq dict (eval dict)))
   (cond
    ;; set PROPERTY for KEY in all constituent dicts of a meta-dict
    ((dictree--meta-dict-p dict)
@@ -1734,7 +1734,7 @@ still be detected by supplying the optional argument to
 Note that if DICT is a meta-dictionary, then this will delete
 KEY's PROPERTY in *all* its constituent dictionaries."
   ;; sort out arguments
-  (when (symbolp dict) (setq dict (eval dict)))
+  (and (symbolp dict) (setq dict (eval dict)))
   (cond
    ;; delete PROPERTY from KEY in all constituent dicts of a meta-dict
    ((dictree--meta-dict-p dict)



reply via email to

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