zsh-workers
 help / color / mirror / code / Atom feed
From: "Francisco de Zuviría Allende" <franciscodezuviria@gmail.com>
To: dana <dana@dana.is>
Cc: zsh-workers@zsh.org
Subject: Re: [BUG] parameter Module - functions_source associative array not working
Date: Wed, 27 Jun 2018 06:28:08 -0300	[thread overview]
Message-ID: <CA++-COyVHEE4ocw7zzEsQVhg2avxgrDctBJJAceNhF3jr=e3BQ@mail.gmail.com> (raw)
In-Reply-To: <8C5DCD3D-0429-4AFF-BE29-1D0E416AE7D9@dana.is>

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@dana.is> wrote:
> On 16 Jun 2018, at 22:12, Francisco de Zuviría Allende <franciscodezuviria@gmail.com> 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"
>


  reply	other threads:[~2018-06-27  9:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-17  3:12 Francisco de Zuviría Allende
2018-06-17 19:33 ` dana
2018-06-27  9:28   ` Francisco de Zuviría Allende [this message]
2018-06-27 17:08     ` dana
2018-06-27 18:16       ` Francisco de Zuviría Allende

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='CA++-COyVHEE4ocw7zzEsQVhg2avxgrDctBJJAceNhF3jr=e3BQ@mail.gmail.com' \
    --to=franciscodezuviria@gmail.com \
    --cc=dana@dana.is \
    --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).