]> git.eshelyaron.com Git - emacs.git/commitdiff
(after-find-file): Disable View mode if buffer is no
authorKarl Heuer <kwzh@gnu.org>
Tue, 10 Aug 1999 16:40:14 +0000 (16:40 +0000)
committerKarl Heuer <kwzh@gnu.org>
Tue, 10 Aug 1999 16:40:14 +0000 (16:40 +0000)
longer read-only.

lisp/files.el

index 0c5fc6b7e038e47e2d3e93fc5ada6aa3fc26ffe1..d3d9a20cd12f390c4c700167c370a457e14cf607 100644 (file)
@@ -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)))