From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1454 invoked from network); 18 Feb 2000 11:02:33 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 18 Feb 2000 11:02:33 -0000 Received: (qmail 15548 invoked by alias); 18 Feb 2000 11:02:23 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9791 Received: (qmail 15538 invoked from network); 18 Feb 2000 11:02:22 -0000 Date: Fri, 18 Feb 2000 12:02:21 +0100 (MET) Message-Id: <200002181102.MAA30277@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk Subject: PATCH: default completion for X Just had a look at deja.com and found a message form someone complaining that completion for X command does not ccomplete filenames as the default. I think we can use the patch below which makes filenames only be completed if _x_arguments is called without arguments (i.e. from _normal). Bye Sven diff -ru ../z.old/Completion/X/_x_arguments Completion/X/_x_arguments --- ../z.old/Completion/X/_x_arguments Fri Feb 18 11:06:44 2000 +++ Completion/X/_x_arguments Fri Feb 18 11:56:20 2000 @@ -7,6 +7,8 @@ '-geometry:geometry:_x_geometry' ) +(( $# )) || xargs=( "$xargs[@]" '*:files: _files' ) + long=$argv[(I)--] if (( long )); then argv[long]=( "$xargs[@]" -- ) -- Sven Wischnowsky wischnow@informatik.hu-berlin.de