]> git.eshelyaron.com Git - emacs.git/commitdiff
(follow-generic-filter): Simply bind deactivate-mark.
authorRichard M. Stallman <rms@gnu.org>
Thu, 26 Sep 2002 21:57:17 +0000 (21:57 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 26 Sep 2002 21:57:17 +0000 (21:57 +0000)
Bind inhibit-read-only; don't mess with buffer-read-only.

lisp/follow.el

index 0e2d04068d44ac12115bf5bbef7203f023651376..7f4f5a67df44892f26b743d7c317a9c1c71335ad 100644 (file)
@@ -2038,24 +2038,15 @@ report this using the `follow-submit-feedback' function."
        (if (not (marker-buffer (process-mark proc)))
            (set-marker (process-mark proc) (point-max)))
        (let ((moving (= (point) (process-mark proc)))
-             (odeactivate (and (boundp 'deactivate-mark)
-                               (symbol-value 'deactivate-mark)))
-             (old-buffer-read-only buffer-read-only))
-         (setq buffer-read-only nil)
+             deactivate-mark
+             (inhibit-read-only t))
          (save-excursion
            (goto-char (process-mark proc))
            ;; `insert-before-markers' just in case the users next
            ;; command is M-y.
            (insert-before-markers output)
            (set-marker (process-mark proc) (point)))
-         (if moving (goto-char (process-mark proc)))
-         (if (boundp 'deactivate-mark)
-             ;; This could really be
-             ;;    (setq deactivate-mark odeactivate)
-             ;; but this raises an error when compiling on XEmacs.
-             (funcall (symbol-function 'set)
-                      'deactivate-mark odeactivate))
-         (setq buffer-read-only old-buffer-read-only)))))
+         (if moving (goto-char (process-mark proc)))))))
 
     ;; If we're in follow mode, do our stuff.  Select a new window and
     ;; redisplay.  (Actually, it is redundant to check `buf', but I