emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/compat abb32f1b9d 05/13: Add :cond to assoc definition


From: ELPA Syncer
Subject: [elpa] externals/compat abb32f1b9d 05/13: Add :cond to assoc definition
Date: Sun, 13 Mar 2022 19:57:32 -0400 (EDT)

branch: externals/compat
commit abb32f1b9d9501097e4223754fafb70fef1b1163
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>

    Add :cond to assoc definition
---
 compat-26.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/compat-26.el b/compat-26.el
index 5759b6310a..a21e8552ed 100644
--- a/compat-26.el
+++ b/compat-26.el
@@ -112,6 +112,9 @@ 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'."
+  :cond (condition-case nil
+            (or (assoc nil nil #'ignore) t)
+          (wrong-number-of-arguments nil))
   :prefix t
   (if testfn
       (catch 'found



reply via email to

[Prev in Thread] Current Thread [Next in Thread]