(copyright-update-year): Use `looking-at-p'.
This commit is contained in:
parent
612b05921f
commit
68af6bd607
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue