1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-22 16:01:04 -08:00

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.
This commit is contained in:
Eli Zaretskii 2011-03-05 10:48:52 +02:00
parent 944bc73101
commit 3ae59fff62
2 changed files with 8 additions and 2 deletions

View 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.

View 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