aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/info.el22
2 files changed, 27 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c16ab3fba57..773fd487db9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12000-12-15 Eli Zaretskii <eliz@is.elta.co.il>
2
3 * info.el (Info-forward-node): If the node has an
4 Info-header-line, widen the buffer before searching for "next:"
5 and "up:" pointers, and set the search limit to stay in the
6 current node.
7
12000-12-16 Miles Bader <miles@gnu.org> 82000-12-16 Miles Bader <miles@gnu.org>
2 9
3 * simple.el (delete-trailing-whitespace): Remove extraneous let. 10 * simple.el (delete-trailing-whitespace): Remove extraneous let.
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")))