From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: MH completion
Date: Tue, 7 Sep 1999 15:11:21 +0200 (MET DST) [thread overview]
Message-ID: <199909071311.PAA04355@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Peter Stephenson's message of Tue, 07 Sep 1999 14:57:20 +0200
Peter Stephenson wrote:
> I was trying to rewrite MH completion to use _arguments; you can run
> `command -help' and make the argument list up from the output as you
> go along. But it looks like _arguments can't deal with the +folder
> syntax, i.e. that anything beginning with a + needs to be completed
> specially by a separate function/state. Ideas?
It seems like I have the manuals for `mh' here, but not the binaries,
so I can't help much, I fear.
And I can only think of 1) first testing for `[[ $PREFIX = +* ]]' and
calling `_arguments' in the else branch or 2) let `_arguments' set a
certain state for those places where +folder is valid and handle that
after return from `_arguments', testing if the word starts with a `+',
complete folders then and otherwise complete the things that are
allowed there, too (if any).
(I don't know `mh', so I can't say if one of these is possible/correct.)
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~1999-09-07 13:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-07 13:11 Sven Wischnowsky [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-09-07 12:57 Peter Stephenson
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=199909071311.PAA04355@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.auc.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).