diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2008-04-08 11:40:04 +0000 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2008-04-08 11:40:04 +0000 |
commit | 68af6bd60796527d9e6769b1a50dbfe17da37059 (patch) | |
tree | ad5cf79116ff2670c3d2e72db0ba11cfb98f90d6 /lisp/emacs-lisp/copyright.el | |
parent | 612b05921fb2a0188109591adb2e44eba0c9c63b (diff) | |
download | emacs-68af6bd60796527d9e6769b1a50dbfe17da37059.tar.gz emacs-68af6bd60796527d9e6769b1a50dbfe17da37059.tar.bz2 emacs-68af6bd60796527d9e6769b1a50dbfe17da37059.zip |
(copyright-update-year): Use `looking-at-p'.
Diffstat (limited to 'lisp/emacs-lisp/copyright.el')
-rw-r--r-- | lisp/emacs-lisp/copyright.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/copyright.el b/lisp/emacs-lisp/copyright.el index b3e0307a519..345a76a22d1 100644 --- a/lisp/emacs-lisp/copyright.el +++ b/lisp/emacs-lisp/copyright.el @@ -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 |