Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: separate watch/log functionality out into a module



On Sun, Nov 28, 2021 at 12:56 PM Oliver Kiddle <opk@xxxxxxx> 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.




Messages sorted by: Reverse Date, Date, Thread, Author