]> code.delx.au - gnu-emacs/commitdiff
(find-file-noselect): Switch to the correct buffer
authorKarl Heuer <kwzh@gnu.org>
Tue, 6 Oct 1998 23:27:28 +0000 (23:27 +0000)
committerKarl Heuer <kwzh@gnu.org>
Tue, 6 Oct 1998 23:27:28 +0000 (23:27 +0000)
before checking find-file-literally, and allow non-nil non-t
rawfile params.

lisp/files.el

index bb1667eb502858a56c577efa186d4fb1eb90c9ff..c58edd7bcb84147f192102b14ec210d317dc3308 100644 (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? "