[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dict-tree 4b3cc3c 122/154: Do lexbind test at compile-t
From: |
Stefan Monnier |
Subject: |
[elpa] externals/dict-tree 4b3cc3c 122/154: Do lexbind test at compile-time instead of load-time. |
Date: |
Mon, 14 Dec 2020 12:21:58 -0500 (EST) |
branch: externals/dict-tree
commit 4b3cc3c51779e56f8064a83f749346b834315331
Author: Toby S. Cubitt <toby-predictive@dr-qubit.org>
Commit: Toby S. Cubitt <toby-predictive@dr-qubit.org>
Do lexbind test at compile-time instead of load-time.
---
dict-tree.el | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/dict-tree.el b/dict-tree.el
index 7d47077..03e881d 100644
--- a/dict-tree.el
+++ b/dict-tree.el
@@ -205,7 +205,7 @@ If START or END is negative, it counts from the end."
;; Wrapping functions
;; return wrapped insfun to deal with data wrapping
-(if (trie-lexical-binding-p)
+(trie--if-lexical-binding
(defun dictree--wrap-insfun (insfun) ; INTERNAL USE ONLY
(lambda (new old)
(dictree--cell-set-data old (funcall insfun
@@ -220,7 +220,7 @@ If START or END is negative, it counts from the end."
;; return wrapped rankfun to deal with data wrapping
-(if (trie-lexical-binding-p)
+(trie--if-lexical-binding
(defun dictree--wrap-rankfun (rankfun) ; INTERNAL USE ONLY
(lambda (a b)
(funcall rankfun
@@ -233,7 +233,7 @@ If START or END is negative, it counts from the end."
;; return wrapped rankfun to ignore regexp grouping data
-(if (trie-lexical-binding-p)
+(trie--if-lexical-binding
(defun dictree--wrap-regexp-rankfun (rankfun)
(lambda (a b)
;; if car of argument contains a key+group list rather than a straight
@@ -269,7 +269,7 @@ If START or END is negative, it counts from the end."
;; return wrapped rankfun to ignore fuzzy query distance data
-(if (trie-lexical-binding-p)
+(trie--if-lexical-binding
(defun dictree--wrap-fuzzy-rankfun (rankfun) ; INTERNAL USE ONLY
(lambda (a b)
(funcall rankfun
@@ -282,7 +282,7 @@ If START or END is negative, it counts from the end."
;; return wrapped combfun to deal with data wrapping
-(if (trie-lexical-binding-p)
+(trie--if-lexical-binding
(defun dictree--wrap-combfun (combfun) ; INTERNAL USE ONLY
(lambda (cell1 cell2)
(dictree--cell-create
@@ -301,7 +301,7 @@ If START or END is negative, it counts from the end."
;; return wrapped filter function to deal with data wrapping
-(if (trie-lexical-binding-p)
+(trie--if-lexical-binding
(defun dictree--wrap-filter (filter) ; INTERNAL USE ONLY
(lambda (key data) (funcall filter key (dictree--cell-data data))))
(defun dictree--wrap-filter (filter) ; INTERNAL USE ONLY
@@ -309,7 +309,7 @@ If START or END is negative, it counts from the end."
;; return wrapped result function to deal with data wrapping
-(if (trie-lexical-binding-p)
+(trie--if-lexical-binding
(defun dictree--wrap-resultfun (resultfun) ; INTERNAL USE ONLY
(lambda (res)
(funcall resultfun (car res) (dictree--cell-data (cdr res)))))
@@ -318,7 +318,7 @@ If START or END is negative, it counts from the end."
;; construct lexicographic sort function from DICT's comparison function
-(if (trie-lexical-binding-p)
+(trie--if-lexical-binding
(defun dictree--construct-sortfun (dict) ; INTERNAL USE ONLY
(let ((sortfun (trie-construct-sortfun
(dictree-comparison-function dict))))
- [elpa] externals/dict-tree 0ef5b58 078/154: Revert "Replaced advice with cedet-edebug.el for pretty-printing", (continued)
- [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, 2020/12/14
- [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 <=
- [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
- [elpa] externals/dict-tree 1dde6e1 030/154: Define missing setf methods for data cells, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 3969702 125/154: Tidy up unnecessary macros by making them into defsubst or defun., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 74c792c 111/154: Add page breaks., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 5cf96da 123/154: Implement iterator generators on collection data structures., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 913c84b 129/154: Fix bug in dictree-unload., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 1e5b3f6 130/154: Fix bug in dictree--wrap-fuzzy-rankfun wrapping., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 6544152 139/154: Fix bug causing dictree--do-query to fail to use cached results., Stefan Monnier, 2020/12/14