[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dict-tree 8a575f6 039/154: Added new trie functions to
From: |
Stefan Monnier |
Subject: |
[elpa] externals/dict-tree 8a575f6 039/154: Added new trie functions to dictree--create-custom. |
Date: |
Mon, 14 Dec 2020 12:21:40 -0500 (EST) |
branch: externals/dict-tree
commit 8a575f6552eae599679991a235bba0348c6dbf27
Author: Toby Cubitt <toby-predictive@dr-qubit.org>
Commit: tsc25 <toby-predictive@dr-qubit.org>
Added new trie functions to dictree--create-custom.
Changed dictree-create-custom to use keyword arguments.
---
dict-tree.el | 56 ++++++++++++++++++++++++++++++++------------------------
1 file changed, 32 insertions(+), 24 deletions(-)
diff --git a/dict-tree.el b/dict-tree.el
index 09428f9..3dc2a7b 100644
--- a/dict-tree.el
+++ b/dict-tree.el
@@ -381,18 +381,22 @@ If START or END is negative, it counts from the end."
&key
createfun insertfun deletefun lookupfun mapfun emptyfun
stack-createfun stack-popfun stack-emptyfun
+ transform-for-print transform-from-read
&aux
(modified nil)
- (trie (trie-create-custom comparison-function
- :createfun createfun
- :insertfun insertfun
- :deletefun deletefun
- :lookupfun lookupfun
- :mapfun mapfun
- :emptyfun emptyfun
- :stack-createfun stack-createfun
- :stack-popfun stack-popfun
- :stack-emptyfun stack-emptyfun))
+ (trie (trie-create-custom
+ comparison-function
+ :createfun createfun
+ :insertfun insertfun
+ :deletefun deletefun
+ :lookupfun lookupfun
+ :mapfun mapfun
+ :emptyfun emptyfun
+ :stack-createfun stack-createfun
+ :stack-popfun stack-popfun
+ :stack-emptyfun stack-emptyfun
+ :transform-for-print transform-for-print
+ :transform-from-read transform-from-read))
(insfun (dictree--wrap-insfun insert-function))
(rankfun (dictree--wrap-rankfun rank-function))
(lookup-cache
@@ -707,19 +711,21 @@ structure. See `trie-create' for details."
-(defun dictree-create-custom
- (&optional
- name filename autosave unlisted
- comparison-function insert-function rank-function
- cache-policy cache-update-policy
- lookup-cache-threshold
- complete-cache-threshold
- complete-ranked-cache-threshold
- key-savefun key-loadfun
- data-savefun data-loadfun
- plist-savefun plist-loadfun
- createfun insertfun deletefun lookupfun mapfun emptyfun
- stack-createfun stack-popfun stack-emptyfun)
+(defun* dictree-create-custom
+ (&optional
+ name filename autosave unlisted
+ &key
+ comparison-function insert-function rank-function
+ cache-policy cache-update-policy
+ lookup-cache-threshold
+ complete-cache-threshold
+ complete-ranked-cache-threshold
+ key-savefun key-loadfun
+ data-savefun data-loadfun
+ plist-savefun plist-loadfun
+ createfun insertfun deletefun lookupfun mapfun emptyfun
+ stack-createfun stack-popfun stack-emptyfun
+ transform-for-print transform-from-read)
"Create an empty dictionary and return it.
The NAME through PLIST-LOADFUN arguments are as for
@@ -757,7 +763,9 @@ underlying data structure. See `trie-create' for details."
:emptyfun emptyfun
:stack-createfun stack-createfun
:stack-popfun stack-popfun
- :stack-emptyfun stack-emptyfun)))
+ :stack-emptyfun stack-emptyfun
+ :transform-for-print transform-for-print
+ :transform-from-read transform-from-read)))
;; store dictionary in variable NAME
(when name (set name dict))
;; add it to loaded dictionary list, unless it's unlisted
- [elpa] externals/dict-tree 9827131 016/154: Fixed unwrapped rank-function bug in dictree--query, (continued)
- [elpa] externals/dict-tree 9827131 016/154: Fixed unwrapped rank-function bug in dictree--query, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 87bb7e8 019/154: Allow custom write and load functions when saving and dumping dictionaries;, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 2978fc7 024/154: ...and already a bug-fix to the new cache updating code, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 7d9b258 033/154: Improved handling of dictionary file names in dictree-load, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree f46da76 008/154: Minor bug fixes., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 405d11b 023/154: Implemented the other cache and cache-update policies, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 57d59eb 021/154: Bug-fixes to predictive-auto-learn and read-dict., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 76140ec 026/154: Converted function wrapping macros into functions, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 9120845 032/154: Make weird variable names used to avoid dynamic scoping bugs more consistent, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 6c21fcb 038/154: Fix dictree--query and dictree-complete to return results in correct format, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 8a575f6 039/154: Added new trie functions to dictree--create-custom.,
Stefan Monnier <=
- [elpa] externals/dict-tree 3a18a06 042/154: Modified dictree-populate-from-file to read linearly by default,, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree ca2c562 050/154: Bug-fix to dictree-complete, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree e1a9f19 051/154: Documentation updates related to wildcard searches and predictive features that make use of them, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree bf4002d 063/154: Bug-fixes to dictree--write-dict-code; allow loading non-matching filenames in read-dict, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 6d9921e 067/154: Updated docstrings for regexp-related functions and others., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree d88b867 002/154: Version 0.10.3 of the predictive completion package., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 7b52ebd 005/154: Version 0.13.1 of the predictive completion package., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree ac40f3c 004/154: Version 0.12.2 of the predictive completion package., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 2bca928 003/154: Version 0.12 of the predictive completion package., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 3ecd763 006/154: Added minor miscellaneous new features, mostly to predictive.el., Stefan Monnier, 2020/12/14