Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
New "make" completion
- X-seq: zsh-workers 27424
- From: Michael Hwang <nomex45@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: New "make" completion
- Date: Sun, 22 Nov 2009 18:39:27 -0800 (PST)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1258943967; bh=3gxsi8mqQctgLRd+NzYOXSA1jbeeXx/bJ0Oeue7brFY=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=WisfQFTgRZqaSO4j24ymF6oiXJLRr6y4LIoZp1Pwrc3XqGHeK5Semzvyg2aZSd7C3P/bIG9VxmvZiMwx7SI75qVnjE2nqHvFTIW0/eASarOFrJdTwmLqxff6bonvzMQVNzc23P9sImDIUL4LuJfL7pzwSy4okuxwPfH73Iia37o=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=4l9fabOZTL3Kzn4rMFnT89th/IQAdlz14sn5geDcyLwuYnb+ucao2lQ+VUNw+LFNF8ej6goCyorkfU2ZgCFRqLO9dhCC6pgYKIXZKr/9D1KSfdXR/y8swQM4MTYBkAmypQcqiv5RGKKKlLWmRXR/kSKNolofdgMkiazzl6BdldU=;
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hello all,
I spent 3 frustrating days on a computer science lab,
all due to the fact that I mistyped a variable name. Instead of running
"make SIM=../seq/ssim", I was running "make SEQ=../seq/ssim". Of
course, make didn't complain, so I thought my coding was bad. Turns out
that wasn't the case.
To keep myself (or anyone else) from
making such a mistake again, I've added the ability to complete
variable names for make. They are presented alongside possible targets.
The file is entirely re-written, so I've provided it instead of a diff.
The completion should perform exactly the same as the old completion,
except possibly when including other makefiles.
A TODO: Variable completion should be sensitive to targets given to make. That
is, variables should only be presented if they are used in given
targets and their dependencies.
Michael Hwang
Messages sorted by:
Reverse Date,
Date,
Thread,
Author