1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-28 10:56:36 +00:00

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

before checking find-file-literally, and allow non-nil non-t
rawfile params.
This commit is contained in:
Karl Heuer 1998-10-06 23:27:28 +00:00
parent 596235d623
commit 64e6dfad6b

View File

@ -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? "