1
Fork 0
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:
Lute Kamstra 2005-04-05 23:19:34 +00:00
parent 7bade82d96
commit e0e5f0766c
2 changed files with 6 additions and 1 deletions

View file

@ -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