diff lisp/files.el @ 838:bf645ed7cfe3

[xemacs-hg @ 2002-05-14 09:28:06 by ben] revert-buffer, others files.el: Andy's patch from 21.4. Fix evil nasty problems with revert-buffer. menubar-items.el: Add Append to Register to Rectangles/Register menu. config.h.in, font-lock.c: Reenable font-lock code since it's used by mouse.el. The flag for this exists in config.h.in but not currently controllable through configure.
author ben
date Tue, 14 May 2002 09:28:14 +0000
parents 6728e641994e
children 047d37eb70d7
line wrap: on
line diff
--- a/lisp/files.el	Tue May 14 05:30:36 2002 +0000
+++ b/lisp/files.el	Tue May 14 09:28:14 2002 +0000
@@ -2861,10 +2861,11 @@
 			(buffer-modified-p)
 			(and (setq newbuf (revert-buffer-internal
 					   file-name))
-			     (and delay-prompt
-				  (yes-or-no-p 
-				   (format "Revert buffer from file %s? "
-					   file-name)))))
+			     (or noconfirm
+				 (and delay-prompt
+				      (yes-or-no-p 
+				       (format "Revert buffer from file %s? "
+					       file-name))))))
 		    ;; If file was backed up but has changed since,
 		    ;; we should make another backup.
 		    (and (not auto-save-p)