From: Peter Stephenson <Peter.Stephenson@csr.com>
To: <zsh-workers@zsh.org>
Subject: Re: compadd --
Date: Tue, 25 Oct 2011 17:29:17 +0100 [thread overview]
Message-ID: <20111025172917.63f56967@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <111025090445.ZM1600@torch.brasslantern.com>
On Tue, 25 Oct 2011 09:04:45 -0700
Bart Schaefer <schaefer@brasslantern.com> wrote:
> The problem seems to be that the generic option parser has already
> removed the "--" option before bin_compadd is even called, even though
> the declaration
>
> BUILTIN("compadd", 0, bin_compadd, 0, -1, 0, NULL, NULL)
>
> says that compadd is going to do all its own option parsing.
Except it doesn't. Are you saying we need this? (Possibly for other
completion functions?)
Index: Src/Zle/complete.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/complete.c,v
retrieving revision 1.46
diff -p -u -r1.46 complete.c
--- Src/Zle/complete.c 13 Jan 2009 12:19:54 -0000 1.46
+++ Src/Zle/complete.c 25 Oct 2011 16:27:41 -0000
@@ -1544,7 +1544,7 @@ cond_range(char **a, int id)
}
static struct builtin bintab[] = {
- BUILTIN("compadd", 0, bin_compadd, 0, -1, 0, NULL, NULL),
+ BUILTIN("compadd", BINF_HANDLES_OPTS, bin_compadd, 0, -1, 0, NULL, NULL),
BUILTIN("compset", 0, bin_compset, 1, 3, 0, NULL, NULL),
};
--
Peter Stephenson <pws@csr.com> Software Engineer
Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
next prev parent reply other threads:[~2011-10-25 16:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-25 14:33 foudfou
2011-10-25 16:04 ` Bart Schaefer
2011-10-25 16:29 ` Peter Stephenson [this message]
2011-10-26 2:44 ` Bart Schaefer
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=20111025172917.63f56967@pwslap01u.europe.root.pri \
--to=peter.stephenson@csr.com \
--cc=zsh-workers@zsh.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.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).