changeset 49935:78bf19f4f12c

(Revert Buffer): Condition on buffer-file-number.
author Richard M. Stallman <rms@gnu.org>
date Sun, 23 Feb 2003 15:17:29 +0000
parents 2d6097436427
children 71b14e933f12
files lisp/menu-bar.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/menu-bar.el	Sun Feb 23 15:16:29 2003 +0000
+++ b/lisp/menu-bar.el	Sun Feb 23 15:17:29 2003 +0000
@@ -152,7 +152,7 @@
   '(menu-item "Revert Buffer" revert-buffer
 	      :enable (or revert-buffer-function
 			  revert-buffer-insert-file-contents-function
-			  (and (buffer-file-name)
+			  (and buffer-file-number
 			       (or (buffer-modified-p)
 				   (not (verify-visited-file-modtime
 					 (current-buffer))))))