* what happened to accept-and-infer-next-hostory ?
@ 1999-12-09 13:37 Andrej Borsenkow
1999-12-09 13:46 ` Andrej Borsenkow
0 siblings, 1 reply; 5+ messages in thread
From: Andrej Borsenkow @ 1999-12-09 13:37 UTC (permalink / raw)
To: ZSH workers mailing list
Do I miss something?
bor@itsrm2:~%> grep menuselect ~/.zshrc
bindkey -M menuselect '/' accept-and-infer-next-history
bor@itsrm2:~%> bindkey -L | grep menus
bor@itsrm2:~%>
I remember, bindkey -L listed bindings for all keymaps. Actually, it looks, like
it is not possible to list just a selected keymap at all:
bor@itsrm2:~%> bindkey -M menuselect -L
"-L" undefined-key
It tries to lookup binding for a given argument. But, still:
bor@itsrm2:~%> bindkey -M menuselect /
"/" accept-and-infer-next-history
so far so good. And now
bor@itsrm2:~%> cd zsh<TAB>
bor@itsrm2:~%> cd zsh
zsh/ zsh-3.1.6-bart-8/ zsh-3.1.6-pws-10/ zsh-3.1.6-pws-11/
moving to pws-11:
bor@itsrm2:~%> cd zsh-3.1.6-pws-11/
zsh/ zsh-3.1.6-bart-8/ zsh-3.1.6-pws-10/ zsh-3.1.6-pws-11/
and now pressing '/'
bor@itsrm2:~%> cd zsh-3.1.6-pws-11/
Should it not complete directories inside of zsh-xxx now?
/andrej
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: what happened to accept-and-infer-next-hostory ?
1999-12-09 13:37 what happened to accept-and-infer-next-hostory ? Andrej Borsenkow
@ 1999-12-09 13:46 ` Andrej Borsenkow
0 siblings, 0 replies; 5+ messages in thread
From: Andrej Borsenkow @ 1999-12-09 13:46 UTC (permalink / raw)
To: ZSH workers mailing list
>
> bor@itsrm2:~%> bindkey -M menuselect -L
> "-L" undefined-key
>
Sorry. Forget this.
/andrej
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: what happened to accept-and-infer-next-hostory ?
@ 1999-12-09 15:06 Sven Wischnowsky
0 siblings, 0 replies; 5+ messages in thread
From: Sven Wischnowsky @ 1999-12-09 15:06 UTC (permalink / raw)
To: zsh-workers
Andrej Borsenkow wrote:
> > Which it does for me. Hm, do I have to get pws-11 now to see if/how
> > this differs from the CVS version? Have you tried with `zsh -f'?
> >
>
> This does not work if _oldlist is used. I have completer as '_oldlist _complete
> _match'. It is enough to simply set completer '_oldlist ...' without additional
> configuration.
Ah. A rather long-standing bug then.
complist should say that the old list is not to be used with a-a-i-n-h.
Bye
Sven
diff -ru ../z.old/Src/Zle/complist.c Src/Zle/complist.c
--- ../z.old/Src/Zle/complist.c Thu Dec 9 15:55:43 1999
+++ Src/Zle/complist.c Thu Dec 9 15:58:19 1999
@@ -916,7 +916,7 @@
s->nbrbeg = nbrbeg;
s->nbrend = nbrend;
s->nmatches = nmatches;
- menucmp = menuacc = 0;
+ menucmp = menuacc = hasoldlist = 0;
fixsuffix();
validlist = 0;
amatches = pmatches = lastmatches = NULL;
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: what happened to accept-and-infer-next-hostory ?
1999-12-09 13:49 Sven Wischnowsky
@ 1999-12-09 14:20 ` Andrej Borsenkow
0 siblings, 0 replies; 5+ messages in thread
From: Andrej Borsenkow @ 1999-12-09 14:20 UTC (permalink / raw)
To: Sven Wischnowsky, zsh-workers
>
> Which it does for me. Hm, do I have to get pws-11 now to see if/how
> this differs from the CVS version? Have you tried with `zsh -f'?
>
This does not work if _oldlist is used. I have completer as '_oldlist _complete
_match'. It is enough to simply set completer '_oldlist ...' without additional
configuration. I normally have additionally
compstyle ':oldlist' list '_match'
/andrej
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: what happened to accept-and-infer-next-hostory ?
@ 1999-12-09 13:49 Sven Wischnowsky
1999-12-09 14:20 ` Andrej Borsenkow
0 siblings, 1 reply; 5+ messages in thread
From: Sven Wischnowsky @ 1999-12-09 13:49 UTC (permalink / raw)
To: zsh-workers
Andrej Borsenkow wrote:
> Do I miss something?
>
> bor@itsrm2:~%> grep menuselect ~/.zshrc
> bindkey -M menuselect '/' accept-and-infer-next-history
> bor@itsrm2:~%> bindkey -L | grep menus
> bor@itsrm2:~%>
>
> I remember, bindkey -L listed bindings for all keymaps. Actually, it looks, like
> it is not possible to list just a selected keymap at all:
>
> bor@itsrm2:~%> bindkey -M menuselect -L
> "-L" undefined-key
>
> It tries to lookup binding for a given argument.
Never occured to me. Urgh.
> But, still:
>
> bor@itsrm2:~%> bindkey -M menuselect /
> "/" accept-and-infer-next-history
>
> so far so good. And now
>
> bor@itsrm2:~%> cd zsh<TAB>
> bor@itsrm2:~%> cd zsh
> zsh/ zsh-3.1.6-bart-8/ zsh-3.1.6-pws-10/ zsh-3.1.6-pws-11/
>
> moving to pws-11:
>
> bor@itsrm2:~%> cd zsh-3.1.6-pws-11/
> zsh/ zsh-3.1.6-bart-8/ zsh-3.1.6-pws-10/ zsh-3.1.6-pws-11/
>
> and now pressing '/'
>
> bor@itsrm2:~%> cd zsh-3.1.6-pws-11/
>
> Should it not complete directories inside of zsh-xxx now?
Which it does for me. Hm, do I have to get pws-11 now to see if/how
this differs from the CVS version? Have you tried with `zsh -f'?
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1999-12-09 15:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-09 13:37 what happened to accept-and-infer-next-hostory ? Andrej Borsenkow
1999-12-09 13:46 ` Andrej Borsenkow
1999-12-09 13:49 Sven Wischnowsky
1999-12-09 14:20 ` Andrej Borsenkow
1999-12-09 15:06 Sven Wischnowsky
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).