From: Bart Schaefer <schaefer@brasslantern.com>
To: Marlon Richert <marlon.richert@gmail.com>
Cc: zsh-workers@zsh.org
Subject: Re: [PATCH] Let _approximate work w/ possible compadd function
Date: Tue, 20 Jun 2023 20:49:47 -0700 [thread overview]
Message-ID: <CAH+w=7byXSFgoK0QSK9Z6okZqwB9=fcFXZCQi7T=YJDXpVsY2Q@mail.gmail.com> (raw)
In-Reply-To: <20230615142916.20616-1-marlon.richert@gmail.com>
On Thu, Jun 15, 2023 at 7:29 AM Marlon Richert <marlon.richert@gmail.com> wrote:
>
> +_shadow -s _approximate compadd
> +compadd() {
> + local ppre="$argv[(I)-p]"
> [...]
> +
> + compadd@_approximate "$_correct_expl[@]" "$@"
> +}
I'm concerned that this doesn't work in the event that _approximate is
called recursively. Maybe that never happens? If it did, "_shadow
-s" will not re-create compadd@_approximate, but _unshadow will remove
it, in each case leaving "compadd" pointing at the wrong earlier
shadow.
next prev parent reply other threads:[~2023-06-21 3:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-27 13:12 Marlon Richert
2023-05-27 16:11 ` Bart Schaefer
2023-06-15 14:29 ` Marlon Richert
2023-06-21 3:28 ` Bart Schaefer
2023-07-04 7:06 ` Marlon Richert
2023-06-21 3:49 ` Bart Schaefer [this message]
2023-05-27 17:47 ` Bart Schaefer
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='CAH+w=7byXSFgoK0QSK9Z6okZqwB9=fcFXZCQi7T=YJDXpVsY2Q@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=marlon.richert@gmail.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).