# HG changeset patch # User Richard M. Stallman # Date 923441003 0 # Node ID 2d0999df43c733d71ed8dc1b582e268d82101fcd # Parent 82cf6c4c1e03f532b1c1cda077fa11488f5a8559 (Info-find-node): Check for an anchor at the proper place, before reading an indirect file. diff -r 82cf6c4c1e03 -r 2d0999df43c7 lisp/info.el --- a/lisp/info.el Tue Apr 06 20:04:27 1999 +0000 +++ b/lisp/info.el Tue Apr 06 23:23:23 1999 +0000 @@ -475,6 +475,7 @@ (if (marker-position Info-tag-table-marker) (let (found-in-tag-table + found-anchor found-mode (m Info-tag-table-marker)) (save-excursion @@ -484,7 +485,9 @@ ;; Search tag table (setq found-in-tag-table - (re-search-forward regexp nil t)) + (re-search-forward regexp nil t) + found-anchor + (string-equal "Ref:" (match-string 1))) (if found-in-tag-table (setq guesspos (1+ (read (current-buffer))))) (setq found-mode major-mode)) @@ -503,9 +506,7 @@ (setq guesspos (Info-read-subfile guesspos))))) ;; Handle anchor - (if (and found-in-tag-table - (string-equal "Ref:" (match-string 1))) - (goto-char guesspos) + (if found-anchor (goto-char guesspos) ;; Else we may have a node, which we search for: (goto-char (max (point-min)