aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/diff-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/diff-mode.el')
-rw-r--r--lisp/diff-mode.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el
index 1a8402e06c4..f78ce1ae155 100644
--- a/lisp/diff-mode.el
+++ b/lisp/diff-mode.el
@@ -993,8 +993,7 @@ a diff with \\[diff-reverse-direction]."
993 ;; compile support 993 ;; compile support
994 (set (make-local-variable 'next-error-function) 'diff-next-error) 994 (set (make-local-variable 'next-error-function) 'diff-next-error)
995 995
996 (when (and (> (point-max) (point-min)) diff-default-read-only) 996 (setq buffer-read-only diff-default-read-only)
997 (toggle-read-only t))
998 ;; setup change hooks 997 ;; setup change hooks
999 (if (not diff-update-on-the-fly) 998 (if (not diff-update-on-the-fly)
1000 (add-hook 'write-contents-functions 'diff-write-contents-hooks nil t) 999 (add-hook 'write-contents-functions 'diff-write-contents-hooks nil t)