From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17312 invoked from network); 23 Feb 2000 10:47:07 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 23 Feb 2000 10:47:07 -0000 Received: (qmail 9001 invoked by alias); 23 Feb 2000 10:47:01 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9837 Received: (qmail 8980 invoked from network); 23 Feb 2000 10:46:58 -0000 Date: Wed, 23 Feb 2000 11:46:57 +0100 (MET) Message-Id: <200002231046.LAA16578@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: "Bart Schaefer"'s message of Wed, 23 Feb 2000 09:44:18 +0000 Subject: Re: PATCH: Corrected style test in prediction 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