aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/files.el
diff options
context:
space:
mode:
authorEli Zaretskii <[email protected]>2011-03-05 10:48:52 +0200
committerEli Zaretskii <[email protected]>2011-03-05 10:48:52 +0200
commit3ae59fff628e08b6e167ebdc4fd62e77048cec32 (patch)
treeb38023d861d65e0f0694330a2e56982df1fddc90 /lisp/files.el
parent944bc731019aa19d77bba01d9fd48113c9f7c594 (diff)
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.
Diffstat (limited to 'lisp/files.el')
-rw-r--r--lisp/files.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/files.el b/lisp/files.el
index a8f937233d..52ccbbf86d 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -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