Commit 3ae59fff authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

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.
parent 944bc731
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> 2011-03-05 Glenn Morris <rgm@gnu.org>
   
* eshell/esh-mode.el (eshell-kill-buffer-function): New function. * eshell/esh-mode.el (eshell-kill-buffer-function): New function.
......
...@@ -1894,8 +1894,8 @@ the various files." ...@@ -1894,8 +1894,8 @@ the various files."
(not nonexistent) (not nonexistent)
;; It is confusing to ask whether to visit ;; It is confusing to ask whether to visit
;; non-literally if they have the file in ;; non-literally if they have the file in
;; hexl-mode. ;; hexl-mode or image-mode.
(not (eq major-mode 'hexl-mode))) (not (memq major-mode '(hexl-mode image-mode))))
(if (buffer-modified-p) (if (buffer-modified-p)
(if (y-or-n-p (if (y-or-n-p
(format (format
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment