From: Richard M. Stallman Date: Tue, 16 Aug 2011 02:18:10 +0000 (-0400) Subject: Fix previous change. X-Git-Tag: emacs-pretest-24.0.90~104^2~124^2~38 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=44fede4d8e691afda7fdd35777793e1408fecca1;p=emacs.git Fix previous change. --- diff --git a/lisp/epa.el b/lisp/epa.el index 8ab9e6006e6..f0ec1ece0d1 100644 --- a/lisp/epa.el +++ b/lisp/epa.el @@ -843,15 +843,15 @@ For example: (or coding-system-for-read (get-text-property start 'epa-coding-system-used) 'undecided))) - (if (y-or-n-p "Replace the original text? ") - (let ((inhibit-read-only t)) - (delete-region start end) - (goto-char start) - (insert plain)) - (if make-buffer-function - (with-current-buffer (funcall make-buffer-function) - (let ((inhibit-read-only t)) - (insert plain))) + (if make-buffer-function + (with-current-buffer (funcall make-buffer-function) + (let ((inhibit-read-only t)) + (insert plain))) + (if (y-or-n-p "Replace the original text? ") + (let ((inhibit-read-only t)) + (delete-region start end) + (goto-char start) + (insert plain)) (with-output-to-temp-buffer "*Temp*" (set-buffer standard-output) (insert plain)