diff options
| author | Richard M. Stallman | 2001-05-20 17:03:12 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-05-20 17:03:12 +0000 |
| commit | b0e52598a54f576d524b912a1b0f1f67c6b84e02 (patch) | |
| tree | 6683c0066b13a7dbc76cae994b919b073fa02e3d | |
| parent | 9ca00e7182857d8a89c79bf6bc65143b8376835c (diff) | |
| download | emacs-b0e52598a54f576d524b912a1b0f1f67c6b84e02.tar.gz emacs-b0e52598a54f576d524b912a1b0f1f67c6b84e02.zip | |
(Info-read-subfile): Widen before finding the
desired node in the subfile.
| -rw-r--r-- | lisp/info.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/info.el b/lisp/info.el index db502377823..55c658b5369 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -951,6 +951,8 @@ a case-insensitive match is tried." | |||
| 951 | (info-insert-file-contents lastfilename) | 951 | (info-insert-file-contents lastfilename) |
| 952 | (set-buffer-modified-p nil) | 952 | (set-buffer-modified-p nil) |
| 953 | (setq Info-current-subfile lastfilename))) | 953 | (setq Info-current-subfile lastfilename))) |
| 954 | ;; Widen in case we are in the same subfile as before. | ||
| 955 | (widen) | ||
| 954 | (goto-char (point-min)) | 956 | (goto-char (point-min)) |
| 955 | (if (looking-at "\^_") | 957 | (if (looking-at "\^_") |
| 956 | (forward-char 1) | 958 | (forward-char 1) |
| @@ -1193,7 +1195,6 @@ If FORK is a string, it is the name to use for the new buffer." | |||
| 1193 | (message "Searching subfile %s..." (cdr (car list))) | 1195 | (message "Searching subfile %s..." (cdr (car list))) |
| 1194 | (Info-read-subfile (car (car list))) | 1196 | (Info-read-subfile (car (car list))) |
| 1195 | (setq list (cdr list)) | 1197 | (setq list (cdr list)) |
| 1196 | ;;; (goto-char (point-min)) | ||
| 1197 | (if (re-search-forward regexp nil t) | 1198 | (if (re-search-forward regexp nil t) |
| 1198 | (setq found (point) list ()))) | 1199 | (setq found (point) list ()))) |
| 1199 | (if found | 1200 | (if found |