From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9301 invoked from network); 8 Jun 1999 07:40:16 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 8 Jun 1999 07:40:16 -0000 Received: (qmail 8661 invoked by alias); 8 Jun 1999 07:39:50 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6514 Received: (qmail 8646 invoked from network); 8 Jun 1999 07:39:49 -0000 Date: Tue, 8 Jun 1999 09:07:38 +0200 (MET DST) Message-Id: <199906080707.JAA08439@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: Tanaka Akira's message of 08 Jun 1999 03:23:12 +0900 Subject: Re: PATCH: _make complete filenames as a last resort. Tanaka Akira wrote: > In article <990607064350.ZM18009@candle.brasslantern.com>, > "Bart Schaefer" writes: > > > Hmm; if targets for makefiles contain anything other than alphanumerics, > > _make doesn't generate proper completion candidates. > > No. /^[a-zA-Z0-9][^\/ ]+:/ matches any filename beginning with > alphanumerics. Just for the record: this function was in the first example file for the new completion stuff and hasn't change since then. At that time I really didn't have the time to write anything more sophisticated -- it is a hack. So we probably should change this function to something better (and faster, using compadd and only shell-code, no awk) anyway. However, I explicitly excluded targets with slashes in them because if you use makedepend or something like that, you normally end up with lots of full path names as targets -- and that for every system header file (a better solution would probably be to search only lines up the makedepend marker-comment or something like that...). Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de