zsh-workers
 help / color / mirror / code / Atom feed
From: "Andrej Borsenkow" <borsenkow.msk@sni.de>
To: "Sven Wischnowsky" <wischnow@informatik.hu-berlin.de>,
	<zsh-workers@sunsite.auc.dk>
Subject: RE: PATCH: cleanup in zle_tricky.c
Date: Mon, 22 Mar 1999 17:09:48 +0300	[thread overview]
Message-ID: <001501be746d$a4f9e390$21c9ca95@mowp.siemens.ru> (raw)
In-Reply-To: <199903221355.OAA08373@beta.informatik.hu-berlin.de>

>
> > Do I understand it correctly, that now * is always added if
> GLOB_COMPLETE is
> > set (and never added is GLOB_COMPLETE is unset)? Und is
> globbing ever done
> > at all? I mean, normally, Doc/z*i should be globbed before
> completion even
> > starts - now (with GLOB_COMPLETE) this is the same as Doc/z*i*.
>
> That's not a change (at least it should have behaved like this
> before).

Ahem ... With old good ZSH ...

bor@itsmx1:~/tmp%> echo $ZSH_VERSION
3.1.4
bor@itsmx1:~/tmp%> l foo
a1    b1    x1y
bor@itsmx1:~/tmp%> setopt globcomplete
bor@itsmx1:~/tmp%> l foo/*1TAB
bor@itsmx1:~/tmp%> l foo/a1
foo/a1  foo/b1
bor@itsmx1:~/tmp%> unsetopt globcomplete
bor@itsmx1:~/tmp%> l foo/*1TAB
bor@itsmx1:~/tmp%> l foo/a1 foo/b1

 With old style completion and with new style completion and
> not setting compstate[pattern_match] to anything not starting with a
> `*', glob completion will insert a `*' at the cursor position.
> Globbing is only done if expand-or-complete is used and GLOB_COMPLETE
> is not set, as always.

Sorry? If I can believe manuals (and at least 3.1.4 as you see agrees with
me :-), in case of expand-or-complete globbing is *always* done first. Only
if it fails, we do completion. GLOB_COMPLETE tells a) how to insert matches
and b) what to do if _first_ globbing fails. And I really like this, and I'd
like to have it back :-)

With brand new zsh (without your last patch) with GLOB_COMPLETE:

bor@itsrm2:~/test%> touch cd/{a1,b1,x1y}
bor@itsrm2:~/test%> l cd/*1TAB
bor@itsrm2:~/test%> l cd/a1
a1    b1    x1y

Without GLOB_COMPLETE it simply beeps.

/andrej



  reply	other threads:[~1999-03-22 14:11 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-22 13:55 Sven Wischnowsky
1999-03-22 14:09 ` Andrej Borsenkow [this message]
1999-03-22 14:17 ` Andrej Borsenkow
  -- strict thread matches above, loose matches on Subject: below --
1999-03-24 12:29 Sven Wischnowsky
1999-03-23  9:51 Sven Wischnowsky
1999-03-24 10:41 ` Andrej Borsenkow
1999-03-22 15:43 Sven Wischnowsky
1999-03-22 17:45 ` Andrej Borsenkow
1999-03-22 15:29 Sven Wischnowsky
1999-03-22 14:28 Sven Wischnowsky
1999-03-22 15:32 ` Andrej Borsenkow
1999-03-22 10:56 Sven Wischnowsky
1999-03-22 13:02 ` Andrej Borsenkow

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='001501be746d$a4f9e390$21c9ca95@mowp.siemens.ru' \
    --to=borsenkow.msk@sni.de \
    --cc=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).