diff options
Diffstat (limited to 'lisp/view.el')
| -rw-r--r-- | lisp/view.el | 7 |
1 files changed, 3 insertions, 4 deletions
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. | |||
| 311 | Exiting View mode will then discard the user's edits. Setting | 311 | Exiting View mode will then discard the user's edits. Setting |
| 312 | EXIT-ACTION to `kill-buffer-if-not-modified' avoids this." | 312 | EXIT-ACTION to `kill-buffer-if-not-modified' avoids this." |
| 313 | (interactive "bView buffer: ") | 313 | (interactive "bView buffer: ") |
| 314 | (if (with-current-buffer buffer | 314 | (if (eq (with-current-buffer buffer |
| 315 | (and (eq (get major-mode 'mode-class) | 315 | (get major-mode 'mode-class)) |
| 316 | 'special) | 316 | 'special) |
| 317 | (null buffer-file-name))) | ||
| 318 | (progn | 317 | (progn |
| 319 | (switch-to-buffer buffer) | 318 | (switch-to-buffer buffer) |
| 320 | (message "Not using View mode because the major mode is special")) | 319 | (message "Not using View mode because the major mode is special")) |