]> git.eshelyaron.com Git - emacs.git/commitdiff
(Revert Buffer): Condition on buffer-file-number.
authorRichard M. Stallman <rms@gnu.org>
Sun, 23 Feb 2003 15:17:29 +0000 (15:17 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 23 Feb 2003 15:17:29 +0000 (15:17 +0000)
lisp/menu-bar.el

index 3c93983b939b3fd70edd0354207a74b7bd498bbe..2c0dbd6e2536bfd7d75d1b444e1cdf85d28bb32f 100644 (file)
@@ -152,7 +152,7 @@ A large number or nil slows down menu responsiveness."
   '(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))))))