diff options
| author | Richard M. Stallman | 2002-09-26 21:57:17 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-09-26 21:57:17 +0000 |
| commit | bbf04be41668411140fc0285b6f2eed4689a31a0 (patch) | |
| tree | 477f5a19310afca17b17b9483723a253f43edc16 | |
| parent | fe80eaef30bc49aa5ec67168351d9a31a9fb5fe4 (diff) | |
| download | emacs-bbf04be41668411140fc0285b6f2eed4689a31a0.tar.gz emacs-bbf04be41668411140fc0285b6f2eed4689a31a0.zip | |
(follow-generic-filter): Simply bind deactivate-mark.
Bind inhibit-read-only; don't mess with buffer-read-only.
| -rw-r--r-- | lisp/follow.el | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/lisp/follow.el b/lisp/follow.el index 0e2d04068d4..7f4f5a67df4 100644 --- a/lisp/follow.el +++ b/lisp/follow.el | |||
| @@ -2038,24 +2038,15 @@ report this using the `follow-submit-feedback' function." | |||
| 2038 | (if (not (marker-buffer (process-mark proc))) | 2038 | (if (not (marker-buffer (process-mark proc))) |
| 2039 | (set-marker (process-mark proc) (point-max))) | 2039 | (set-marker (process-mark proc) (point-max))) |
| 2040 | (let ((moving (= (point) (process-mark proc))) | 2040 | (let ((moving (= (point) (process-mark proc))) |
| 2041 | (odeactivate (and (boundp 'deactivate-mark) | 2041 | deactivate-mark |
| 2042 | (symbol-value 'deactivate-mark))) | 2042 | (inhibit-read-only t)) |
| 2043 | (old-buffer-read-only buffer-read-only)) | ||
| 2044 | (setq buffer-read-only nil) | ||
| 2045 | (save-excursion | 2043 | (save-excursion |
| 2046 | (goto-char (process-mark proc)) | 2044 | (goto-char (process-mark proc)) |
| 2047 | ;; `insert-before-markers' just in case the users next | 2045 | ;; `insert-before-markers' just in case the users next |
| 2048 | ;; command is M-y. | 2046 | ;; command is M-y. |
| 2049 | (insert-before-markers output) | 2047 | (insert-before-markers output) |
| 2050 | (set-marker (process-mark proc) (point))) | 2048 | (set-marker (process-mark proc) (point))) |
| 2051 | (if moving (goto-char (process-mark proc))) | 2049 | (if moving (goto-char (process-mark proc))))))) |
| 2052 | (if (boundp 'deactivate-mark) | ||
| 2053 | ;; This could really be | ||
| 2054 | ;; (setq deactivate-mark odeactivate) | ||
| 2055 | ;; but this raises an error when compiling on XEmacs. | ||
| 2056 | (funcall (symbol-function 'set) | ||
| 2057 | 'deactivate-mark odeactivate)) | ||
| 2058 | (setq buffer-read-only old-buffer-read-only))))) | ||
| 2059 | 2050 | ||
| 2060 | ;; If we're in follow mode, do our stuff. Select a new window and | 2051 | ;; If we're in follow mode, do our stuff. Select a new window and |
| 2061 | ;; redisplay. (Actually, it is redundant to check `buf', but I | 2052 | ;; redisplay. (Actually, it is redundant to check `buf', but I |