branch: externals/dict-tree
commit e752b53430050112c21ffe7732eacd23a1670188
Author: Toby S. Cubitt <toby-predict...@dr-qubit.org>
Commit: Toby S. Cubitt <toby-predict...@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