changeset 73453:c4f0807660f6

(mode-line-mode-menu): Disable auto-revert-tail-mode indicator if not visiting a file.
author Nick Roberts <nickrob@snap.net.nz>
date Sat, 21 Oct 2006 23:42:21 +0000
parents 5bbef9e5f126
children 3ebe30400038
files lisp/bindings.el
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/bindings.el	Sat Oct 21 23:41:53 2006 +0000
+++ b/lisp/bindings.el	Sat Oct 21 23:42:21 2006 +0000
@@ -455,6 +455,7 @@
 	      :button (:toggle . column-number-mode)))
 (define-key mode-line-mode-menu [auto-revert-tail-mode]
   `(menu-item ,(purecopy "Auto revert tail (Tail)") auto-revert-tail-mode
+	      :enable (buffer-file-name)
 	      :button (:toggle . (bound-and-true-p auto-revert-tail-mode))))
 (define-key mode-line-mode-menu [auto-revert-mode]
   `(menu-item ,(purecopy "Auto revert (ARev)") auto-revert-mode