From 3ae59fff628e08b6e167ebdc4fd62e77048cec32 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 5 Mar 2011 10:48:52 +0200 Subject: 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. --- lisp/files.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lisp/files.el') 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 -- cgit v1.2.3