Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG] parameter Module - functions_source associative array not working
- X-seq: zsh-workers 43101
- From: Francisco de Zuviría Allende <franciscodezuviria@xxxxxxxxx>
- To: dana <dana@xxxxxxx>
- Subject: Re: [BUG] parameter Module - functions_source associative array not working
- Date: Wed, 27 Jun 2018 06:28:08 -0300
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=+/DJ6lOnCN/Qu05wR3ed8htoTRyE0qn6CzYJ0WMOvUs=; b=C8CPFK8cvPM3hT0JHdbUWP+gm4IWQWRQH7hKjigV8ICnriLxY+didB1VJDYqITOuzP pV8OioV1ZTylJRs/DXrtTV2pCB7lOObkLsndDoUDDCPMnZxea51sUHACFW6cSzQf78Ld zk3tU/jX0/E5G7N6rlkhWnw1aKHd8wL+KPfBkpiw8qqNbg6hGGeP2I/W9LkHljVby1B2 Lw74aZvV3QzkK9xI1WYHUH14E9tilCyb6UwX2kbXVFqVAmyaqOi6SIz6yE33b+839oTd J0D/hOCW7LA+LL6ddpcFqf+M51o18kvqNhOp3rcJiwxWZSOtwArtevxqiZZYmhpQprGq G06g==
- In-reply-to: <8C5DCD3D-0429-4AFF-BE29-1D0E416AE7D9@dana.is>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CA++-COx5fN=_+odJjfEkdBkfaWPKgtUGdESo5WvWVbz1fOXENQ@mail.gmail.com> <8C5DCD3D-0429-4AFF-BE29-1D0E416AE7D9@dana.is>
- Reply-to: franciscodezuviria@xxxxxxxxx
Thank you a lot dana,
Sometime next year (when I am not overworked and overassigned) I would
like to host some infrastructure for the zsh project (ticketing, C.I.,
stuff like that), so I might as well start getting some insight on the
dev process now. How does the patch you just submitted get integrated
in the mainline? Did you also make a pull request?
On Sun, Jun 17, 2018 at 4:33 PM, dana <dana@xxxxxxx> wrote:
> On 16 Jun 2018, at 22:12, Francisco de Zuviría Allende <franciscodezuviria@xxxxxxxxx> wrote:
>>Versions 5.3 and 5.5
>>
>>Can't get functions_source to work.
>
> AFAIK it wasn't introduced until 5.4, so that's probably expected in the former
> case.
>
> I can confirm that it behaves strangely in 5.4.2 and 5.5.1 — that seems to be
> because it's not marked for auto-loading. The included patch fixes it (along
> with dis_functions_source and usergroups); in the mean time you can kick it into
> existence by running `zmodload -F zsh/parameter +p:functions_source` (or just
> reloading the module entirely).
>
> dana
>
>
> diff --git a/Src/Modules/parameter.c b/Src/Modules/parameter.c
> index 10c47d214..783c36df3 100644
> --- a/Src/Modules/parameter.c
> +++ b/Src/Modules/parameter.c
> @@ -2190,6 +2190,7 @@ static const struct gsu_array dirs_gsu =
> static const struct gsu_array historywords_gsu =
> { histwgetfn, arrsetfn, stdunsetfn };
>
> +/* Make sure to update autofeatures in parameter.mdd if necessary */
> static struct paramdef partab[] = {
> SPECIALPMDEF("aliases", 0,
> &pmraliases_gsu, getpmralias, scanpmraliases),
> diff --git a/Src/Modules/parameter.mdd b/Src/Modules/parameter.mdd
> index a91a5dc09..f71c17a72 100644
> --- a/Src/Modules/parameter.mdd
> +++ b/Src/Modules/parameter.mdd
> @@ -2,6 +2,6 @@ name=zsh/parameter
> link=either
> load=yes
>
> -autofeatures="p:parameters p:commands p:functions p:dis_functions p:funcfiletrace p:funcsourcetrace p:funcstack p:functrace p:builtins p:dis_builtins p:reswords p:dis_reswords p:patchars p:dis_patchars p:options p:modules p:dirstack p:history p:historywords p:jobtexts p:jobdirs p:jobstates p:nameddirs p:userdirs p:aliases p:dis_aliases p:galiases p:dis_galiases p:saliases p:dis_saliases"
> +autofeatures="p:parameters p:commands p:functions p:dis_functions p:functions_source p:dis_functions_source p:funcfiletrace p:funcsourcetrace p:funcstack p:functrace p:builtins p:dis_builtins p:reswords p:dis_reswords p:patchars p:dis_patchars p:options p:modules p:dirstack p:history p:historywords p:jobtexts p:jobdirs p:jobstates p:nameddirs p:userdirs p:usergroups p:aliases p:dis_aliases p:galiases p:dis_galiases p:saliases p:dis_saliases"
>
> objects="parameter.o"
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author