From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: Completion listing with ksharrays
Date: Tue, 11 Jan 2000 17:39:47 +0100 (MET) [thread overview]
Message-ID: <200001111639.RAA28636@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Tanaka Akira's message of 12 Jan 2000 01:10:14 +0900
Tanaka Akira wrote:
> In article <rsqk8lg38mu.fsf@crane.jaist.ac.jp>,
> Tanaka Akira <akr@jaist.ac.jp> writes:
>
> > I found that `cd -<TAB>' doesn't work with ksharrays.
> > It is caused by the behaviour of dirstack parametar:
>
> No. I found that `cd -<TAB>' problem is not dirstack/cd dependent.
>
> Z(2):akr@is27e1u11% Src/zsh -f
> is27e1u11% bindkey -e; autoload -U compinit; compinit -D
> is27e1u11% zstyle ':completion*' group-name ''
> is27e1u11% zstyle ':completion*:descriptions' format '%d'
> is27e1u11% ls C<TAB>
> file
> CVS/ ChangeLog ChangeLog.3.0 Completion/ Config/
>
> `ls C<TAB>' lists filenames beginning with `C' as above.
>
> is27e1u11% setopt ksharrays
> is27e1u11% ls C<TAB>
> file
>
> But when ksharrays is set, completions is not listed.
I needed some time to find out what was going on...
With ksharrays array subscripts may only be given inside `${...}' but
in _main_complete subscripts without the braces were used before
ksharrays was unset.
Bye
Sven
diff -ru ../z.old/Completion/Core/_main_complete Completion/Core/_main_complete
--- ../z.old/Completion/Core/_main_complete Tue Jan 11 10:06:47 2000
+++ Completion/Core/_main_complete Tue Jan 11 17:37:32 2000
@@ -16,14 +16,16 @@
# which makes the output of setopt and unsetopt reflect a different
# state than the global one for which you are completing.
+setopt localoptions nullglob rcexpandparam extendedglob
+unsetopt markdirs globsubst shwordsplit nounset ksharrays
local comp post ret=1 _compskip _prio_num=1 format \
context state line opt_args val_args curcontext="$curcontext" \
_last_nmatches=-1 _last_menu_style _def_menu_style _menu_style sel \
- _saved_exact="$compstate[exact]" \
- _saved_lastprompt="$compstate[last_prompt]" \
- _saved_list="$compstate[list]" \
- _saved_insert="$compstate[insert]"
+ _saved_exact="${compstate[exact]}" \
+ _saved_lastprompt="${compstate[last_prompt]}" \
+ _saved_list="${compstate[list]}" \
+ _saved_insert="${compstate[insert]}"
typeset -U _offered_tags _tried_tags _failed_tags _used_tags _unused_tags
@@ -32,9 +34,6 @@
_failed_tags=()
typeset -U _lastdescr
-
-setopt localoptions nullglob rcexpandparam extendedglob
-unsetopt markdirs globsubst shwordsplit nounset ksharrays
# Special completion contexts after `~' and `='.
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~2000-01-11 16:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-11 16:39 Sven Wischnowsky [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-01-11 15:55 dirstack " Tanaka Akira
2000-01-11 16:10 ` Completion listing " 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=200001111639.RAA28636@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).