From: Juri Linkov <juri@jurta.org>
Cc: Karl Berry <karl@freefriends.org>
Subject: Re: Info-index fails on node-name "~/.cvsrc"
Date: Tue, 18 May 2004 09:18:53 +0300 [thread overview]
Message-ID: <87k6zamf5e.fsf@mail.jurta.org> (raw)
In-Reply-To: <rcisev5ax7.fsf@xpc14.ast.cam.ac.uk> (Glenn Morris's message of "Mon, 17 May 2004 16:29:56 +0100")
Glenn Morris <gmorris+emacs@ast.cam.ac.uk> writes:
> I noticed that Info-index now fails in the VM info pages (it works OK
> in 21.3). The index entries all take the format:
>
> * vm-move-messages-physically: Sorting Messages. 5.
>
> and a typical error message is:
>
> i sort -> "No such node or anchor: Sorting Messages. 5"
How did you produce this Info index in such non-standard format?
I tried to regenerate the VM Info file with an old version of
makeinfo and got:
* vm-move-messages-physically: Sorting Messages.
Then I tried to generate it with the latest version of makeinfo
and the result was:
* vm-move-messages-physically: Sorting Messages. (line 6)
But OK. Since you have Info pages in such format, we should find a
solution to support it.
Recently info.el was fixed to include periods into Info node names from
the Info index (like "~/.cvsrc"). But in your file the period is not
a part of the node name.
The stand-alone Info reader interprets the period with the following
whitespace as a terminating period. But it don't work with node names
where period with the following whitespace is a part of the node name,
like in abbreviations (e.g. "J. Random Hacker" from the Jargon file).
So I propose the following solution: if an Info node is not found and
its name contains the period, then try to find a node with a part
of the name after period removed.
Index: emacs/lisp/info.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/info.el,v
retrieving revision 1.394
diff -c -r1.394 info.el
*** emacs/lisp/info.el 27 Apr 2004 14:43:03 -0000 1.394
--- emacs/lisp/info.el 18 May 2004 04:47:27 -0000
***************
*** 863,871 ****
(let ((pos (Info-find-node-in-buffer regexp)))
(when pos
(goto-char pos)
! (throw 'foo t))
! ;; No such anchor in tag table or node in tag table or file
! (error "No such node or anchor: %s" nodename)))
(Info-select-node)
(goto-char (point-min))
--- 863,879 ----
(let ((pos (Info-find-node-in-buffer regexp)))
(when pos
(goto-char pos)
! (throw 'foo t)))
!
! (when (string-match "\\([^.]+\\)\\." nodename)
! (let (Info-point-loc)
! (Info-find-node-2
! filename (match-string 1 nodename) no-going-back))
! (widen)
! (throw 'foo t))
!
! ;; No such anchor in tag table or node in tag table or file
! (error "No such node or anchor: %s" nodename))
(Info-select-node)
(goto-char (point-min))
--
Juri Linkov
http://www.jurta.org/emacs/
next prev parent reply other threads:[~2004-05-18 6:18 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <yjy8orfs4p.fsf@xpc14.ast.cam.ac.uk>
2004-04-22 1:07 ` Info-index fails on node-name "~/.cvsrc" Juri Linkov
2004-04-22 16:59 ` Karl Berry
2004-04-25 4:35 ` Juri Linkov
2004-04-25 13:37 ` Karl Berry
2004-05-17 15:29 ` Glenn Morris
2004-05-18 6:18 ` Juri Linkov [this message]
2004-05-18 7:38 ` Eli Zaretskii
2004-05-18 11:28 ` Juri Linkov
2004-05-18 15:17 ` Eli Zaretskii
2004-05-18 15:38 ` Karl Berry
2004-05-18 12:03 ` Glenn Morris
2004-05-19 6:17 ` Eli Zaretskii
2004-05-19 12:13 ` Glenn Morris
2004-05-19 20:11 ` Eli Zaretskii
2004-05-19 13:27 ` Robert J. Chassell
2004-05-19 15:01 ` Stefan Monnier
2004-05-19 15:50 ` Karl Berry
2004-05-19 16:04 ` Stefan Monnier
2004-05-20 5:48 ` Juri Linkov
2004-05-20 16:30 ` Karl Berry
2004-05-21 8:08 ` Juri Linkov
2004-05-21 13:31 ` Karl Berry
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k6zamf5e.fsf@mail.jurta.org \
--to=juri@jurta.org \
--cc=karl@freefriends.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.