]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/view.el (view-buffer): Revert 2011-07-19T15:01:49Z!larsi@gnus.org from 2011...
authorJuri Linkov <juri@jurta.org>
Thu, 24 Nov 2011 07:09:56 +0000 (09:09 +0200)
committerJuri Linkov <juri@jurta.org>
Thu, 24 Nov 2011 07:09:56 +0000 (09:09 +0200)
Fixes: debbugs:8615
lisp/ChangeLog
lisp/view.el

index 404324cb0e73b613e1e540dbc949c9384ca4056c..6fc7264b4e09f0f1046c26fbba7b2cb8e350a53f 100644 (file)
@@ -1,3 +1,7 @@
+2011-11-24  Juri Linkov  <juri@jurta.org>
+
+       * view.el (view-buffer): Revert 2011-07-19T15:01:49Z!larsi@gnus.org from 2011-07-19 (bug#8615).
+
 2011-11-24  Glenn Morris  <rgm@gnu.org>
 
        * mail/rmailmm.el (rmail-mime): When rmail-enable-mime is non-nil,
index 6955fbdfad8830277395c43a3350f3aed47786a1..a5349445964beac020b8783c47cc43e5a0ce6728 100644 (file)
@@ -311,10 +311,9 @@ file: Users may suspend viewing in order to modify the buffer.
 Exiting View mode will then discard the user's edits.  Setting
 EXIT-ACTION to `kill-buffer-if-not-modified' avoids this."
   (interactive "bView buffer: ")
-  (if (with-current-buffer buffer
-       (and (eq (get major-mode 'mode-class)
-                'special)
-            (null buffer-file-name)))
+  (if (eq (with-current-buffer buffer
+           (get major-mode 'mode-class))
+         'special)
       (progn
        (switch-to-buffer buffer)
        (message "Not using View mode because the major mode is special"))