zsh-workers
 help / color / mirror / code / Atom feed
From: Michael Hwang <nomex45@yahoo.com>
To: zsh-workers@zsh.org
Subject: New "make" completion
Date: Sun, 22 Nov 2009 18:39:27 -0800 (PST)	[thread overview]
Message-ID: <468329.49454.qm@web37306.mail.mud.yahoo.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 861 bytes --]

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


      

             reply	other threads:[~2009-11-23  2:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-23  2:39 Michael Hwang [this message]
2009-11-23 11:44 ` Ingmar Vanhassel
2009-11-23 21:56   ` Michael Hwang
2009-11-23 22:59     ` Simon Ruderich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=468329.49454.qm@web37306.mail.mud.yahoo.com \
    --to=nomex45@yahoo.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).