From: Karl Heuer Date: Tue, 6 Oct 1998 23:27:28 +0000 (+0000) Subject: (find-file-noselect): Switch to the correct buffer X-Git-Tag: emacs-20.4~1564 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=64e6dfad6bdf25f85d2c93c4168780068221408a;p=emacs.git (find-file-noselect): Switch to the correct buffer before checking find-file-literally, and allow non-nil non-t rawfile params. --- diff --git a/lisp/files.el b/lisp/files.el index bb1667eb502..c58edd7bcb8 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -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? "