From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: completion with prefix which contains meta character.
Date: Thu, 6 Jan 2000 16:03:15 +0100 (MET) [thread overview]
Message-ID: <200001061503.QAA19187@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Tanaka Akira's message of 06 Jan 2000 23:48:24 +0900
Tanaka Akira wrote:
> In article <200001060938.KAA17703@beta.informatik.hu-berlin.de>,
> Sven Wischnowsky <wischnow@informatik.hu-berlin.de> writes:
>
> > But it should. At least I wanted to get the -P and -S be used
> > literally (should be the most powerful, right?).
>
> I agree. It's the most powerful way.
>
> > Since I feel adventurous today, I even documented that.
> >
> > And that rembslash() didn't make any sense at all.
>
> Thanks. Now compadd -P is useful even in these cases. But I found
> similar problem about compset -P.
>
> Z:akr@is27e1u11% Src/zsh -f
> is27e1u11% bindkey -e; autoload -U compinit; compinit -D; compdef _tst tst
> is27e1u11% _tst () { compset -P '\*' && compadd xxx }
> is27e1u11% tst \*<TAB>
>
> This completes nothing.
>
> is27e1u11% _tst () { compset -P '\\\*' && compadd xxx }
> is27e1u11% tst \*<TAB>
>
> This completes nothing, too.
>
> If compset -P tries to match against unquoted form of prefix, former
> should complete xxx. If it tries to match against quoted form, latter
> should complete xxx. But both completes nothing.
Yup. Since $PREFIX contains the quoted form, compset should use it, too.
Thanks.
Bye
Sven
diff -ru ../z.old/Src/Zle/complete.c Src/Zle/complete.c
--- ../z.old/Src/Zle/complete.c Thu Jan 6 13:52:33 2000
+++ Src/Zle/complete.c Thu Jan 6 15:59:48 2000
@@ -894,11 +894,9 @@
break;
case CVT_RANGEPAT:
tokenize(sa);
- sa = rembslash(sa);
remnulargs(sa);
if (sb) {
tokenize(sb);
- sb = rembslash(sb);
remnulargs(sb);
}
break;
@@ -914,7 +912,6 @@
} else
na = -1;
tokenize(sa);
- sa = rembslash(sa);
remnulargs(sa);
break;
}
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~2000-01-06 15:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-06 15:03 Sven Wischnowsky [this message]
2000-01-06 23:38 ` Tanaka Akira
-- strict thread matches above, loose matches on Subject: below --
2000-01-07 10:50 Sven Wischnowsky
2000-01-07 9:27 Sven Wischnowsky
2000-01-06 9:38 Sven Wischnowsky
2000-01-06 14:48 ` Tanaka Akira
2000-01-06 8:04 Tanaka Akira
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=200001061503.QAA19187@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).