Commit a0649f08 authored by Juri Linkov's avatar Juri Linkov
Browse files

* lisp/view.el (view-buffer): Revert 2011-07-19T15:01:49Z!larsi@gnus.org from 2011-07-19.

Fixes: debbugs:8615
parent c0bc0fd4
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> 2011-11-24 Glenn Morris <rgm@gnu.org>
* mail/rmailmm.el (rmail-mime): When rmail-enable-mime is non-nil, * mail/rmailmm.el (rmail-mime): When rmail-enable-mime is non-nil,
......
...@@ -311,10 +311,9 @@ file: Users may suspend viewing in order to modify the buffer. ...@@ -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 Exiting View mode will then discard the user's edits. Setting
EXIT-ACTION to `kill-buffer-if-not-modified' avoids this." EXIT-ACTION to `kill-buffer-if-not-modified' avoids this."
(interactive "bView buffer: ") (interactive "bView buffer: ")
(if (with-current-buffer buffer (if (eq (with-current-buffer buffer
(and (eq (get major-mode 'mode-class) (get major-mode 'mode-class))
'special) 'special)
(null buffer-file-name)))
(progn (progn
(switch-to-buffer buffer) (switch-to-buffer buffer)
(message "Not using View mode because the major mode is special")) (message "Not using View mode because the major mode is special"))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment