From: Juanma Barranquero Date: Tue, 8 Apr 2008 11:45:19 +0000 (+0000) Subject: (copyright-update-year): Fix braino. X-Git-Tag: emacs-pretest-23.0.90~6442 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=80817d7b5e773d3be5ef4e17947ad841e4ccf91a;p=emacs.git (copyright-update-year): Fix braino. --- diff --git a/lisp/emacs-lisp/copyright.el b/lisp/emacs-lisp/copyright.el index 345a76a22d1..d745a245e8e 100644 --- a/lisp/emacs-lisp/copyright.el +++ b/lisp/emacs-lisp/copyright.el @@ -113,9 +113,9 @@ When this is `function', only ask when called non-interactively." (progn (forward-char 1) t) (progn (skip-chars-forward " \t") (eolp)) comment-start-skip - (progn + (save-match-data (forward-line 1) - (and (looking-at-p comment-start-skip) + (and (looking-at comment-start-skip) (goto-char (match-end 0)))) (looking-at-p copyright-years-regexp))) (forward-line 1)