* Re: insert-tab default
[not found] ` <8501.998042232@csr.com>
@ 2001-08-17 10:32 ` Sven Wischnowsky
0 siblings, 0 replies; 3+ messages in thread
From: Sven Wischnowsky @ 2001-08-17 10:32 UTC (permalink / raw)
To: zsh-workers
Peter Stephenson wrote:
> Sven Wischnowsky wrote:
> > Oops. That's from:
> >
> > zstyle -s ":completion:${curcontext}:" insert-tab tmp || tmp=no
> >
> > in _main_complete. Should we change the code or the docs?
>
> The traditional behaviour of tab at the start of line seems to be `true',
> as the doc suggests, so I suggest we change the code to use that.
That's what I'd prefer, too.
> > > By the way, I was having some problem with another apparently trivial
> > > widget, expand-or-complete() { zle .expand-or-complete; }, which frequently
> > > made the shell crash. Unfortunately, it doesn't do this with the default
> > > settings and I haven't traced what was doing it.
> >
> > Hm, can't reproduce that. Will keep trying...
>
> May not be worth it until I can localise it a bit better. It doesn't seem
> to be happening here, although it was easy to find at home last night.
Ok.
> > P.S.: longest=( ${(M)array:#${~${(O@)array//?/?}[1]}} )
>
> Hmmph. Not sure if I want to change that section or not, now.
I didn't mean to say it should be changed (especially because it
doesn't use the (l:...:) trick).
Interesting reading again, Peter, well done.
Bye
Sven
Index: Completion/Base/Core/_main_complete
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Base/Core/_main_complete,v
retrieving revision 1.3
diff -u -r1.3 _main_complete
--- Completion/Base/Core/_main_complete 2001/06/20 17:42:15 1.3
+++ Completion/Base/Core/_main_complete 2001/08/17 10:29:40
@@ -33,7 +33,7 @@
[[ -z "$curcontext" ]] && curcontext=:::
-zstyle -s ":completion:${curcontext}:" insert-tab tmp || tmp=no
+zstyle -s ":completion:${curcontext}:" insert-tab tmp || tmp=yes
if [[ ( "$tmp" = *pending(|[[:blank:]]*) && PENDING -gt 0 ) ||
( "$tmp" = *pending=(#b)([0-9]##)(|[[:blank:]]*) &&
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* insert-tab default
2001-08-17 9:19 Peter Stephenson
@ 2001-08-17 9:48 ` Sven Wischnowsky
0 siblings, 0 replies; 3+ messages in thread
From: Sven Wischnowsky @ 2001-08-17 9:48 UTC (permalink / raw)
To: zsh-workers
Peter Stephenson wrote:
> insert-tab
>
> The default value of this style is `true' unless when completing
> inside the vared builtin command, where it defaults to `false'.
>
> This appears to be `untrue'. You need to set it to use it. I don't know
> which is right. It seems to work if I redefine complete-word as a trivial
> widget which runs zle .complete-word.
Oops. That's from:
zstyle -s ":completion:${curcontext}:" insert-tab tmp || tmp=no
in _main_complete. Should we change the code or the docs?
> By the way, I was having some problem with another apparently trivial
> widget, expand-or-complete() { zle .expand-or-complete; }, which frequently
> made the shell crash. Unfortunately, it doesn't do this with the default
> settings and I haven't traced what was doing it.
Hm, can't reproduce that. Will keep trying...
Bye
Sven
P.S.: longest=( ${(M)array:#${~${(O@)array//?/?}[1]}} )
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* insert-tab default
@ 2001-08-17 9:19 Peter Stephenson
2001-08-17 9:48 ` Sven Wischnowsky
0 siblings, 1 reply; 3+ messages in thread
From: Peter Stephenson @ 2001-08-17 9:19 UTC (permalink / raw)
To: Zsh hackers list
insert-tab
The default value of this style is `true' unless when completing
inside the vared builtin command, where it defaults to `false'.
This appears to be `untrue'. You need to set it to use it. I don't know
which is right. It seems to work if I redefine complete-word as a trivial
widget which runs zle .complete-word.
By the way, I was having some problem with another apparently trivial
widget, expand-or-complete() { zle .expand-or-complete; }, which frequently
made the shell crash. Unfortunately, it doesn't do this with the default
settings and I haven't traced what was doing it.
--
Peter Stephenson <pws@csr.com> Software Engineer
CSR Ltd., Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070
**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential
and/or privileged material.
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is
prohibited.
If you received this in error, please contact the sender and
delete the material from any computer.
**********************************************************************
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-08-17 10:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <15228.59487.241930.695@gargle.gargle.HOWL>
[not found] ` <8501.998042232@csr.com>
2001-08-17 10:32 ` insert-tab default Sven Wischnowsky
2001-08-17 9:19 Peter Stephenson
2001-08-17 9:48 ` 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).