From: Richard M. Stallman Date: Sun, 23 Feb 2003 15:17:29 +0000 (+0000) Subject: (Revert Buffer): Condition on buffer-file-number. X-Git-Tag: ttn-vms-21-2-B4~11071 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=59dac63b7f5f6d2079080c345c4f228563931c04;p=emacs.git (Revert Buffer): Condition on buffer-file-number. --- diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 3c93983b939..2c0dbd6e253 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el @@ -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))))))