aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/info.el
diff options
context:
space:
mode:
authorEli Zaretskii2000-12-15 22:03:05 +0000
committerEli Zaretskii2000-12-15 22:03:05 +0000
commitb24e84ab41942e4f7bb7574df59bb1cf1f8aebdf (patch)
tree36742e27b4c60d24444a53a1e806188be5944765 /lisp/info.el
parente87b88097267da7cdcf24e05abbce48fb356b71d (diff)
downloademacs-b24e84ab41942e4f7bb7574df59bb1cf1f8aebdf.tar.gz
emacs-b24e84ab41942e4f7bb7574df59bb1cf1f8aebdf.zip
(Info-forward-node): If the node has an
Info-header-line, widen the buffer before searching for "next:" and "up:" pointers, and set the search limit to stay in the current node.
Diffstat (limited to 'lisp/info.el')
-rw-r--r--lisp/info.el22
1 files changed, 20 insertions, 2 deletions
diff --git a/lisp/info.el b/lisp/info.el
index 3b2e675f7f1..21e32e76a4b 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -1521,10 +1521,28 @@ N is the digit argument used to invoke this command."
1521 (not (string-match "\\<index\\>" Info-current-node))) 1521 (not (string-match "\\<index\\>" Info-current-node)))
1522 (Info-goto-node (Info-extract-menu-counting 1)) 1522 (Info-goto-node (Info-extract-menu-counting 1))
1523 t) 1523 t)
1524 ((save-excursion (search-backward "next:" nil t)) 1524 ((save-excursion
1525 (save-restriction
1526 (let (limit)
1527 (when Info-header-line
1528 (goto-char (point-min))
1529 (widen)
1530 (forward-line -1)
1531 (setq limit (point))
1532 (forward-line 1))
1533 (search-backward "next:" limit t))))
1525 (Info-next) 1534 (Info-next)
1526 t) 1535 t)
1527 ((and (save-excursion (search-backward "up:" nil t)) 1536 ((and (save-excursion
1537 (save-restriction
1538 (let (limit)
1539 (when Info-header-line
1540 (goto-char (point-min))
1541 (widen)
1542 (forward-line -1)
1543 (setq limit (point))
1544 (forward-line 1))
1545 (search-backward "up:" limit t))))
1528 ;; Use string-equal, not equal, to ignore text props. 1546 ;; Use string-equal, not equal, to ignore text props.
1529 (not (string-equal (downcase (Info-extract-pointer "up")) 1547 (not (string-equal (downcase (Info-extract-pointer "up"))
1530 "top"))) 1548 "top")))