diff options
| author | Glenn Morris | 2009-02-17 03:02:25 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-02-17 03:02:25 +0000 |
| commit | 4431546e80e1899af671a22fbc23f8ae12b1c2d1 (patch) | |
| tree | 856b2723a71b0512be79f538f628a02bba138b16 | |
| parent | 1640a85f9c5bc25a42cf88e68e8f7e1dd227cf42 (diff) | |
| download | emacs-4431546e80e1899af671a22fbc23f8ae12b1c2d1.tar.gz emacs-4431546e80e1899af671a22fbc23f8ae12b1c2d1.zip | |
(copyright-update-year): Don't let y-or-n-p move point. (Bug#2209)
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/emacs-lisp/copyright.el | 12 |
2 files changed, 10 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 362f2237839..77aa43c77af 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2009-02-17 Glenn Morris <rgm@gnu.org> | 1 | 2009-02-17 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * emacs-lisp/copyright.el (copyright-update-year): Don't let y-or-n-p | ||
| 4 | move point. (Bug#2209) | ||
| 5 | |||
| 3 | * mail/rmailout.el (rmail-fields-not-to-output): Doc fix. | 6 | * mail/rmailout.el (rmail-fields-not-to-output): Doc fix. |
| 4 | (rmail-delete-unwanted-fields): Ignore case. Use line-beg-pos. | 7 | (rmail-delete-unwanted-fields): Ignore case. Use line-beg-pos. |
| 5 | (rmail-output, rmail-output-as-seen): Change the "from-gnus" argument to | 8 | (rmail-output, rmail-output-as-seen): Change the "from-gnus" argument to |
diff --git a/lisp/emacs-lisp/copyright.el b/lisp/emacs-lisp/copyright.el index 36864e9c49b..04020d652e7 100644 --- a/lisp/emacs-lisp/copyright.el +++ b/lisp/emacs-lisp/copyright.el | |||
| @@ -157,11 +157,13 @@ When this is `function', only ask when called non-interactively." | |||
| 157 | (unless (string= (buffer-substring (- (match-end 3) 2) (match-end 3)) | 157 | (unless (string= (buffer-substring (- (match-end 3) 2) (match-end 3)) |
| 158 | (substring copyright-current-year -2)) | 158 | (substring copyright-current-year -2)) |
| 159 | (if (or noquery | 159 | (if (or noquery |
| 160 | (y-or-n-p (if replace | 160 | ;; Fixes some point-moving oddness (bug#2209). |
| 161 | (concat "Replace copyright year(s) by " | 161 | (save-excursion |
| 162 | copyright-current-year "? ") | 162 | (y-or-n-p (if replace |
| 163 | (concat "Add " copyright-current-year | 163 | (concat "Replace copyright year(s) by " |
| 164 | " to copyright? ")))) | 164 | copyright-current-year "? ") |
| 165 | (concat "Add " copyright-current-year | ||
| 166 | " to copyright? "))))) | ||
| 165 | (if replace | 167 | (if replace |
| 166 | (replace-match copyright-current-year t t nil 3) | 168 | (replace-match copyright-current-year t t nil 3) |
| 167 | (let ((size (save-excursion (skip-chars-backward "0-9")))) | 169 | (let ((size (save-excursion (skip-chars-backward "0-9")))) |