[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dict-tree 238fd6b 082/154: Fixed bug in dictree--merge
From: |
Stefan Monnier |
Subject: |
[elpa] externals/dict-tree 238fd6b 082/154: Fixed bug in dictree--merge that caused one too many completions to be cached. |
Date: |
Mon, 14 Dec 2020 12:21:49 -0500 (EST) |
branch: externals/dict-tree
commit 238fd6b18b897cecaf869163aa2aa37fc12092a9
Author: Toby S. Cubitt <toby-predictive@dr-qubit.org>
Commit: Toby S. Cubitt <toby-predictive@dr-qubit.org>
Fixed bug in dictree--merge that caused one too many completions to be
cached.
---
dict-tree.el | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/dict-tree.el b/dict-tree.el
index 60675c3..092fff6 100644
--- a/dict-tree.el
+++ b/dict-tree.el
@@ -52,10 +52,6 @@
;;; Change log:
-;; Version 0.2.4
-;; * minor bug-fix to `dictree--edebug-pretty-print' to print "nil"
-;; instead of "()"
-;;
;; Version 0.12.4
;; * minor bug-fix to `dictree--edebug-pretty-print' to print "nil"
;; instead of "()"
@@ -63,7 +59,9 @@
;; dictionaries, and indicate failures via its return value
;; * removed `dictree-save-modified' from `kill-emacs-hook' and added it
;; instead to `kill-emacs-query-functions', so that dictionary save
-;; failures don't make it impossible to quie Emacs
+;; failures don't make it impossible to quit Emacs
+;; * fixed bug in `dictree--merge' that caused it to retain one too many
+;; list elements for non-null MAXNUM
;;
;; Version 0.12.3
;; * bug-fix in `dictree--edebug-pretty-print'
@@ -573,7 +571,7 @@ If START or END is negative, it counts from the end."
;; using the return value as the merged element.
(or (listp list1) (setq list1 (append list1 nil)))
(or (listp list2) (setq list2 (append list2 nil)))
- (let (res (i -1))
+ (let (res (i 0))
;; build up result list backwards
(while (and list1 list2 (or (null maxnum) (< (incf i) maxnum)))
- [elpa] externals/dict-tree f4aa81c 059/154: Disable caching for unnamed meta-dicts, (continued)
- [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
- [elpa] externals/dict-tree c553822 066/154: Small bug-fix in dictree--do-query, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 15ca12e 069/154: Re-filled to 72 chars/line, for mailing to gnu-emacs-sources list, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree dca8bcd 070/154: Advised edebug-prin1 and edebug-prin1-to-string to prevent edebug hanging, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 5f549f0 073/154: Bug-fixes to dictree--write-meta-dict-code, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 0ef5b58 078/154: Revert "Replaced advice with cedet-edebug.el for pretty-printing", Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree df22e8e 074/154: Bug-fixes to edebug advice, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 3794988 079/154: Simplified advice-based edebug pretty-printing of tries and dictionaries., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 238fd6b 082/154: Fixed bug in dictree--merge that caused one too many completions to be cached.,
Stefan Monnier <=
- [elpa] externals/dict-tree a256974 086/154: Minor typo-fixes in docstrings., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree d6ea2b5 088/154: Fixed interactive argument handling in predictive-fast-learn-from-buffer., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 39ace6f 094/154: Added autoload cookies., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree a1bff31 096/154: Trivial whitespace tidying., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree e752b53 101/154: Accept symbols for dictionary arguments., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 8aa6047 106/154: Suppress bogus unused lexical variable byte-compiler warnings., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 4b3cc3c 122/154: Do lexbind test at compile-time instead of load-time., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree a4b2a1b 126/154: Improve edebug pretty-printing., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree b7173e8 152/154: Fix lexical binding bugs., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 3a4d3f1 015/154: Added dictree-mapcar function; code tidying., Stefan Monnier, 2020/12/14