mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-22 21:50:45 -08:00
(copyright-update-year): Replace the right subexpression. Suggested
by Jay Bingham <jay.bingham@hp.com>.
This commit is contained in:
parent
7bade82d96
commit
e0e5f0766c
2 changed files with 6 additions and 1 deletions
|
|
@ -112,7 +112,7 @@ When this is `function', only ask when called non-interactively."
|
|||
(concat "Add " copyright-current-year
|
||||
" to copyright? "))))
|
||||
(if replace
|
||||
(replace-match copyright-current-year t t nil 1)
|
||||
(replace-match copyright-current-year t t nil 2)
|
||||
(let ((size (save-excursion (skip-chars-backward "0-9"))))
|
||||
(if (and (eq (% (- (string-to-number copyright-current-year)
|
||||
(string-to-number (buffer-substring
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue