From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: arguments for typeset (and variants)
Date: Wed, 10 May 2000 10:18:32 +0200 (MET DST) [thread overview]
Message-ID: <200005100818.KAA08132@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Oliver Kiddle's message of Tue, 09 May 2000 17:50:26 +0100
Oliver Kiddle wrote:
> ...
>
> I had a few problems with the + options in _vars_eq but I must have been
> doing something wrong. There should be +g, +h, +r, +t, +x (any maybe
> some others) options but when I put them in the completion spec as
> something like '(-f)-+x[ex...', completion for typeset hangs zsh.
No, my fault. The -+ works by using the spec twice, but it used the
whole spec, not only the `-+...' part.
Bye
Sven
Index: Src/Zle/computil.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/computil.c,v
retrieving revision 1.15
diff -u -r1.15 computil.c
--- Src/Zle/computil.c 2000/05/09 09:05:36 1.15
+++ Src/Zle/computil.c 2000/05/10 08:16:57
@@ -651,7 +651,7 @@
Caopt opt;
Caarg oargs = NULL;
int multi, otype = CAO_NEXT, again = 0;
- char *name, *descr, c;
+ char *name, *descr, c, *againp = NULL;
rec:
@@ -665,6 +665,7 @@
p[2] != '=' && p[2] != '-' && p[2] != '+') {
/* It's a -+ or +- definition. We just execute the whole
* stuff twice for such things. */
+ againp = dupstring(p);
name = ++p;
*p = (again ? '-' : '+');
again++;
@@ -838,7 +839,7 @@
if (again == 1) {
/* Do it all again for `*-...'. */
- p = dupstring(*args);
+ p = againp;
goto rec;
}
} else if (*p == '*') {
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~2000-05-10 8:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-05-10 8:18 Sven Wischnowsky [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-05-09 16:50 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=200005100818.KAA08132@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).