From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.dk
Subject: Re: insert-tab default
Date: Fri, 17 Aug 2001 12:32:39 +0200 [thread overview]
Message-ID: <15228.62151.587861.882104@gargle.gargle.HOWL> (raw)
In-Reply-To: <8501.998042232@csr.com>
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
next parent reply other threads:[~2001-08-17 10:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <15228.59487.241930.695@gargle.gargle.HOWL>
[not found] ` <8501.998042232@csr.com>
2001-08-17 10:32 ` Sven Wischnowsky [this message]
2001-08-17 9:19 Peter Stephenson
2001-08-17 9:48 ` Sven Wischnowsky
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=15228.62151.587861.882104@gargle.gargle.HOWL \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.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).