From c741ccc5c122972444404d08a2aba8c69dc3673b Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Tue, 10 Aug 1999 16:40:14 +0000 Subject: [PATCH] (after-find-file): Disable View mode if buffer is no longer read-only. --- lisp/files.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/files.el b/lisp/files.el index 0c5fc6b7e03..d3d9a20cd12 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -1195,6 +1195,8 @@ unless NOMODES is non-nil." (auto-save-mode t))) (if nomodes nil + (and view-read-only view-mode + (view-mode-disable)) (normal-mode t) (if (and buffer-read-only view-read-only (not (eq (get major-mode 'mode-class) 'special))) -- 2.39.5