emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r103523: Fix bug #8177 with re-visiti


From: Eli Zaretskii
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r103523: Fix bug #8177 with re-visiting image files.
Date: Sat, 05 Mar 2011 10:48:52 +0200
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 103523
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Sat 2011-03-05 10:48:52 +0200
message:
  Fix bug #8177 with re-visiting image files.
  
   files.el (find-file-noselect): Don't ask about re-visiting
   non-literally if the file is already visited in image-mode.
modified:
  lisp/ChangeLog
  lisp/files.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2011-03-05 04:11:05 +0000
+++ b/lisp/ChangeLog    2011-03-05 08:48:52 +0000
@@ -1,3 +1,9 @@
+2011-03-05  Eli Zaretskii  <address@hidden>
+
+       * files.el (find-file-noselect): Don't ask about re-visiting
+       non-literally if the file is already visited in image-mode.
+       (Bug#8177)
+
 2011-03-05  Glenn Morris  <address@hidden>
 
        * eshell/esh-mode.el (eshell-kill-buffer-function): New function.

=== modified file 'lisp/files.el'
--- a/lisp/files.el     2011-03-03 08:10:52 +0000
+++ b/lisp/files.el     2011-03-05 08:48:52 +0000
@@ -1894,8 +1894,8 @@
                           (not nonexistent)
                           ;; It is confusing to ask whether to visit
                           ;; non-literally if they have the file in
-                          ;; hexl-mode.
-                          (not (eq major-mode 'hexl-mode)))
+                          ;; hexl-mode or image-mode.
+                          (not (memq major-mode '(hexl-mode image-mode))))
                  (if (buffer-modified-p)
                      (if (y-or-n-p
                           (format


reply via email to

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