zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Oliver Kiddle <opk@zsh.org>
Cc: Zsh workers <zsh-workers@zsh.org>
Subject: Re: PATCH: separate watch/log functionality out into a module
Date: Sun, 28 Nov 2021 20:31:37 -0800	[thread overview]
Message-ID: <CAH+w=7ay6zjkV1WjSF-PbGv75cSprxbw1+zeXowjuyh9cUEmng@mail.gmail.com> (raw)
In-Reply-To: <53896-1638132985.010266@cayz.fASO.ayna>

On Sun, Nov 28, 2021 at 12:56 PM Oliver Kiddle <opk@zsh.org> wrote:
>
> The paramdef structure and PM_ flags are stored in the module so we
> can't access them until the module is loaded. What we have to work with
> is what goes into Src/bltinmods.list.

Ah, of course.

> Rearranging the initialisation code to import the
> environment after setting up autoloadable parameters may be an option if
> it doesn't have other unwanted side-effects.

I don't think that's do-able.  It would only be possible for builtin
modules, and there's a chicken-and-egg problem with any environment
variable that a module declares as an autoloaded parameter; tied
arrays are just extra hairy.

> The following small patch avoids the error on startup which is better

Agree.


  reply	other threads:[~2021-11-29  4:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-29 22:15 Oliver Kiddle
2021-11-01  0:06 ` Oliver Kiddle
2021-11-01  3:11   ` Bart Schaefer
2021-11-06  0:17     ` Oliver Kiddle
2021-11-06 20:53       ` Bart Schaefer
2021-11-28 20:56         ` Oliver Kiddle
2021-11-29  4:31           ` Bart Schaefer [this message]
2021-11-09 10:27       ` Jun. T
2021-11-09 21:09         ` Daniel Shahaf
2021-11-11 11:06 ` Jun T
2021-11-11 17:08   ` Oliver Kiddle
2021-11-12  9:19     ` Jun T

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=7ay6zjkV1WjSF-PbGv75cSprxbw1+zeXowjuyh9cUEmng@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=opk@zsh.org \
    --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).