]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug #8177 with re-visiting image files.
authorEli Zaretskii <eliz@gnu.org>
Sat, 5 Mar 2011 08:48:52 +0000 (10:48 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 5 Mar 2011 08:48:52 +0000 (10:48 +0200)
 files.el (find-file-noselect): Don't ask about re-visiting
 non-literally if the file is already visited in image-mode.

lisp/ChangeLog
lisp/files.el

index aeb7c8edff49280a1c2b2add5b2211b95df329a1..047d8bb5dcc9204e89d6f5424b81cbc8723a23c1 100644 (file)
@@ -1,3 +1,9 @@
+2011-03-05  Eli Zaretskii  <eliz@gnu.org>
+
+       * 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  <rgm@gnu.org>
 
        * eshell/esh-mode.el (eshell-kill-buffer-function): New function.
index a8f937233de928ccb87d5ae5a21ef706aab21680..52ccbbf86dda7980958a94ff265ccbd6483d0e1b 100644 (file)
@@ -1894,8 +1894,8 @@ the various files."
                           (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