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

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

[elpa] externals/dict-tree 9946a1d 075/154: Dictionary now defaults to c


From: Stefan Monnier
Subject: [elpa] externals/dict-tree 9946a1d 075/154: Dictionary now defaults to current dict in in most dictionary-related commands.
Date: Mon, 14 Dec 2020 12:21:48 -0500 (EST)

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

    Dictionary now defaults to current dict in in most dictionary-related 
commands.
    Fixed bug that this revealed in read-dict.
    All interactive dictionary commands should now display message indicating 
success.
---
 dict-tree.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/dict-tree.el b/dict-tree.el
index 310e45b..1c3c8b5 100644
--- a/dict-tree.el
+++ b/dict-tree.el
@@ -5,7 +5,7 @@
 ;; Copyright (C) 2004-2009 Toby Cubitt
 
 ;; Author: Toby Cubitt <toby-predictive@dr-qubit.org>
-;; Version: 0.12.1
+;; Version: 0.12.2
 ;; Keywords: dictionary, tree
 ;; URL: http://www.dr-qubit.org/emacs.php
 
@@ -53,6 +53,9 @@
 
 ;;; Change log:
 ;;
+;; Version 0.12.2
+;; * bug-fix to DEFAULT argument handling in `read-dict'
+;;
 ;; Version 0.12.1
 ;; * added `edebug-prin1' and `edebug-prin1-to-string' advice to prevent
 ;;   edebug hanging whilst printing large dictionaries
@@ -3319,7 +3322,7 @@ extension, suitable for passing to `load-library'."
                    (if allow-unloaded
                        'dictree-history
                      'dictree-loaded-history)
-                   default))
+                   (and (dictree-p default) (dictree-name default))))
     ;; return dictionary
     (cond
      ;; if user typed a file name, return that



reply via email to

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