[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dict-tree 6b05d61 025/154: Another bug-fix to the new c
From: |
Stefan Monnier |
Subject: |
[elpa] externals/dict-tree 6b05d61 025/154: Another bug-fix to the new cache policy code |
Date: |
Mon, 14 Dec 2020 12:21:37 -0500 (EST) |
branch: externals/dict-tree
commit 6b05d61eb4f5f97b9c7cb3093c6395472d92d86c
Author: Toby Cubitt <toby-predictive@dr-qubit.org>
Commit: tsc25 <toby-predictive@dr-qubit.org>
Another bug-fix to the new cache policy code
---
dict-tree.el | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/dict-tree.el b/dict-tree.el
index f6ced34..aed4814 100644
--- a/dict-tree.el
+++ b/dict-tree.el
@@ -1751,9 +1751,9 @@ Returns nil if the stack is empty."
(or (null (dictree--cache-maxnum cache))
(> (dictree--cache-maxnum cache) maxnum)))
(setcdr (nthcdr (1- maxnum) completions) nil)))
-
- ;; if there was nothing useful in the cache, do query and time it
- (t
+
+
+ (t ;; if there was nothing useful in the cache, do query and time it
(let (time)
(setq time (float-time))
(setq cmpl (dictree--do-query
@@ -1766,12 +1766,12 @@ Returns nil if the stack is empty."
(or (eq (dictree--query-cacheparam
query-type dic rank-function)
t)
- (and (or (eq (dictree-cache-policy dict) 'time)
- (eq (dictree-cache-policy dict) 'both))
+ (and (or (eq (dictree-cache-policy dic) 'time)
+ (eq (dictree-cache-policy dic) 'both))
(>= time (dictree--query-cacheparam
query-type dic rank-function)))
- (and (or (eq (dictree-cache-policy dict) 'length)
- (eq (dictree-cache-policy dict) 'both))
+ (and (or (eq (dictree-cache-policy dic) 'length)
+ (eq (dictree-cache-policy dic) 'both))
;; note: we cache completions of *shorter* keys,
;; because those are likely to be slower
(<= (length arg)
@@ -1793,8 +1793,7 @@ Returns nil if the stack is empty."
`(trie-construct-sortfun
,(dictree-comparison-function (car dict)))))
(car a) (car b))))
- nil maxnum))
- )
+ nil maxnum)))
completions))
- [elpa] externals/dict-tree 6b24547 052/154: Allow "]" to be included in a negated character alternatives, by placing immediately after the "[^"., (continued)
- [elpa] externals/dict-tree 6b24547 052/154: Allow "]" to be included in a negated character alternatives, by placing immediately after the "[^"., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree a61f90e 053/154: Bug-fix in dictree-wildcard-search, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree b33203a 060/154: Manage loading and unloading of dictionaries automatically in predictive-mode, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 920d959 077/154: Replaced advice with cedet-edebug.el for pretty-printing, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 9946a1d 075/154: Dictionary now defaults to current dict in in most dictionary-related commands., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree aa1a45d 105/154: Enable lexical binding, and fix issues it picks up., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree ce48d61 104/154: Use symbol-value instead of eval., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 9eb7d29 014/154: Bumped version number and updated commentary., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 034a2d4 020/154: Fixed dictree-member-p bug; dictionaries no longer 'provide' feature., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 104fd29 022/154: Roll back changes to read-dict - not clear that they're necessary even under windoze, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 6b05d61 025/154: Another bug-fix to the new cache policy code,
Stefan Monnier <=
- [elpa] externals/dict-tree daad3f1 040/154: Fixed bugs in dictree--write-dict-code and dictree-save, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 0aed5d4 043/154: Modified dictree--read-line to call data and plist load functions with null argument, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 7a5d669 044/154: Allow insertion and load functions to be overriden in dictree-populate-from-file,, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 4a77581 046/154: Tidied up dictree--query and related code, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree eccfe92 047/154: Bug fix in dictree--do-query, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree f6e9ba1 054/154: Added optional RESULTFUN argument to trie query functions,, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree a07802a 057/154: Bug-fix to dictree-load, which was screwing around with dictree-file data, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree f4aa81c 059/154: Disable caching for unnamed meta-dicts, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree b6175f6 058/154: Bug-fix to meta-dicts: don't add them to meta-dict-lists of constituent lists if caching is disabled,, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree d31ddac 065/154: Bug-fixes to meta-dictionary handling, Stefan Monnier, 2020/12/14