From 59dac63b7f5f6d2079080c345c4f228563931c04 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 23 Feb 2003 15:17:29 +0000 Subject: [PATCH] (Revert Buffer): Condition on buffer-file-number. --- lisp/menu-bar.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)))))) -- 2.39.2