From: Nick Roberts Date: Sat, 21 Oct 2006 23:42:21 +0000 (+0000) Subject: (mode-line-mode-menu): Disable auto-revert-tail-mode X-Git-Tag: emacs-pretest-22.0.90~51 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9f37aef4f531d5ca17e8c14a6b756836c31089fb;p=emacs.git (mode-line-mode-menu): Disable auto-revert-tail-mode indicator if not visiting a file. --- diff --git a/lisp/bindings.el b/lisp/bindings.el index d077e641ac1..a223596c351 100644 --- a/lisp/bindings.el +++ b/lisp/bindings.el @@ -455,6 +455,7 @@ Menu of mode operations in the mode line.") :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