diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2009-07-16 02:01:31 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2009-07-16 02:01:31 +0000 |
commit | ed2a52e9ee7b2a3d4bc941e9f3c324a57cd12108 (patch) | |
tree | 4a997b8645bb6d73fb0195e8f978f04019b8a80d /lisp/emacs-lisp | |
parent | 7a907299a2cce789fadaf7c97ead215970ca7b82 (diff) | |
download | emacs-ed2a52e9ee7b2a3d4bc941e9f3c324a57cd12108.tar.gz emacs-ed2a52e9ee7b2a3d4bc941e9f3c324a57cd12108.tar.bz2 emacs-ed2a52e9ee7b2a3d4bc941e9f3c324a57cd12108.zip |
(copyright-update): Save match-data across y-or-n-p, for safety.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/copyright.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/copyright.el b/lisp/emacs-lisp/copyright.el index f454d2ef52d..67b521240c1 100644 --- a/lisp/emacs-lisp/copyright.el +++ b/lisp/emacs-lisp/copyright.el @@ -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 |