From 64e6dfad6bdf25f85d2c93c4168780068221408a Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Tue, 6 Oct 1998 23:27:28 +0000 Subject: [PATCH] (find-file-noselect): Switch to the correct buffer before checking find-file-literally, and allow non-nil non-t rawfile params. --- lisp/files.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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? " -- 2.39.2