[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/compat b98e7cc868 39/84: Fix gv-expander for compat-ali
From: |
ELPA Syncer |
Subject: |
[elpa] externals/compat b98e7cc868 39/84: Fix gv-expander for compat-alist-get |
Date: |
Tue, 3 Jan 2023 08:57:34 -0500 (EST) |
branch: externals/compat
commit b98e7cc868020a4ede2f330b73bd5aaead147cfd
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Fix gv-expander for compat-alist-get
We had previously used compat-assoc that is not always defined
(e.g. when testing). By giving compat-assoc a realname, we can access
it in the gv-expander.
---
compat-26.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/compat-26.el b/compat-26.el
index a21b903b93..a7dcf2e7b1 100644
--- a/compat-26.el
+++ b/compat-26.el
@@ -123,6 +123,7 @@ Equality is defined by the function TESTFN, defaulting to
`equal'. TESTFN is called with 2 arguments: a car of an alist
element and KEY. With no optional argument, the function behaves
just like `assoc'."
+ :realname compat--assoc-handle-testfn
:prefix t
(if testfn
(catch 'found
@@ -169,7 +170,7 @@ from the absolute start of the buffer, disregarding the
narrowing."
(macroexp-let2 macroexp-copyable-p k key
(gv-letplace (getter setter) alist
(macroexp-let2 nil p `(if (and ,testfn (not (eq ,testfn 'eq)))
- (compat-assoc ,k ,getter ,testfn)
+ (compat--assoc-handle-testfn ,k ,getter
,testfn)
(assq ,k ,getter))
(funcall do (if (null default) `(cdr ,p)
`(if ,p (cdr ,p) ,default))
- [elpa] externals/compat 4bd1226048 59/84: Rewrite take to copy only as much as required, (continued)
- [elpa] externals/compat 4bd1226048 59/84: Rewrite take to copy only as much as required, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 835b4301b4 62/84: Add 'pure' and 'side-effect-free' properties to take, ELPA Syncer, 2023/01/03
- [elpa] externals/compat e7413bcf2b 63/84: Document additional missing functions from compat-29, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 7e4533ab45 65/84: Add compatibility notices to the end of the docstring, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 2ad7057293 70/84: Always load compat-macs.el while compiling, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 59e50fc7f4 71/84: Remove compat-macs.el from the list of files to byte-compile, ELPA Syncer, 2023/01/03
- [elpa] externals/compat a660d13326 75/84: Add while-let from Emacs 29, ELPA Syncer, 2023/01/03
- [elpa] externals/compat fcac0fa893 81/84: Update copyright years, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 8fbc3b6ea6 69/84: Bump to version 28.1.2.2, ELPA Syncer, 2023/01/03
- [elpa] externals/compat f42ebfaf97 35/84: Use compat--directory-name-p instead of directory-name-p, ELPA Syncer, 2023/01/03
- [elpa] externals/compat b98e7cc868 39/84: Fix gv-expander for compat-alist-get,
ELPA Syncer <=
- [elpa] externals/compat 0e4da35d72 46/84: Add functions and macros from keymap.el, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 11c9917215 51/84: Declare alist-get for usage in compat-alist-get, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 145d344d37 45/84: Add prefixed define-key from Emacs 29.1, ELPA Syncer, 2023/01/03
- [elpa] externals/compat faeeebe50b 52/84: Remove unused local variable in file-name-absolute-p, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 97cecbc1c0 54/84: Replace seq-into with concrete implementations in compat-29, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 518067a7d6 58/84: Copy edebug specification for and-let* from if-let*, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 8e397fee78 66/84: Ignore all .patch files, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 18152ca068 76/84: Fix edge-case of binding nil in if-let* and related macros, ELPA Syncer, 2023/01/03
- [elpa] externals/compat bb25d50b6c 78/84: Fix test skip condition for 'compat-ref-define-key', ELPA Syncer, 2023/01/03
- [elpa] externals/compat 043e3d71b5 79/84: Always load compat-29, ELPA Syncer, 2023/01/03