aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/info.el
diff options
context:
space:
mode:
authorStefan Monnier2001-11-29 23:46:01 +0000
committerStefan Monnier2001-11-29 23:46:01 +0000
commite700ec12bdeae48e917af0c3b94dd4dc3be2c8fc (patch)
tree201f814a47be43c50a7579b56ac64b5ae3f85925 /lisp/info.el
parente4e8ee638ec1500f33a546b892cd78a1988ee36f (diff)
downloademacs-e700ec12bdeae48e917af0c3b94dd4dc3be2c8fc.tar.gz
emacs-e700ec12bdeae48e917af0c3b94dd4dc3be2c8fc.zip
(Info-goto-index): One register one step in the history.
(Info-index): Don't protect the history around the call to Info-goto-index.
Diffstat (limited to 'lisp/info.el')
-rw-r--r--lisp/info.el16
1 files changed, 8 insertions, 8 deletions
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