zsh-workers
 help / color / mirror / code / Atom feed
From: Felipe Contreras <felipe.contreras@gmail.com>
To: Jun T <takimoto-j@kba.biglobe.ne.jp>
Cc: zsh-workers@zsh.org
Subject: Re: [PATCH 0/3] completion: make: various improvements
Date: Thu, 4 Aug 2022 12:03:45 -0500	[thread overview]
Message-ID: <CAMP44s3vZmw-SVZ08-u2GUNoJ+sPdaxOU4Km8VqARW9OgpWX0Q@mail.gmail.com> (raw)
In-Reply-To: <1D49B7B5-5B13-4700-93EF-6818676BF846@kba.biglobe.ne.jp>

On Thu, Aug 4, 2022 at 4:33 AM Jun T <takimoto-j@kba.biglobe.ne.jp> wrote:

> > 2022/08/03 23:36, Felipe Contreras <felipe.contreras@gmail.com> wrote:
> >
> > On Wed, Aug 3, 2022 at 3:54 AM Jun T <takimoto-j@kba.biglobe.ne.jp> wrote:
> >>
> >> If 'call-command' style is set to false, then these targets are not
> >> offered (as a possible target).
> >
> > But if you set it to true they are.
> >
> > We are talking about the *current code*. The current code already has
> > this behavior.
>
> # I was thinking we were talking about how we can improve the
> # current code.

Code can be improved in any number of ways. One way is to make small
incremental changes that minimize the potential for regressions in
logically independent patches.

Doing all the improvements you can make in one go doesn't minimize the
potential for regressions.

> Without your patch, if call-command is on, 'make <TAB>' at the top level
> of the zsh source tree gives, after a very long wait, huge number of
> possible targets (a few hundreds or more?), but most of them are not
> valid targets.
>
> With your patch it immediately gives about 60 candidates.
> (Most of them are valid, but they still include configure.ac.)
>
> So I thought (probably mistakenly) that part of the objectives of
> the patch was to offer only valid targets. But anyway, I think it is
> better to filter out invalid targets if it is easy to do so.

The objective of the patch is to improve the current situation to the
point where typing 'make <tab>' is actually usable.

Once this has been done in step 1, improving the list of targets can
be done in step 2.

There's no need to try to do two things at the same time, at least not
in the same patch.

> The patch below is basically [1/3]+[2/3], with a few additions:

> (2) Use make option -q instead of -s (as in your awk-version).

For the record, I use -q because that's what bash-completion uses: -npq.

I do not mind any of these changes, but I would have done them on top
of my changes. I would rebase my changes and include yours, but IIRC
you guys squash all the commits anyway.

Either way, I think anything is better than the current situation.

Cheers.

-- 
Felipe Contreras


      reply	other threads:[~2022-08-04 17:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-30  1:03 Felipe Contreras
2022-07-30  1:03 ` [PATCH 1/3] completion: make: don't build everything Felipe Contreras
2022-07-30  1:03 ` [PATCH 2/3] completion: make: add a simpler parser Felipe Contreras
2022-07-30  1:03 ` [PATCH 3/3] completion: make: fix whitespaces Felipe Contreras
2022-08-04  8:50   ` Jun T
2022-08-04 15:57     ` Felipe Contreras
2022-08-02 10:42 ` [PATCH 0/3] completion: make: various improvements Jun T
2022-08-02 23:02   ` Felipe Contreras
2022-08-03  8:48     ` Jun T
2022-08-03 14:36       ` Felipe Contreras
2022-08-04  9:33         ` Jun T
2022-08-04 17:03           ` Felipe Contreras [this message]

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=CAMP44s3vZmw-SVZ08-u2GUNoJ+sPdaxOU4Km8VqARW9OgpWX0Q@mail.gmail.com \
    --to=felipe.contreras@gmail.com \
    --cc=takimoto-j@kba.biglobe.ne.jp \
    --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).