diff options
| author | Eli Zaretskii | 2001-04-17 20:31:29 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-04-17 20:31:29 +0000 |
| commit | 5d5845dc5eb9a2af98cc0f12a3deda3191793aa3 (patch) | |
| tree | cd8e218e13084d8a7c06f7cdb54390849b851c93 | |
| parent | dc4181b6b9e8c2b62f61b86173ad640c98d00a7b (diff) | |
| download | emacs-5d5845dc5eb9a2af98cc0f12a3deda3191793aa3.tar.gz emacs-5d5845dc5eb9a2af98cc0f12a3deda3191793aa3.zip | |
(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.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/info.el | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 81a58d9000d..1d50730dd86 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2001-04-17 Eli Zaretskii <eliz@is.elta.co.il> | ||
| 2 | |||
| 3 | * info.el (Info-menu-update): When there are no menus and/or no | ||
| 4 | cross references in the node, make the respective items of the | ||
| 5 | Info menu-bar menu inactive. | ||
| 6 | |||
| 1 | 2001-04-17 Gerd Moellmann <gerd@gnu.org> | 7 | 2001-04-17 Gerd Moellmann <gerd@gnu.org> |
| 2 | 8 | ||
| 3 | * indent.el (indent-for-tab-command): Call indent-line-function | 9 | * indent.el (indent-for-tab-command): Call indent-line-function |
diff --git a/lisp/info.el b/lisp/info.el index d3d21468a6a..53704ef6fc4 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -2166,7 +2166,7 @@ If no reference to follow, moves to the next node, or up if none." | |||
| 2166 | (if items | 2166 | (if items |
| 2167 | (setq entries (cons ["Other..." Info-menu t] entries))) | 2167 | (setq entries (cons ["Other..." Info-menu t] entries))) |
| 2168 | (or entries | 2168 | (or entries |
| 2169 | (setq entries (list ["No menu" nil nil]))) | 2169 | (setq entries (list ["No menu" nil nil] nil :active))) |
| 2170 | (easy-menu-change '("Info") "Menu Item" (nreverse entries))) | 2170 | (easy-menu-change '("Info") "Menu Item" (nreverse entries))) |
| 2171 | ;; Update reference menu. Code stolen from `Info-follow-reference'. | 2171 | ;; Update reference menu. Code stolen from `Info-follow-reference'. |
| 2172 | (let ((items nil) | 2172 | (let ((items nil) |
| @@ -2198,7 +2198,7 @@ If no reference to follow, moves to the next node, or up if none." | |||
| 2198 | (setq entries (cons ["Other..." Info-follow-reference t] | 2198 | (setq entries (cons ["Other..." Info-follow-reference t] |
| 2199 | entries))) | 2199 | entries))) |
| 2200 | (or entries | 2200 | (or entries |
| 2201 | (setq entries (list ["No references" nil nil]))) | 2201 | (setq entries (list ["No references" nil nil] nil :active))) |
| 2202 | (easy-menu-change '("Info") "Reference" (nreverse entries))) | 2202 | (easy-menu-change '("Info") "Reference" (nreverse entries))) |
| 2203 | ;; Update last seen node. | 2203 | ;; Update last seen node. |
| 2204 | (setq Info-menu-last-node (list Info-current-file Info-current-node))) | 2204 | (setq Info-menu-last-node (list Info-current-file Info-current-node))) |