aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2004-06-12 05:54:43 +0000
committerJuri Linkov2004-06-12 05:54:43 +0000
commitbc2246458ad4d4598174e76193cdfcb1b9a93443 (patch)
tree4cd5e4f7cdf06c20b7dc4de90cc242c3524257d4
parent92aed8bec9cd9392e44de21719a82a516826ad6e (diff)
downloademacs-bc2246458ad4d4598174e76193cdfcb1b9a93443.tar.gz
emacs-bc2246458ad4d4598174e76193cdfcb1b9a93443.zip
(Info-goto-node): Add autoload.
(Info-toc): Add substring-no-properties on Info file name. (Info-mode, info, Info-toc, Info-mode-menu): Doc fix. (Info-mode-map): Bind L to Info-history, T to Info-toc.
-rw-r--r--lisp/info.el33
1 files changed, 19 insertions, 14 deletions
diff --git a/lisp/info.el b/lisp/info.el
index 14183383743..43e1dafcc6f 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -469,7 +469,8 @@ with the top-level Info directory.
469 469
470In interactive use, a non-numeric prefix argument directs 470In interactive use, a non-numeric prefix argument directs
471this command to read a file name from the minibuffer. 471this command to read a file name from the minibuffer.
472A numeric prefix argument appends the number to the buffer name. 472A numeric prefix argument selects an Info buffer with the prefix number
473appended to the Info buffer name.
473 474
474The search path for Info files is in the variable `Info-directory-list'. 475The search path for Info files is in the variable `Info-directory-list'.
475The top-level Info directory is made by combining all the files named `dir' 476The top-level Info directory is made by combining all the files named `dir'
@@ -1315,6 +1316,7 @@ any double quotes or backslashes must be escaped (\\\",\\\\)."
1315;; Go to an info node specified with a filename-and-nodename string 1316;; Go to an info node specified with a filename-and-nodename string
1316;; of the sort that is found in pointers in nodes. 1317;; of the sort that is found in pointers in nodes.
1317 1318
1319;;;###autoload
1318(defun Info-goto-node (nodename &optional fork) 1320(defun Info-goto-node (nodename &optional fork)
1319 "Go to info node named NODENAME. Give just NODENAME or (FILENAME)NODENAME. 1321 "Go to info node named NODENAME. Give just NODENAME or (FILENAME)NODENAME.
1320If NODENAME is of the form (FILENAME)NODENAME, the node is in the Info file 1322If NODENAME is of the form (FILENAME)NODENAME, the node is in the Info file
@@ -1672,7 +1674,8 @@ If SAME-FILE is non-nil, do not move to a different Info file."
1672 (goto-char (or p (point-min))))) 1674 (goto-char (or p (point-min)))))
1673 1675
1674(defun Info-toc () 1676(defun Info-toc ()
1675 "Go to a node with table of contents of the current Info file." 1677 "Go to a node with table of contents of the current Info file.
1678Table of contents is created from the tree structure of menus."
1676 (interactive) 1679 (interactive)
1677 (let ((curr-file Info-current-file) 1680 (let ((curr-file Info-current-file)
1678 (curr-node Info-current-node) 1681 (curr-node Info-current-node)
@@ -1687,7 +1690,7 @@ If SAME-FILE is non-nil, do not move to a different Info file."
1687 (insert "*Note Top::\n") 1690 (insert "*Note Top::\n")
1688 (Info-insert-toc 1691 (Info-insert-toc
1689 (nth 2 (assoc "Top" node-list)) ; get Top nodes 1692 (nth 2 (assoc "Top" node-list)) ; get Top nodes
1690 node-list 0 curr-file)) 1693 node-list 0 (substring-no-properties curr-file)))
1691 (if (not (bobp)) 1694 (if (not (bobp))
1692 (let ((Info-hide-note-references 'hide) 1695 (let ((Info-hide-note-references 'hide)
1693 (Info-fontify-visited-nodes nil)) 1696 (Info-fontify-visited-nodes nil))
@@ -2786,6 +2789,7 @@ if point is in a menu item description, follow that menu item."
2786 (define-key Info-mode-map "h" 'Info-help) 2789 (define-key Info-mode-map "h" 'Info-help)
2787 (define-key Info-mode-map "i" 'Info-index) 2790 (define-key Info-mode-map "i" 'Info-index)
2788 (define-key Info-mode-map "l" 'Info-last) 2791 (define-key Info-mode-map "l" 'Info-last)
2792 (define-key Info-mode-map "L" 'Info-history)
2789 (define-key Info-mode-map "m" 'Info-menu) 2793 (define-key Info-mode-map "m" 'Info-menu)
2790 (define-key Info-mode-map "n" 'Info-next) 2794 (define-key Info-mode-map "n" 'Info-next)
2791 (define-key Info-mode-map "p" 'Info-prev) 2795 (define-key Info-mode-map "p" 'Info-prev)
@@ -2796,6 +2800,7 @@ if point is in a menu item description, follow that menu item."
2796 (define-key Info-mode-map "\M-s" 'Info-search) 2800 (define-key Info-mode-map "\M-s" 'Info-search)
2797 (define-key Info-mode-map "\M-n" 'clone-buffer) 2801 (define-key Info-mode-map "\M-n" 'clone-buffer)
2798 (define-key Info-mode-map "t" 'Info-top-node) 2802 (define-key Info-mode-map "t" 'Info-top-node)
2803 (define-key Info-mode-map "T" 'Info-toc)
2799 (define-key Info-mode-map "u" 'Info-up) 2804 (define-key Info-mode-map "u" 'Info-up)
2800 ;; For consistency with dired-copy-filename-as-kill. 2805 ;; For consistency with dired-copy-filename-as-kill.
2801 (define-key Info-mode-map "w" 'Info-copy-current-node-name) 2806 (define-key Info-mode-map "w" 'Info-copy-current-node-name)
@@ -2843,9 +2848,9 @@ if point is in a menu item description, follow that menu item."
2843 ["Last" Info-last :active Info-history 2848 ["Last" Info-last :active Info-history
2844 :help "Go to the last node you were at"] 2849 :help "Go to the last node you were at"]
2845 ["History" Info-history :active Info-history-list 2850 ["History" Info-history :active Info-history-list
2846 :help "Go to the history buffer"] 2851 :help "Go to menu of visited nodes"]
2847 ["Table of Contents" Info-toc 2852 ["Table of Contents" Info-toc
2848 :help "Go to the buffer with a table of contents"] 2853 :help "Go to table of contents"]
2849 ("Index..." 2854 ("Index..."
2850 ["Lookup a String" Info-index 2855 ["Lookup a String" Info-index
2851 :help "Look for a string in the index items"] 2856 :help "Look for a string in the index items"]
@@ -2990,15 +2995,15 @@ Selecting other nodes:
2990\\[Info-directory] Go to the Info directory node. 2995\\[Info-directory] Go to the Info directory node.
2991\\[Info-follow-reference] Follow a cross reference. Reads name of reference. 2996\\[Info-follow-reference] Follow a cross reference. Reads name of reference.
2992\\[Info-last] Move to the last node you were at. 2997\\[Info-last] Move to the last node you were at.
2993\\[Info-history] Go to the history buffer. 2998\\[Info-history] Go to menu of visited nodes.
2994\\[Info-toc] Go to the buffer with a table of contents. 2999\\[Info-toc] Go to table of contents of the current Info file.
2995\\[Info-index] Look up a topic in this file's Index and move to that node.
2996\\[Info-index-next] (comma) Move to the next match from a previous \\<Info-mode-map>\\[Info-index] command.
2997\\[info-apropos] Look for a string in the indices of all manuals.
2998\\[Info-top-node] Go to the Top node of this file. 3000\\[Info-top-node] Go to the Top node of this file.
2999\\[Info-final-node] Go to the final node in this file. 3001\\[Info-final-node] Go to the final node in this file.
3000\\[Info-backward-node] Go backward one node, considering all nodes as forming one sequence. 3002\\[Info-backward-node] Go backward one node, considering all nodes as forming one sequence.
3001\\[Info-forward-node] Go forward one node, considering all nodes as forming one sequence. 3003\\[Info-forward-node] Go forward one node, considering all nodes as forming one sequence.
3004\\[Info-index] Look up a topic in this file's Index and move to that node.
3005\\[Info-index-next] (comma) Move to the next match from a previous \\<Info-mode-map>\\[Info-index] command.
3006\\[info-apropos] Look for a string in the indices of all manuals.
3002 3007
3003Moving within a node: 3008Moving within a node:
3004\\[Info-scroll-up] Normally, scroll forward a full screen. 3009\\[Info-scroll-up] Normally, scroll forward a full screen.
@@ -3015,15 +3020,15 @@ Advanced commands:
3015\\[Info-copy-current-node-name] Put name of current info node in the kill ring. 3020\\[Info-copy-current-node-name] Put name of current info node in the kill ring.
3016\\[clone-buffer] Select a new cloned Info buffer in another window. 3021\\[clone-buffer] Select a new cloned Info buffer in another window.
3017\\[Info-edit] Edit contents of selected node. 3022\\[Info-edit] Edit contents of selected node.
30181 Pick first item in node's menu. 30231 .. 9 Pick first ... ninth item in node's menu.
30192, 3, 4, 5 Pick second ... fifth item in node's menu. 3024 Every third `*' is highlighted to help pick the right number.
3020\\[Info-goto-node] Move to node specified by name. 3025\\[Info-goto-node] Move to node specified by name.
3021 You may include a filename as well, as (FILENAME)NODENAME. 3026 You may include a filename as well, as (FILENAME)NODENAME.
3022\\[universal-argument] \\[info] Move to new Info file with completion. 3027\\[universal-argument] \\[info] Move to new Info file with completion.
3028\\[universal-argument] N \\[info] Select Info buffer with prefix number in the name *info*<N>.
3023\\[Info-search] Search through this Info file for specified regexp, 3029\\[Info-search] Search through this Info file for specified regexp,
3024 and select the node in which the next occurrence is found. 3030 and select the node in which the next occurrence is found.
3025\\[Info-search-case-sensitively] Search through this Info file 3031\\[Info-search-case-sensitively] Search through this Info file for specified regexp case-sensitively.
3026 for specified regexp case-sensitively.
3027\\[Info-search-next] Search for another occurrence of regexp 3032\\[Info-search-next] Search for another occurrence of regexp
3028 from a previous \\<Info-mode-map>\\[Info-search] command. 3033 from a previous \\<Info-mode-map>\\[Info-search] command.
3029\\[Info-next-reference] Move cursor to next cross-reference or menu item. 3034\\[Info-next-reference] Move cursor to next cross-reference or menu item.