diff options
| author | Richard M. Stallman | 1994-02-24 03:25:46 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-02-24 03:25:46 +0000 |
| commit | cedb118cc84fbf5e53097b7fcc20161909a2b26f (patch) | |
| tree | f56a5048146c74a6b6b799de4ad78d7c1790454e | |
| parent | 2512acba30ff6f87e3c1b7602c71d340acf61498 (diff) | |
| download | emacs-cedb118cc84fbf5e53097b7fcc20161909a2b26f.tar.gz emacs-cedb118cc84fbf5e53097b7fcc20161909a2b26f.zip | |
(Info-build-node-completions): Add a call to widen.
(Info-goto-emacs-command-node): Fix paren error. Fix typo in message.
(Info-restore-point): Use iteration instead of recursion.
| -rw-r--r-- | lisp/info.el | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/lisp/info.el b/lisp/info.el index 28554ba444c..d2cff3aec96 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -556,6 +556,7 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself." | |||
| 556 | (if (marker-buffer Info-tag-table-marker) | 556 | (if (marker-buffer Info-tag-table-marker) |
| 557 | (progn | 557 | (progn |
| 558 | (set-buffer (marker-buffer Info-tag-table-marker)) | 558 | (set-buffer (marker-buffer Info-tag-table-marker)) |
| 559 | (widen) | ||
| 559 | (goto-char Info-tag-table-marker) | 560 | (goto-char Info-tag-table-marker) |
| 560 | (while (re-search-forward "\nNode: \\(.*\\)\177" nil t) | 561 | (while (re-search-forward "\nNode: \\(.*\\)\177" nil t) |
| 561 | (setq compl | 562 | (setq compl |
| @@ -578,11 +579,13 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself." | |||
| 578 | 579 | ||
| 579 | (defun Info-restore-point (hl) | 580 | (defun Info-restore-point (hl) |
| 580 | "If this node has been visited, restore the point value when we left." | 581 | "If this node has been visited, restore the point value when we left." |
| 581 | (if hl | 582 | (while hl |
| 582 | (if (and (equal (nth 0 (car hl)) Info-current-file) | 583 | (if (and (equal (nth 0 (car hl)) Info-current-file) |
| 583 | (equal (nth 1 (car hl)) Info-current-node)) | 584 | (equal (nth 1 (car hl)) Info-current-node)) |
| 584 | (goto-char (nth 2 (car hl))) | 585 | (progn |
| 585 | (Info-restore-point (cdr hl))))) | 586 | (setq hl nil) ;terminate the while at next iter |
| 587 | (goto-char (nth 2 (car hl)))) | ||
| 588 | (setq hl (cdr hl))))) | ||
| 586 | 589 | ||
| 587 | (defvar Info-last-search nil | 590 | (defvar Info-last-search nil |
| 588 | "Default regexp for \\<Info-mode-map>\\[Info-search] command to search for.") | 591 | "Default regexp for \\<Info-mode-map>\\[Info-search] command to search for.") |
| @@ -1461,10 +1464,10 @@ The command is found by looking up in Emacs manual's Command Index." | |||
| 1461 | ;; the history. | 1464 | ;; the history. |
| 1462 | (setq Info-history (nconc (cdr where) Info-history)) | 1465 | (setq Info-history (nconc (cdr where) Info-history)) |
| 1463 | (message (substitute-command-keys | 1466 | (message (substitute-command-keys |
| 1464 | "Found %d other entr%. Use \\[Info-last] to see %s." | 1467 | "Found %d other entr%s. Use \\[Info-last] to see %s.") |
| 1465 | (1- num-matches) | 1468 | (1- num-matches) |
| 1466 | (if (> num-matches 2) "ies" "y") | 1469 | (if (> num-matches 2) "ies" "y") |
| 1467 | (if (> num-matches 2) "them" "it")))))) | 1470 | (if (> num-matches 2) "them" "it"))))) |
| 1468 | (error "Couldn't find documentation for %s." command)))) | 1471 | (error "Couldn't find documentation for %s." command)))) |
| 1469 | 1472 | ||
| 1470 | ;;;###autoload | 1473 | ;;;###autoload |