]> git.eshelyaron.com Git - emacs.git/commitdiff
Small fixes
authorJuri Linkov <juri@linkov.net>
Tue, 23 Feb 2021 19:05:30 +0000 (21:05 +0200)
committerJuri Linkov <juri@linkov.net>
Tue, 23 Feb 2021 19:05:30 +0000 (21:05 +0200)
* lisp/emacs-lisp/seq.el (seq-contains): Move the ‘declare’ form
after the docstring.
* lisp/misc.el (copy-from-above-command): Fix whitespace regexp.

lisp/emacs-lisp/seq.el
lisp/misc.el

index 55ce6d9426d6ceb2d4eb7bb0b0b95ca1f82c799c..adfce950176a09c83178d6caf1e90c6ea064f9a6 100644 (file)
@@ -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))
index 09f6011f98dd384ab25ac5479f5c73164e7b0e46..39ec9497d7f0a75688b1d49462155197c0f9acc6 100644 (file)
@@ -41,7 +41,7 @@ The characters copied are inserted in the buffer before point."
     (save-excursion
       (beginning-of-line)
       (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)))