Commit 64e6dfad authored by Karl Heuer's avatar Karl Heuer
Browse files

(find-file-noselect): Switch to the correct buffer

before checking find-file-literally, and allow non-nil non-t
rawfile params.
parent 596235d6
......@@ -928,8 +928,9 @@ Optional second arg RAWFILE non-nil means the file is read literally."
(buffer-name buf))))
(with-current-buffer buf
(revert-buffer t t)))))
(when (not (eq rawfile (not (null find-file-literally))))
(with-current-buffer buf
(with-current-buffer buf
(when (not (eq (not (null rawfile))
(not (null find-file-literally))))
(if (buffer-modified-p)
(if (y-or-n-p (if rawfile
"Save file and revisit literally? "
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