diff options
| author | Juri Linkov | 2005-03-12 02:18:32 +0000 |
|---|---|---|
| committer | Juri Linkov | 2005-03-12 02:18:32 +0000 |
| commit | 866920e3deb3cc941eeaf518c367c2f5b668231d (patch) | |
| tree | 6357459420f9f688a0571b2a4066a095ea2cb3d3 | |
| parent | c10d2217d84466465d8b5eb4fa65627a3ec4a73e (diff) | |
| download | emacs-866920e3deb3cc941eeaf518c367c2f5b668231d.tar.gz emacs-866920e3deb3cc941eeaf518c367c2f5b668231d.zip | |
(Info-search): Four fixes for backward search.
| -rw-r--r-- | lisp/info.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/info.el b/lisp/info.el index fcc42395967..87ddfa6a55b 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -1502,7 +1502,7 @@ If DIRECTION is `backward', search in the reverse direction." | |||
| 1502 | ;; Skip node header line | 1502 | ;; Skip node header line |
| 1503 | (and (save-excursion (forward-line -1) | 1503 | (and (save-excursion (forward-line -1) |
| 1504 | (looking-at "\^_")) | 1504 | (looking-at "\^_")) |
| 1505 | (forward-line 1)) | 1505 | (forward-line (if backward -1 1))) |
| 1506 | ;; Skip Tag Table node | 1506 | ;; Skip Tag Table node |
| 1507 | (save-excursion | 1507 | (save-excursion |
| 1508 | (and (search-backward "\^_" nil t) | 1508 | (and (search-backward "\^_" nil t) |
| @@ -1540,6 +1540,7 @@ If DIRECTION is `backward', search in the reverse direction." | |||
| 1540 | (search-forward (concat "\n" osubfile ": ")) | 1540 | (search-forward (concat "\n" osubfile ": ")) |
| 1541 | ;; Skip that one. | 1541 | ;; Skip that one. |
| 1542 | (forward-line (if backward 0 1)) | 1542 | (forward-line (if backward 0 1)) |
| 1543 | (if backward (forward-char -1)) | ||
| 1543 | ;; Make a list of all following subfiles. | 1544 | ;; Make a list of all following subfiles. |
| 1544 | ;; Each elt has the form (VIRT-POSITION . SUBFILENAME). | 1545 | ;; Each elt has the form (VIRT-POSITION . SUBFILENAME). |
| 1545 | (while (not (if backward (bobp) (eobp))) | 1546 | (while (not (if backward (bobp) (eobp))) |
| @@ -1578,7 +1579,7 @@ If DIRECTION is `backward', search in the reverse direction." | |||
| 1578 | ;; Skip node header line | 1579 | ;; Skip node header line |
| 1579 | (and (save-excursion (forward-line -1) | 1580 | (and (save-excursion (forward-line -1) |
| 1580 | (looking-at "\^_")) | 1581 | (looking-at "\^_")) |
| 1581 | (forward-line 1)) | 1582 | (forward-line (if backward -1 1))) |
| 1582 | ;; Skip Tag Table node | 1583 | ;; Skip Tag Table node |
| 1583 | (save-excursion | 1584 | (save-excursion |
| 1584 | (and (search-backward "\^_" nil t) | 1585 | (and (search-backward "\^_" nil t) |
| @@ -1615,7 +1616,8 @@ If DIRECTION is `backward', search in the reverse direction." | |||
| 1615 | ;; Use string-equal, not equal, to ignore text props. | 1616 | ;; Use string-equal, not equal, to ignore text props. |
| 1616 | (or (and (string-equal onode Info-current-node) | 1617 | (or (and (string-equal onode Info-current-node) |
| 1617 | (equal ofile Info-current-file)) | 1618 | (equal ofile Info-current-file)) |
| 1618 | (and isearch-mode isearch-wrapped (eq opoint opoint-min)) | 1619 | (and isearch-mode isearch-wrapped |
| 1620 | (eq opoint (if isearch-forward opoint-min opoint-max))) | ||
| 1619 | (setq Info-history (cons (list ofile onode opoint) | 1621 | (setq Info-history (cons (list ofile onode opoint) |
| 1620 | Info-history)))))) | 1622 | Info-history)))))) |
| 1621 | 1623 | ||