diff options
| author | Richard M. Stallman | 2004-11-19 20:04:44 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2004-11-19 20:04:44 +0000 |
| commit | 5d4faedacc2e40d18ee0041accab896b24c2a07f (patch) | |
| tree | a55528c4ba0f36e7d6366a52536465a6a527704e | |
| parent | ecdb561eb45eb29f45eeb678d26dc570ae3ef876 (diff) | |
| download | emacs-5d4faedacc2e40d18ee0041accab896b24c2a07f.tar.gz emacs-5d4faedacc2e40d18ee0041accab896b24c2a07f.zip | |
(Info-search): Use search-whitespace-regexp.
| -rw-r--r-- | lisp/info.el | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/lisp/info.el b/lisp/info.el index cc7ed2ae59b..ee59fa0d3a9 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -1468,10 +1468,6 @@ If DIRECTION is `backward', search in the reverse direction." | |||
| 1468 | (opoint-max (point-max)) | 1468 | (opoint-max (point-max)) |
| 1469 | (ostart (window-start)) | 1469 | (ostart (window-start)) |
| 1470 | (osubfile Info-current-subfile)) | 1470 | (osubfile Info-current-subfile)) |
| 1471 | (when Info-search-whitespace-regexp | ||
| 1472 | (setq regexp | ||
| 1473 | (mapconcat 'identity (split-string regexp "[ \t\n]+") | ||
| 1474 | Info-search-whitespace-regexp))) | ||
| 1475 | (setq Info-search-case-fold case-fold-search) | 1471 | (setq Info-search-case-fold case-fold-search) |
| 1476 | (save-excursion | 1472 | (save-excursion |
| 1477 | (save-restriction | 1473 | (save-restriction |
| @@ -1496,12 +1492,14 @@ If DIRECTION is `backward', search in the reverse direction." | |||
| 1496 | (save-excursion | 1492 | (save-excursion |
| 1497 | (and (search-backward "\^_" nil t) | 1493 | (and (search-backward "\^_" nil t) |
| 1498 | (looking-at "\^_\nTag Table")))))) | 1494 | (looking-at "\^_\nTag Table")))))) |
| 1499 | (if (if backward | 1495 | (let ((search-whitespace-regexp |
| 1500 | (re-search-backward regexp bound t) | 1496 | Info-search-whitespace-regexp)) |
| 1501 | (re-search-forward regexp bound t)) | 1497 | (if (if backward |
| 1502 | (setq found (point) beg-found (if backward (match-end 0) | 1498 | (re-search-backward regexp bound t) |
| 1503 | (match-beginning 0))) | 1499 | (re-search-forward regexp bound t)) |
| 1504 | (setq give-up t))))) | 1500 | (setq found (point) beg-found (if backward (match-end 0) |
| 1501 | (match-beginning 0))) | ||
| 1502 | (setq give-up t)))))) | ||
| 1505 | ;; If no subfiles, give error now. | 1503 | ;; If no subfiles, give error now. |
| 1506 | (if give-up | 1504 | (if give-up |
| 1507 | (if (null Info-current-subfile) | 1505 | (if (null Info-current-subfile) |