]> git.eshelyaron.com Git - emacs.git/commitdiff
(copyright-update-year): Use `looking-at-p'.
authorJuanma Barranquero <lekktu@gmail.com>
Tue, 8 Apr 2008 11:40:04 +0000 (11:40 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Tue, 8 Apr 2008 11:40:04 +0000 (11:40 +0000)
lisp/emacs-lisp/copyright.el

index b3e0307a519ef7f3bd1e4d298fe37248b5fc51d4..345a76a22d1a58a2b8c75b0f01ef6c9eba300a5b 100644 (file)
@@ -113,12 +113,11 @@ When this is `function', only ask when called non-interactively."
                  (progn (forward-char 1) t)
                  (progn (skip-chars-forward " \t") (eolp))
                  comment-start-skip
-                 (save-match-data
+                 (progn
                    (forward-line 1)
-                   (and (looking-at comment-start-skip)
+                   (and (looking-at-p comment-start-skip)
                         (goto-char (match-end 0))))
-                 (save-match-data
-                   (looking-at copyright-years-regexp))))
+                 (looking-at-p copyright-years-regexp)))
       (forward-line 1)
       (re-search-forward comment-start-skip)
       ;; (2) Need the extra \\( \\) so that the years are subexp 3, as