From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4282 invoked from network); 26 Jun 1998 19:12:29 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 26 Jun 1998 19:12:29 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id PAA26156; Fri, 26 Jun 1998 15:06:31 -0400 (EDT) Resent-Date: Fri, 26 Jun 1998 15:06:31 -0400 (EDT) From: "Bart Schaefer" Message-Id: <980626120628.ZM8783@candle.brasslantern.com> Date: Fri, 26 Jun 1998 12:06:28 -0700 X-Mailer: Z-Mail (4.0b.820 20aug96) To: zsh-workers@math.gatech.edu Subject: PATCH: compctl-examples for (un)setopt with kshoptionprint MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"Lzu__.0.dO6.s4_ar"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/4176 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Completion for setopt and unsetopt was strange with kshoptionprint set. This unsets that option before generating the possible completions. Index: Misc/compctl-examples =================================================================== --- compctl-examples 1998/06/17 05:04:57 1.2 +++ compctl-examples 1998/06/26 19:02:03 @@ -43,8 +43,8 @@ compctl -k "(${(j: :)${(f)$(limit)}%% *})" limit unlimit compctl -l '' -x 'p[1]' -f -- . source # Redirection below makes zsh silent when completing unsetopt xtrace -compctl -s '$(setopt 2>/dev/null)' + -o + -x 's[no]' -o -- unsetopt -compctl -s '$(unsetopt 2>/dev/null)' + -o + -x 's[no]' -o -- setopt +compctl -s '$({ unsetopt kshoptionprint; setopt } 2>/dev/null)' + -o + -x 's[no]' -o -- unsetopt +compctl -s '$({ unsetopt kshoptionprint; unsetopt } 2>/dev/null)' + -o + -x 's[no]' -o -- setopt compctl -s '${^fpath}/*(N:t)' autoload compctl -b -x 'W[1,-*[DAN]*],C[-1,-*M]' -s '$(bindkey -l)' -- bindkey compctl -c -x 'C[-1,-*k]' -A - 'C[-1,-*K]' -F -- compctl -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com