1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-05 11:45:45 +00:00

(copyright-update): Save match-data across y-or-n-p, for safety.

This commit is contained in:
Stefan Monnier 2009-07-16 02:01:31 +00:00
parent 7a907299a2
commit ed2a52e9ee
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2009-07-16 Kevin Ryde <user42@zip.com.au>
* emacs-lisp/copyright.el (copyright-update): Save match-data across
y-or-n-p, for safety.
2009-07-16 Richard Stallman <rms@gnu.org>
* files.el (auto-save-mode): If buffer-saved-size is -2,
@ -130,8 +135,8 @@
2009-07-10 Eli Zaretskii <eliz@gnu.org>
* cus-edit.el (customize-changed-options-previous-release): Bump
value to 22.1. (Bug#3804)
* cus-edit.el (customize-changed-options-previous-release):
Bump value to 22.1. (Bug#3804)
2009-07-08 Sam Steingold <sds@gnu.org>

View File

@ -223,8 +223,9 @@ version \\([0-9]+\\), or (at"
(< (string-to-number (match-string 3))
(string-to-number copyright-current-gpl-version))
(or noquery
(y-or-n-p (format "Replace GPL version by %s? "
copyright-current-gpl-version)))
(save-match-data
(y-or-n-p (format "Replace GPL version by %s? "
copyright-current-gpl-version))))
(progn
(if (match-end 2)
;; Esperanto bilingual comment in two-column.el