zsh-workers
 help / color / mirror / code / Atom feed
From: Clint Adams <schizo@debian.org>
To: Vincent Lefevre <vincent@vinc17.org>, 455070@bugs.debian.org
Cc: zsh-workers@sunsite.dk
Subject: Re: Bug#455070: zsh: make completion: please add support for -include
Date: Sat, 8 Dec 2007 16:07:25 -0500	[thread overview]
Message-ID: <20071208210725.GA25946@scowler.net> (raw)
In-Reply-To: <20071208195817.GA26694@vin.lip.ens-lyon.fr>

On Sat, Dec 08, 2007 at 08:58:17PM +0100, Vincent Lefevre wrote:
> As shown below, "make" completion supports "include",
> but not "-include".
> 
> vin:~> head -99 Makefile*
> ==> Makefile <==
> test.b: test.a
>         touch $@
> 
> include Makefile-2
> 
> -include Makefile-3
> 
> ==> Makefile-2 <==
> test.c: test.b
>         touch $@
> 
> ==> Makefile-3 <==
> test.d: test.c
>         touch $@
> vin:~> make [TAB]
> Completing make target
> test.b  test.c

Could you give this completely-untested patch a try?

Index: Completion/Unix/Command/_make
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_make,v
retrieving revision 1.19
diff -u -r1.19 _make
--- Completion/Unix/Command/_make	10 Nov 2006 09:59:27 -0000	1.19
+++ Completion/Unix/Command/_make	8 Dec 2007 21:06:29 -0000
@@ -125,7 +125,7 @@
 _pick_variant -r is_gnu gnu=GNU unix -v -f
 
 if [[ $is_gnu = gnu ]]; then
-    incl=include
+    incl="(-|)include"
 else
     incl=.include
 fi


       reply	other threads:[~2007-12-08 21:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20071208195817.GA26694@vin.lip.ens-lyon.fr>
2007-12-08 21:07 ` Clint Adams [this message]
2007-12-09  1:12   ` Vincent Lefevre
2007-12-09  1:26     ` Vincent Lefevre
2007-12-09  1:36       ` Vincent Lefevre

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=20071208210725.GA25946@scowler.net \
    --to=schizo@debian.org \
    --cc=455070@bugs.debian.org \
    --cc=vincent@vinc17.org \
    --cc=zsh-workers@sunsite.dk \
    /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).