Small fixes
* lisp/emacs-lisp/seq.el (seq-contains): Move the ‘declare’ form after the docstring. * lisp/misc.el (copy-from-above-command): Fix whitespace regexp.
This commit is contained in:
parent
29c0b640ba
commit
6172454ff3
2 changed files with 2 additions and 2 deletions
|
@ -393,9 +393,9 @@ found or not."
|
|||
count))
|
||||
|
||||
(cl-defgeneric seq-contains (sequence elt &optional testfn)
|
||||
(declare (obsolete seq-contains-p "27.1"))
|
||||
"Return the first element in SEQUENCE that is equal to ELT.
|
||||
Equality is defined by TESTFN if non-nil or by `equal' if nil."
|
||||
(declare (obsolete seq-contains-p "27.1"))
|
||||
(seq-some (lambda (e)
|
||||
(when (funcall (or testfn #'equal) elt e)
|
||||
e))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue