Commit 6172454f authored by Juri Linkov's avatar Juri Linkov

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.
parent 29c0b640
Pipeline #9480 failed with stages
in 137 minutes and 38 seconds
......@@ -393,9 +393,9 @@ found or not."
(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)
......@@ -41,7 +41,7 @@ The characters copied are inserted in the buffer before point."
(backward-char 1)
(skip-chars-backward "\ \t\n")
(skip-chars-backward " \t\n")
(move-to-column cc)
;; Default is enough to copy the whole rest of the line.
(setq n (if arg (prefix-numeric-value arg) (point-max)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment