From 80817d7b5e773d3be5ef4e17947ad841e4ccf91a Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Tue, 8 Apr 2008 11:45:19 +0000 Subject: [PATCH] (copyright-update-year): Fix braino. --- lisp/emacs-lisp/copyright.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.5