unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Cc: emacs-devel@gnu.org, karl@freefriends.org
Subject: Re: Info-index fails on node-name "~/.cvsrc"
Date: Thu, 20 May 2004 08:48:17 +0300	[thread overview]
Message-ID: <878yfnd5aa.fsf@mail.jurta.org> (raw)
In-Reply-To: <jwvwu38wgn0.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "19 May 2004 12:04:37 -0400")

>> Is that trailing "5." really a valid format?  Not in my mind.
>
>> It would probably be trivial to change it to generate "(line  5)" instead
>> of "5.".  No harm in that, regardless of the deprecation, which I agree
>> with.

Even if it is considered deprecated, I will install a fix.

> AFAIK, index nodes are just normal nodes with a big menu.
> Thus index entries have the same format as menu entries:
>
>      * NAME: LOCATION.  DESCRIPTION
>
> It's just that traditionally index nodes use an empty DESCRIPTION
> and align all the LOCATIONs so it looks like
>
>      * NAME1:                     LOCATION1.
>      * NAME2:                     LOCATION2.
>
> Adding a DESCRIPTION of the form "5." is just as valid as "(line 5)".

Two distinctions between index and menu entries were added recently.
One is getting line numbers from "(line NNN)".  Currently it works
only in Info indexes.  I don't know if it makes sense for menu items
in non-index nodes as well.

Another difference is special handling of periods in index entries,
which now includes all periods to the node name:

     * .cvsrc file: ~/.cvsrc.
                    ========
     * I see no X here.: I see no X here..
                         ================
     * J. Random Hacker: J. Random Hacker.
                         ================

This may not work for menu items.  Currently, most menu items are
safely limited by ::

     * ~/.cvsrc::     Default options with the ~/.cvsrc file
     * I see no X here.::
     * J. Random Hacker::

so there is no problem.  But we might get into trouble with menu
entries with periods like:

     * .cvsrc file: ~/.cvsrc.     Default options with the ~/.cvsrc file.

Since such menu items are very rare (if exist at all), so perhaps we
shouldn't care for them.

> Now if the node has a new special index-tag (can't remember what it looks
> like), maybe things are different, but with old-style index nodes, it looks
> perfectly valid to me.

If I understand correctly, a new index tag ^@^H[index^@^H] is for
determining if an Info node is an index node, _additionally_ to
current checking the node name for the "\\<Index\\>" regexp.

Karl, could you confirm, is a new index tag supposed to work this way:

1. To determine if the current node is an index node, the Emacs Info
reader should first try to match the node name for the "\\<Index\\>"
regexp.  If that fails, then to search for the "^@^H[index^@^H]" tag
in the current node.

2. To find all index nodes in the current Info file, the Emacs Info
reader should first try to find in the Top node's menu a menu item
whose node name matches the "\\<Index\\>" regexp, and look also in
subsequent nodes matching "\\<Index\\>" (this is as it currently
works).  If that fails, then to scan the whole Info file from the top
for the "^@^H[index^@^H]" tag, and look also in subsequent nodes which
contain the "^@^H[index^@^H]" tag.

-- 
Juri Linkov
http://www.jurta.org/emacs/

  reply	other threads:[~2004-05-20  5:48 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
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 [this message]
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878yfnd5aa.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).