comparison lisp/info.el @ 34624:1012790a4a9c

(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.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 15 Dec 2000 22:00:28 +0000
parents 9283cc675c49
children 8f1a06c86ec8
comparison
equal deleted inserted replaced
34623:0a6636fdd569 34624:1012790a4a9c
1519 (cond ((and (not not-down) 1519 (cond ((and (not not-down)
1520 (save-excursion (search-forward "\n* menu:" nil t)) 1520 (save-excursion (search-forward "\n* menu:" nil t))
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")))
1531 (let ((old-node Info-current-node)) 1549 (let ((old-node Info-current-node))
1532 (Info-up) 1550 (Info-up)