diff options
Diffstat (limited to 'lisp/info.el')
| -rw-r--r-- | lisp/info.el | 22 |
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"))) |