From ed2a52e9ee7b2a3d4bc941e9f3c324a57cd12108 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Thu, 16 Jul 2009 02:01:31 +0000 Subject: [PATCH] (copyright-update): Save match-data across y-or-n-p, for safety. --- lisp/ChangeLog | 9 +++++++-- lisp/emacs-lisp/copyright.el | 5 +++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8cafbe09329..2098dfa7f50 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2009-07-16 Kevin Ryde + + * emacs-lisp/copyright.el (copyright-update): Save match-data across + y-or-n-p, for safety. + 2009-07-16 Richard Stallman * files.el (auto-save-mode): If buffer-saved-size is -2, @@ -130,8 +135,8 @@ 2009-07-10 Eli Zaretskii - * 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 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 -- 2.39.2