zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: Corrected style test in prediction
Date: Wed, 23 Feb 2000 11:46:57 +0100 (MET)	[thread overview]
Message-ID: <200002231046.LAA16578@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Bart Schaefer"'s message of Wed, 23 Feb 2000 09:44:18 +0000


Bart Schaefer wrote:

> Sven, please confirm ... I'm never sure about the number of trailing colons.
> 
> Index: Functions/Zle/predict-on
> ===================================================================
> @@ -122,7 +122,7 @@
>    then
>      compstate[list]=''
>      compstate[force_list]=yes
> -  elif zstyle -t ":completion:predict::::" list always
> +  elif zstyle -t ":completion:::predict::" list always
>    then
>      compstate[force_list]=yes
>    fi

The number of colons is still correct, but the original context name
was correct, too. The `predict' was stored in the `function' field of
the context name, indicating that completion was called from predict.

However, the other call to zstyle had a missing colon, the one before
the (not-given) tag.


The patch also fixes a type in _gunzip -- as shown in Peter's guide.

Bye
 Sven

diff -ru ../z.old/Completion/User/_gunzip Completion/User/_gunzip
--- ../z.old/Completion/User/_gunzip	Wed Feb 23 10:37:24 2000
+++ Completion/User/_gunzip	Wed Feb 23 11:20:56 2000
@@ -3,4 +3,4 @@
 local expl
 
 _description files expl 'compressed file'
-_files "$expl[@]" -g '*.([tT]|)[gG][z]'
+_files "$expl[@]" -g '*.([tT]|)[gG][zZ]'
diff -ru ../z.old/Functions/Zle/predict-on Functions/Zle/predict-on
--- ../z.old/Functions/Zle/predict-on	Wed Feb 23 09:03:49 2000
+++ Functions/Zle/predict-on	Wed Feb 23 11:45:21 2000
@@ -64,7 +64,7 @@
 	  # get out of that `case'.
 	  repeat 1
 	  do
-	    zstyle -s ":completion:${curcontext}" cursor crs
+	    zstyle -s ":completion:${curcontext}:" cursor crs
 	    case $crs in
 	    (complete)
 	      # At the place where the completion left it, if it is after

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


             reply	other threads:[~2000-02-23 10:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-23 10:46 Sven Wischnowsky [this message]
2000-02-23 15:42 ` Bart Schaefer
  -- strict thread matches above, loose matches on Subject: below --
2000-02-23 15:53 Sven Wischnowsky
2000-02-23 15:48 Sven Wischnowsky
2000-02-23  9:44 Bart Schaefer

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=200002231046.LAA16578@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).