]> git.eshelyaron.com Git - emacs.git/commitdiff
(perform-replace): Don't set inhibit-read-only using
authorChong Yidong <cyd@stupidchicken.com>
Fri, 12 Sep 2008 00:37:41 +0000 (00:37 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Fri, 12 Sep 2008 00:37:41 +0000 (00:37 +0000)
query-replace-skip-read-only (bug#956).

lisp/replace.el

index 086380ffc4c593cab21ab0febc8c58654d2b348e..5efbe417b0460b8b15c15310619b0fb7c2b370f4 100644 (file)
@@ -1665,8 +1665,7 @@ make, or the user didn't cancel the call."
                    (funcall (car replacements) (cdr replacements)
                             replace-count)))
            (if (not query-flag)
-               (let ((inhibit-read-only
-                      query-replace-skip-read-only))
+               (progn
                  (unless (or literal noedit)
                    (replace-highlight
                     (nth 0 real-match-data) (nth 1 real-match-data)