diff options
author | Juri Linkov <juri@jurta.org> | 2011-11-24 09:09:56 +0200 |
---|---|---|
committer | Juri Linkov <juri@jurta.org> | 2011-11-24 09:09:56 +0200 |
commit | a0649f084c2e1829a8479ddb2145ad100e90f9a1 (patch) | |
tree | ba941fc69b37d9844f7fdd059fd8c2a7503a4d3c /lisp | |
parent | c0bc0fd4ff1e422d9f9d3662145c1f90649c4fc6 (diff) | |
download | emacs-a0649f084c2e1829a8479ddb2145ad100e90f9a1.tar.gz emacs-a0649f084c2e1829a8479ddb2145ad100e90f9a1.tar.bz2 emacs-a0649f084c2e1829a8479ddb2145ad100e90f9a1.zip |
* lisp/view.el (view-buffer): Revert 2011-07-19T15:01:49Z!larsi@gnus.org from 2011-07-19.
Fixes: debbugs:8615
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/ChangeLog | 4 | ||||
-rw-r--r-- | lisp/view.el | 7 |
2 files changed, 7 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 404324cb0e7..6fc7264b4e0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -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, diff --git a/lisp/view.el b/lisp/view.el index 6955fbdfad8..a5349445964 100644 --- a/lisp/view.el +++ b/lisp/view.el @@ -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")) |