From: Karl Heuer Date: Tue, 10 Aug 1999 16:40:14 +0000 (+0000) Subject: (after-find-file): Disable View mode if buffer is no X-Git-Tag: emacs-pretest-21.0.90~7221 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c741ccc5c122972444404d08a2aba8c69dc3673b;p=emacs.git (after-find-file): Disable View mode if buffer is no longer read-only. --- 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)))