From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13633 invoked from network); 23 Jul 1999 09:18:20 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 23 Jul 1999 09:18:20 -0000 Received: (qmail 16285 invoked by alias); 23 Jul 1999 09:18:12 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7260 Received: (qmail 16278 invoked from network); 23 Jul 1999 09:18:12 -0000 Date: Fri, 23 Jul 1999 11:18:10 +0200 (MET DST) Message-Id: <199907230918.LAA05010@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: Sven Wischnowsky's message of Fri, 23 Jul 1999 10:57:06 +0200 (MET DST) Subject: Re: PATCH: 3.1.6-test-2: _parameters And the same for _main_complete. I'm still thinking about adding some more special parameters to the parameter module. Maybe, some day... Bye Sven diff -u oc/Core/_main_complete Completion/Core/_main_complete --- oc/Core/_main_complete Fri Jul 23 10:58:35 1999 +++ Completion/Core/_main_complete Fri Jul 23 11:14:51 1999 @@ -29,10 +29,15 @@ # # local _set_options _unset_options # -# _set_options=("${(@f)$({ unsetopt kshoptionprint; setopt } 2>/dev/null)}") -# _unset_options=("${(@f)$({ unsetopt kshoptionprint; unsetopt } 2>/dev/null)}") +# if zmodload -e parameter; then +# _set_options=(${(k)options[(R)on]}) +# _unset_options=(${(k)options[(R)off]}) +# else +# _set_options=("${(@f)$({ unsetopt kshoptionprint; setopt } 2>/dev/null)}") +# _unset_options=("${(@f)$({ unsetopt kshoptionprint; unsetopt } 2>/dev/null)}") +# fi # -# This is needed because completion function may set options locally +# This is needed because completion functions may set options locally # which makes the output of setopt and unsetopt reflect a different # state than the global one for which you are completing. -- Sven Wischnowsky wischnow@informatik.hu-berlin.de