changeset 42430:db303f307b7a

(query-replace-read-args): Immediate error if read-only.
author Richard M. Stallman <rms@gnu.org>
date Sun, 30 Dec 2001 19:37:47 +0000
parents 3bdd11464124
children afe645af8f4b
files lisp/replace.el
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/replace.el	Sun Dec 30 19:33:13 2001 +0000
+++ b/lisp/replace.el	Sun Dec 30 19:37:47 2001 +0000
@@ -63,6 +63,7 @@
   :version "21.3")
 
 (defun query-replace-read-args (string regexp-flag)
+  (barf-if-buffer-read-only)
   (let (from to)
     (if query-replace-interactive
 	(setq from (car (if regexp-flag regexp-search-ring search-ring)))