From: Borsenkow Andrej <Andrej.Borsenkow@mow.siemens.ru>
To: "'Zsh hackers list'" <zsh-workers@sunsite.dk>
Subject: RE: PATCH: _info completion
Date: Tue, 14 May 2002 20:37:57 +0400 [thread overview]
Message-ID: <6134254DE87BD411908B00A0C99B044F02E89AA9@mowd019a.mow.siemens.ru> (raw)
In-Reply-To: <20020514162058.GA31151@logica.com>
> > 4 lines of parameter substitution is daunting but it tries to parse
> > three different line entry formats with on regexp and also account
for
> > subtle differences in formatting I have encountered. Suggestions how
to
> > simplify it are gratefully accepted :-)
>
> I'm impressed. I thought about doing this some while ago and decided
> that it was just more hassle than it was worth, even with info -o.
> I haven't yet tried to understand the substitution yet either.
>
Actually it is quite simple. It takes info -o - output, cuts off
evrything after "--- Detailed Node Listing ---" (which sometimes has
spaces around sometimes not) then gets all lines "* xxx" except "*
Menu:" and then tries to extract node names and descriptions, where
lines match one of
* Node: (file)section. Description - top level dir
* Node:: Description - normal menu
* Node: section - index
(I think listing sections for index entries makes sense; if not it can
already be simplified :-)
nothing really exciting.
-andrej
next prev parent reply other threads:[~2002-05-14 16:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-12 7:11 Borsenkow Andrej
2002-05-14 7:51 ` Sven Wischnowsky
2002-05-14 16:20 ` Oliver Kiddle
2002-05-14 16:37 ` Borsenkow Andrej [this message]
2002-05-23 14:42 ` Borsenkow Andrej
2002-05-28 14:16 ` Oliver Kiddle
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=6134254DE87BD411908B00A0C99B044F02E89AA9@mowd019a.mow.siemens.ru \
--to=andrej.borsenkow@mow.siemens.ru \
--cc=zsh-workers@sunsite.dk \
/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.vuxu.org/mirror/zsh/
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 NNTP newsgroup(s).