[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/compat a0ea4ae 65/99: Call alist-get-full-elisp from al
From: |
ELPA Syncer |
Subject: |
[elpa] externals/compat a0ea4ae 65/99: Call alist-get-full-elisp from alist-get-handle-testfn |
Date: |
Sun, 17 Oct 2021 05:57:58 -0400 (EDT) |
branch: externals/compat
commit a0ea4ae37f66f4680a4c3eec65b5a4b49af69961
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Call alist-get-full-elisp from alist-get-handle-testfn
This reduces code duplication and makes use of the speed improvements
in compat--alist-get-handle-testfn.
---
compat-26.1.el | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/compat-26.1.el b/compat-26.1.el
index 9415652..b7111fa 100644
--- a/compat-26.1.el
+++ b/compat-26.1.el
@@ -75,6 +75,8 @@ from the absolute start of the buffer, disregarding the
narrowing."
;;;; Defined in subr.el
+(declare-function compat--alist-get-full-elisp "compat-25.1"
+ (key alist &optional default remove testfn))
(compat-advise alist-get (key alist &optional default remove testfn)
"Handle TESTFN manually."
:min-version "25.1" ;first defined in 25.1
@@ -82,12 +84,8 @@ from the absolute start of the buffer, disregarding the
narrowing."
:realname compat--alist-get-handle-testfn
:cond (compat-maxargs-/= #'alist-get 5)
(if testfn
- (catch 'found
- (dolist (ent alist)
- (when (and (consp ent) (funcall testfn (car ent) key))
- (throw 'found (cdr ent))))
- default)
- (funcall oldfun key alist default remove testfn)))
+ (compat--alist-get-full-elisp key alist default remove testfn)
+ (funcall oldfun key alist default remove)))
(compat-defun string-trim-left (string &optional regexp)
"Trim STRING of leading string matching REGEXP.
- [elpa] externals/compat e6b5f08 53/99: Load all compatibility code unconditionally, (continued)
- [elpa] externals/compat e6b5f08 53/99: Load all compatibility code unconditionally, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 021ffd1 59/99: Handle legacy bytecode argument lists, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 956db9b 60/99: Improve handling of conditional compatibility definitions, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 9be46b0 16/99: Add check for Emacs 28 to compat-tests.el, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 10ef8f4 36/99: Declare string-trim-left and directory-name-p, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 9df8e0c 38/99: Add GitHub action file for CI, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 4364563 43/99: Use unprefixed symbols where possible, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 658db90 47/99: Simplify and-let* implementation, ELPA Syncer, 2021/10/17
- [elpa] externals/compat ad92d70 61/99: Add decoded-time-* functions from 27.1, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 476aa10 62/99: Add json-* functions from 27.1, ELPA Syncer, 2021/10/17
- [elpa] externals/compat a0ea4ae 65/99: Call alist-get-full-elisp from alist-get-handle-testfn,
ELPA Syncer <=
- [elpa] externals/compat 4513631 70/99: Fix compat-func-arity advice handling, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 09bf8d8 75/99: Declare nadvice functions for compat-func-arity, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 80ab781 77/99: Use advice.el for advising functions previously to Emacs 24.4, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 20afc89 78/99: Add :cond checks to json-* functions in compat-27.1, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 72c0781 81/99: Mention Chris Wellons' article on lambdas and byte compilation, ELPA Syncer, 2021/10/17
- [elpa] externals/compat ee068f0 82/99: Revert back to manual advising, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 7bef68b 84/99: Mark regexp-opt as part of regexp-opt.el, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 7619f21 89/99: Display version number of manual advice docstring, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 7245918 96/99: Fix handling of file-missing in require advice, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 29dc297 98/99: Ensure that compat-maxargs-/= is visible at compile time, ELPA Syncer, 2021/10/17