diff options
Diffstat (limited to 'lisp/diff-mode.el')
-rw-r--r-- | lisp/diff-mode.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el index 1a8402e06c..f78ce1ae15 100644 --- a/lisp/diff-mode.el +++ b/lisp/diff-mode.el @@ -993,8 +993,7 @@ a diff with \\[diff-reverse-direction]." ;; compile support (set (make-local-variable 'next-error-function) 'diff-next-error) - (when (and (> (point-max) (point-min)) diff-default-read-only) - (toggle-read-only t)) + (setq buffer-read-only diff-default-read-only) ;; setup change hooks (if (not diff-update-on-the-fly) (add-hook 'write-contents-functions 'diff-write-contents-hooks nil t) |