From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7924 invoked from network); 19 Oct 2000 08:57:26 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 19 Oct 2000 08:57:26 -0000 Received: (qmail 18672 invoked by alias); 19 Oct 2000 08:57:17 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13036 Received: (qmail 18665 invoked from network); 19 Oct 2000 08:57:16 -0000 Date: Thu, 19 Oct 2000 10:57:14 +0200 (MET DST) Message-Id: <200010190857.KAA16307@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: "Bart Schaefer"'s message of Wed, 18 Oct 2000 04:31:31 +0000 Subject: Re: PATCH: Re: Standard setopts for completion system, again Bart Schaefer wrote: > ... > > Another choice (still in compinit) would be simply to stuff the desired > options into an array: > > _comp_setopts=(nullglob rcexpandparam extendedglob unset > no{markdirs,globsubst,shwordsplit,shglob,ksharrays,cshnullglob}) > > and then reference them: > > setopt localoptions $_comp_setopts > > I guess I slightly prefer the latter, since we're already cluttering the > parameter space with completion stuff and I'd rather stay out of the alias > space, but either one would be OK. Here is the patch for it (committed soon). I hope nobody objects to me naming the array `_comp_options'? I've also initialised that array in what I hope is a more readable form. Bye Sven Index: Completion/Commands/_bash_completions =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Commands/_bash_completions,v retrieving revision 1.7 diff -u -r1.7 _bash_completions --- Completion/Commands/_bash_completions 2000/10/06 05:18:25 1.7 +++ Completion/Commands/_bash_completions 2000/10/19 08:55:42 @@ -25,8 +25,7 @@ # that will not have been overridden, so you should add '~' to the # list of keys at the top of the for-loop. -setopt localoptions nullglob rcexpandparam extendedglob unset -unsetopt markdirs globsubst shwordsplit shglob ksharrays cshnullglob +setopt localoptions $_comp_options local key=$KEYS[-1] expl Index: Completion/Commands/_complete_debug =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Commands/_complete_debug,v retrieving revision 1.10 diff -u -r1.10 _complete_debug --- Completion/Commands/_complete_debug 2000/10/06 05:18:25 1.10 +++ Completion/Commands/_complete_debug 2000/10/19 08:55:42 @@ -1,7 +1,6 @@ #compdef -k complete-word \C-x? -setopt localoptions nullglob rcexpandparam extendedglob unset -unsetopt markdirs globsubst shwordsplit shglob ksharrays cshnullglob +setopt localoptions $_comp_options setopt localtraps noerrexit ; trap - ZERR Index: Completion/Commands/_complete_help =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Commands/_complete_help,v retrieving revision 1.10 diff -u -r1.10 _complete_help --- Completion/Commands/_complete_help 2000/10/06 05:18:25 1.10 +++ Completion/Commands/_complete_help 2000/10/19 08:55:43 @@ -1,8 +1,8 @@ #compdef -k complete-word \C-xh _complete_help() { - setopt localoptions nullglob rcexpandparam extendedglob unset - unsetopt markdirs globsubst shwordsplit shglob ksharrays cshnullglob + setopt localoptions $_comp_options + exec