emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r106502: * lisp/view.el (view-buffer)


From: Juri Linkov
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r106502: * lisp/view.el (view-buffer): Revert revno:105285 from 2011-07-19.
Date: Thu, 24 Nov 2011 09:09:56 +0200
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 106502
fixes bug(s): http://debbugs.gnu.org/8615
committer: Juri Linkov <address@hidden>
branch nick: trunk
timestamp: Thu 2011-11-24 09:09:56 +0200
message:
  * lisp/view.el (view-buffer): Revert revno:105285 from 2011-07-19.
modified:
  lisp/ChangeLog
  lisp/view.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2011-11-24 03:59:09 +0000
+++ b/lisp/ChangeLog    2011-11-24 07:09:56 +0000
@@ -1,3 +1,7 @@
+2011-11-24  Juri Linkov  <address@hidden>
+
+       * view.el (view-buffer): Revert revno:105285 from 2011-07-19 (bug#8615).
+
 2011-11-24  Glenn Morris  <address@hidden>
 
        * mail/rmailmm.el (rmail-mime): When rmail-enable-mime is non-nil,

=== modified file 'lisp/view.el'
--- a/lisp/view.el      2011-11-14 20:23:26 +0000
+++ b/lisp/view.el      2011-11-24 07:09:56 +0000
@@ -311,10 +311,9 @@
 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"))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]