From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7514 invoked from network); 19 Feb 2005 13:23:55 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 19 Feb 2005 13:23:55 -0000 Received: (qmail 91604 invoked from network); 19 Feb 2005 13:23:48 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 19 Feb 2005 13:23:48 -0000 Received: (qmail 14809 invoked by alias); 19 Feb 2005 13:23:45 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 20832 Received: (qmail 4713 invoked from network); 19 Feb 2005 12:57:04 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 19 Feb 2005 12:57:04 -0000 Received: (qmail 82694 invoked from network); 19 Feb 2005 12:57:04 -0000 Received: from wproxy.gmail.com (64.233.184.194) by a.mx.sunsite.dk with SMTP; 19 Feb 2005 12:57:01 -0000 Received: by wproxy.gmail.com with SMTP id 69so623508wri for ; Sat, 19 Feb 2005 04:57:00 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=KYif+WPE3+hj/Cpj91XWIJ9+qaauJtvSTH83XTjCh4C8iDPdXq8/pYG/HAId374ZsNwT1PykVR/ksvf5mM71Nnk8bmL/UPxZ/0sSWpO1umx1ma9XCnRqB/NjHsOUk0gc4MhUdxjXa8kiQAlWAHxfZOCKIRZB9qq6niTl3ho9W1k= Received: by 10.54.44.69 with SMTP id r69mr34850wrr; Sat, 19 Feb 2005 04:57:00 -0800 (PST) Received: by 10.54.47.30 with HTTP; Sat, 19 Feb 2005 04:57:00 -0800 (PST) Message-ID: <94608ad8050219045771857127@mail.gmail.com> Date: Sat, 19 Feb 2005 15:57:00 +0300 From: Konstantin Sobolev Reply-To: Konstantin Sobolev To: zsh-workers@sunsite.dk Subject: patch for supporting s in ant completion Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.5 required=6.0 tests=BAYES_00,RCVD_BY_IP autolearn=ham version=3.0.2 X-Spam-Hits: -2.5 Hi, I've patched ant completion to gather targets from imported files also (http://ant.apache.org/manual/CoreTasks/import.html) Though It doesn't expand properties, may be it will find it's place in some of the future versions.. /usr/share/zsh/4.2.4/functions/Completion/Unix $ diff ant.orig _ant 89c89,93 < targets=( $(sed -n "s/ *]* name=[\"']\([^\"']*\)[\"'].*/\1/p" < $buildfile) ) --- > files=( $(sed -n "s/ *]* file=[\"']\([^\"']*\)[\"'].*/\1/p" < $buildfile) $buildfile ) > targets=( ) > foreach file ( $files ) do > targets=( $(sed -n "s/ *]* name=[\"']\([^\"']*\)[\"'].*/\1/p" < $file) $targets ) > done -- /KoS