+2001-04-17 Eli Zaretskii <eliz@is.elta.co.il>
+
+ * info.el (Info-menu-update): When there are no menus and/or no
+ cross references in the node, make the respective items of the
+ Info menu-bar menu inactive.
+
2001-04-17 Gerd Moellmann <gerd@gnu.org>
* indent.el (indent-for-tab-command): Call indent-line-function
(if items
(setq entries (cons ["Other..." Info-menu t] entries)))
(or entries
- (setq entries (list ["No menu" nil nil])))
+ (setq entries (list ["No menu" nil nil] nil :active)))
(easy-menu-change '("Info") "Menu Item" (nreverse entries)))
;; Update reference menu. Code stolen from `Info-follow-reference'.
(let ((items nil)
(setq entries (cons ["Other..." Info-follow-reference t]
entries)))
(or entries
- (setq entries (list ["No references" nil nil])))
+ (setq entries (list ["No references" nil nil] nil :active)))
(easy-menu-change '("Info") "Reference" (nreverse entries)))
;; Update last seen node.
(setq Info-menu-last-node (list Info-current-file Info-current-node)))