[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dict-tree 5cc5449 091/154: Fixed obsolete functions and
From: |
Stefan Monnier |
Subject: |
[elpa] externals/dict-tree 5cc5449 091/154: Fixed obsolete functions and other compiler warnings. |
Date: |
Mon, 14 Dec 2020 12:21:51 -0500 (EST) |
branch: externals/dict-tree
commit 5cc544991845d9916401b2e4a514c2577b49aa79
Author: Toby S. Cubitt <toby-predictive@dr-qubit.org>
Commit: Toby S. Cubitt <toby-predictive@dr-qubit.org>
Fixed obsolete functions and other compiler warnings.
---
dict-tree.el | 25 ++++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/dict-tree.el b/dict-tree.el
index 5ad959e..15f09de 100644
--- a/dict-tree.el
+++ b/dict-tree.el
@@ -2,10 +2,10 @@
;;; dict-tree.el --- dictionary data structure package
-;; Copyright (C) 2004-2011 Toby Cubitt
+;; Copyright (C) 2004-2012 Toby Cubitt
;; Author: Toby Cubitt <toby-predictive@dr-qubit.org>
-;; Version: 0.12.5
+;; Version: 0.12.6
;; Keywords: dictionary, tree
;; URL: http://www.dr-qubit.org/emacs.php
@@ -53,6 +53,9 @@
;;; Change log:
;;
+;; Version 0.12.6
+;; * replaced obsolete `interactive-p' with `called-interactively-p'
+;;
;; Version 0.12.5
;; * fixed default value handling in `read-dict'
;;
@@ -1573,7 +1576,7 @@ PREFIX is a prefix of STR."
dictree-regexp-ranked-cache))
(when (funcall cachefun dict)
(clrhash (funcall cachefun dict))))
- (when (interactive-p)
+ (when (called-interactively-p 'interactive)
(message "Cleared caches for dictionary %s" (dictree-name dict))))
@@ -1903,7 +1906,7 @@ Interactively, DICT is read from the mini-buffer."
(interactive (list (read-dict "Dictionary: ")))
(let ((count 0))
(dictree-mapc (lambda (&rest dummy) (incf count)) dict)
- (when (interactive-p)
+ (when (called-interactively-p 'interactive)
(message "Dictionary %s contains %d entries"
(dictree--name dict) count))
count))
@@ -2603,7 +2606,7 @@ and OVERWRITE is the prefix argument."
nil "")
current-prefix-arg))
- (if (and (interactive-p) (string= filename ""))
+ (if (and (called-interactively-p 'any) (string= filename ""))
(progn
(message "Dictionary %s NOT written" (dictree-name dict))
nil) ; indicate dictionary wasn't written
@@ -2710,7 +2713,7 @@ asked whether they wish to continue after a failed save."
(interactive "P")
;; sort out arguments
- (when (and (interactive-p) dict) (setq dict nil force t))
+ (when (and (called-interactively-p 'any) dict) (setq dict nil force t))
(when (dictree-p dict) (setq dict (list dict)))
;; For each dictionary in list / each loaded dictionary, check if
@@ -2733,7 +2736,7 @@ asked whether they wish to continue after a failed save."
;; prompt if dictionary saving failed
(if save-failures
- (if (or (interactive-p) no-fail-query)
+ (if (or (called-interactively-p 'any) no-fail-query)
(progn
(message
(concat
@@ -2770,7 +2773,7 @@ Interactively, FILE is read from the mini-buffer."
(if (not (load file t))
;; if loading failed, throw error interactively, return nil
;; non-interactively
- (if (interactive-p)
+ (if (called-interactively-p 'any)
(error "Cannot open dictionary file: %s" file)
nil)
@@ -2781,7 +2784,7 @@ Interactively, FILE is read from the mini-buffer."
(if (not (dictree-p dict))
;; if loading failed, throw error interactively, return nil
;; non-interactively
- (if (interactive-p)
+ (if (called-interactively-p 'any)
(error "Error loading dictionary file: %s" file)
nil)
@@ -3231,7 +3234,7 @@ are created when using a trie that is not self-balancing,
see
(read-file-name "File to populate from: "
nil "" t)))
- (if (and (interactive-p) (string= file ""))
+ (if (and (called-interactively-p 'any) (string= file ""))
(message "No file specified; dictionary %s NOT populated"
(dictree-name dict))
@@ -3446,7 +3449,7 @@ OVERWRITE is the prefix argument, and TYPE is always
'string."
(interactive (list (read-dict "Dictionary: ")
(read-file-name "File to dump to: " nil "")))
- (if (and (interactive-p) (string= filename ""))
+ (if (and (called-interactively-p 'any) (string= filename ""))
(message "Dictionary %s NOT dumped" (dictree-name dict))
;; check if file exists, and prompt to overwrite it if necessary
- [elpa] externals/dict-tree 06f5039 055/154: Bug-fix to 'resultfun' feature in dictree--query and dictree--do-query, (continued)
- [elpa] externals/dict-tree 06f5039 055/154: Bug-fix to 'resultfun' feature in dictree--query and dictree--do-query, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 9e9d7e9 056/154: Added dictree-clear-caches for doing the obvious, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 32bb6e2 061/154: Replaced wildcard searches with more powerful and efficient regexp searches., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree aa22866 062/154: minor fix: added tNFA to required packages, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree c53e4b8 064/154: Bumped copyright year, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 61f0ce6 068/154: Bug-fix in dictree--query, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 168cdb5 072/154: Improved edebug-prin1 advice, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 8810d3e 076/154: Bug-fixes to edebug pretty-print functions., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree c1eeabe 081/154: Made dictionary auto-saving more robust against dictionary save failures., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 2666377 084/154: Fixed implementation of 'both cache policy., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 5cc5449 091/154: Fixed obsolete functions and other compiler warnings.,
Stefan Monnier <=
- [elpa] externals/dict-tree 0ea66e7 090/154: Added fboundp guard around ad-define-subr-args (removed in Emacs-24)., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree cfdc73d 099/154: Fixed calls to dictree-create-meta-dict., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 2a1d749 098/154: Minor change to package description, to match other data structure packages., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 7ab8f94 095/154: Updated copyright attribution and license (GPL2 -> GPL3)., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 09b388f 108/154: Add note to self to use cust-print pretty-printing instead of advice., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree d96b1c5 097/154: More minor whitespace and commentary changes., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 1ec9d58 102/154: Restore trie print/read transformer functions., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 48ab389 092/154: Simplified persistent-storage code for tries and dict-trees., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 454c68b 109/154: Code cleanup., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree ba2eba0 107/154: Exploit lexical closures to allow byte-compilation of wrapped functions., Stefan Monnier, 2020/12/14