diff options
Diffstat (limited to 'lisp/info.el')
| -rw-r--r-- | lisp/info.el | 42 |
1 files changed, 26 insertions, 16 deletions
diff --git a/lisp/info.el b/lisp/info.el index 8aaf7755df2..cc7ed2ae59b 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -657,10 +657,10 @@ is preserved, if possible." | |||
| 657 | (equal old-nodename Info-current-node)) | 657 | (equal old-nodename Info-current-node)) |
| 658 | (progn | 658 | (progn |
| 659 | ;; note goto-line is no good, we want to measure from point-min | 659 | ;; note goto-line is no good, we want to measure from point-min |
| 660 | (beginning-of-buffer) | 660 | (goto-char (point-min)) |
| 661 | (forward-line wline) | 661 | (forward-line wline) |
| 662 | (set-window-start (selected-window) (point)) | 662 | (set-window-start (selected-window) (point)) |
| 663 | (beginning-of-buffer) | 663 | (goto-char (point-min)) |
| 664 | (forward-line pline) | 664 | (forward-line pline) |
| 665 | (move-to-column pcolumn)) | 665 | (move-to-column pcolumn)) |
| 666 | ;; only add to the history when coming from a different file+node | 666 | ;; only add to the history when coming from a different file+node |
| @@ -1484,13 +1484,18 @@ If DIRECTION is `backward', search in the reverse direction." | |||
| 1484 | (1- (point))) | 1484 | (1- (point))) |
| 1485 | (point-max))) | 1485 | (point-max))) |
| 1486 | (while (and (not give-up) | 1486 | (while (and (not give-up) |
| 1487 | (or (null found) | 1487 | (save-match-data |
| 1488 | (if backward | 1488 | (or (null found) |
| 1489 | (isearch-range-invisible found beg-found) | 1489 | (if backward |
| 1490 | (isearch-range-invisible beg-found found)) | 1490 | (isearch-range-invisible found beg-found) |
| 1491 | ;; Skip node header line | 1491 | (isearch-range-invisible beg-found found)) |
| 1492 | (save-excursion (forward-line -1) | 1492 | ;; Skip node header line |
| 1493 | (looking-at "\^_")))) | 1493 | (save-excursion (forward-line -1) |
| 1494 | (looking-at "\^_")) | ||
| 1495 | ;; Skip Tag Table node | ||
| 1496 | (save-excursion | ||
| 1497 | (and (search-backward "\^_" nil t) | ||
| 1498 | (looking-at "\^_\nTag Table")))))) | ||
| 1494 | (if (if backward | 1499 | (if (if backward |
| 1495 | (re-search-backward regexp bound t) | 1500 | (re-search-backward regexp bound t) |
| 1496 | (re-search-forward regexp bound t)) | 1501 | (re-search-forward regexp bound t)) |
| @@ -1552,13 +1557,18 @@ If DIRECTION is `backward', search in the reverse direction." | |||
| 1552 | (setq list (cdr list)) | 1557 | (setq list (cdr list)) |
| 1553 | (setq give-up nil found nil) | 1558 | (setq give-up nil found nil) |
| 1554 | (while (and (not give-up) | 1559 | (while (and (not give-up) |
| 1555 | (or (null found) | 1560 | (save-match-data |
| 1556 | (if backward | 1561 | (or (null found) |
| 1557 | (isearch-range-invisible found beg-found) | 1562 | (if backward |
| 1558 | (isearch-range-invisible beg-found found)) | 1563 | (isearch-range-invisible found beg-found) |
| 1559 | ;; Skip node header line | 1564 | (isearch-range-invisible beg-found found)) |
| 1560 | (save-excursion (forward-line -1) | 1565 | ;; Skip node header line |
| 1561 | (looking-at "\^_")))) | 1566 | (save-excursion (forward-line -1) |
| 1567 | (looking-at "\^_")) | ||
| 1568 | ;; Skip Tag Table node | ||
| 1569 | (save-excursion | ||
| 1570 | (and (search-backward "\^_" nil t) | ||
| 1571 | (looking-at "\^_\nTag Table")))))) | ||
| 1562 | (if (if backward | 1572 | (if (if backward |
| 1563 | (re-search-backward regexp nil t) | 1573 | (re-search-backward regexp nil t) |
| 1564 | (re-search-forward regexp nil t)) | 1574 | (re-search-forward regexp nil t)) |