aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog12
-rw-r--r--lisp/info.el16
2 files changed, 18 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c40bd82204d..55f9f49edf0 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,12 @@
12001-11-29 Stefan Monnier <monnier@cs.yale.edu>
2
3 * info.el (Info-complete-next-re, Info-complete-cache): New vars.
4 (Info-complete-menu-item): Rewrite. Add the ability to search
5 several sequential nodes. Add a simple caching mechanism.
6 (Info-goto-index): New function extracted from Info-index.
7 (Info-index): Use it. Add completion to the interactive spec.
8 (Info-menu-update): Simplify call to `Info-complete-menu-item'.
9
12001-11-29 Pavel Jan,Bm(Bk <Pavel@Janik.cz> 102001-11-29 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
2 11
3 * COPYING: Removed. 12 * COPYING: Removed.
@@ -19,8 +28,7 @@
19 28
20 * play/blackbox.el (blackbox-mode, blackbox): Doc fix. 29 * play/blackbox.el (blackbox-mode, blackbox): Doc fix.
21 30
22 * play/cookie1.el (cookie, cookie-insert, shuffle-vector): Doc 31 * play/cookie1.el (cookie, cookie-insert, shuffle-vector): Doc fixes.
23 fixes.
24 32
25 * play/studly.el (studlify-word, studlify-region) 33 * play/studly.el (studlify-word, studlify-region)
26 (studlify-buffer): Fix doc-string. 34 (studlify-buffer): Fix doc-string.
diff --git a/lisp/info.el b/lisp/info.el
index 1c6242375de..2f9d6e02024 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -1831,7 +1831,9 @@ parent node."
1831 (or (re-search-forward "\n\\* \\(.*\\<Index\\>\\)" nil t) 1831 (or (re-search-forward "\n\\* \\(.*\\<Index\\>\\)" nil t)
1832 (error "No index")) 1832 (error "No index"))
1833 (goto-char (match-beginning 1)) 1833 (goto-char (match-beginning 1))
1834 (Info-goto-node (Info-extract-menu-node-name))) 1834 ;; Protect Info-history so that the current node (Top) is not added to it.
1835 (let ((Info-history nil))
1836 (Info-goto-node (Info-extract-menu-node-name))))
1835 1837
1836(defun Info-index (topic) 1838(defun Info-index (topic)
1837 "Look up a string TOPIC in the index for this file. 1839 "Look up a string TOPIC in the index for this file.
@@ -1857,16 +1859,14 @@ Give a blank topic name to go to the Index node itself."
1857 (regexp-quote topic))) 1859 (regexp-quote topic)))
1858 node 1860 node
1859 (case-fold-search t)) 1861 (case-fold-search t))
1860 ;; Here, and subsequently in this function, 1862 (Info-goto-index)
1861 ;; we bind Info-history to nil for internal node-switches
1862 ;; so that we don't put junk in the history.
1863 ;; In the first Info-goto-node call, above, we do update the history
1864 ;; because that is what the user's previous node choice into it.
1865 (let ((Info-history nil))
1866 (Info-goto-index))
1867 (or (equal topic "") 1863 (or (equal topic "")
1868 (let ((matches nil) 1864 (let ((matches nil)
1869 (exact nil) 1865 (exact nil)
1866 ;; We bind Info-history to nil for internal node-switches so
1867 ;; that we don't put junk in the history. In the first
1868 ;; Info-goto-index call, above, we do update the history
1869 ;; because that is what the user's previous node choice into it.
1870 (Info-history nil) 1870 (Info-history nil)
1871 found) 1871 found)
1872 (while 1872 (while