changeset 23385:95773b2746b4

(find-file-noselect): Switch to the correct buffer before checking find-file-literally, and allow non-nil non-t rawfile params.
author Karl Heuer <kwzh@gnu.org>
date Tue, 06 Oct 1998 23:27:28 +0000
parents a194e59ab82c
children ac8f85b1733c
files lisp/files.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/files.el	Tue Oct 06 23:25:52 1998 +0000
+++ b/lisp/files.el	Tue Oct 06 23:27:28 1998 +0000
@@ -928,8 +928,9 @@
 			   (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? "