aboutsummaryrefslogtreecommitdiff
path: root/compat-26.el
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2023-01-17 10:23:20 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2023-01-17 10:27:21 +0100
commit8f33aaf1813bbf56cdad0701953f2bdd86ec00b3 (patch)
treea8a634513c4d338b7dd774664c99e17acafb2586 /compat-26.el
parent50296614bf609e4d71f431a8cc0e138c8d6dae9a (diff)
Add compat-guard dynamic condition
We have to make sure that no definitions are overriden at runtime, when the compiled library is loaded in a newer or patched Emacs version.
Diffstat (limited to 'compat-26.el')
-rw-r--r--compat-26.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat-26.el b/compat-26.el
index 9833698..f1d49d5 100644
--- a/compat-26.el
+++ b/compat-26.el
@@ -88,7 +88,7 @@ SEQUENCE may be a list, a vector, a boolean vector, or a string."
(if entry (cdr entry) default))
(alist-get key alist default remove)))
-(compat-guard
+(compat-guard t
(gv-define-expander compat--alist-get ;; <compat-tests:alist-get-gv>
(lambda (do key alist &optional default remove testfn)
(macroexp-let2 macroexp-copyable-p k key