autoload +X xxx zero reference count

Mikael Magnusson <[email protected]>
Newsgroups gmane.comp.shells.zsh.devel
Message-ID <CAHYJk3T-dvxQ7JPfq7GRyQf_YWhbpuH7vw52kZ33C0Ltb5X4LA@mail.gmail.com>
Hi,

I have an autoreload function that does
autoreload () {
  unfunction - $@
  autoload -Uz +X - $@
}

and as it turns out this doesn't work on functions that were
autoloaded with an absolute path outside of fpath. That's beside the
point though, when I tried running my autoreloaded function, I got
this error (which you simply get for any function that doesn't exist
in fpath):
 exec.c:6054: function definition xxx has zero reference count

I bisected the error to 8f5fe841a63fecdab4416578653549689f2c592f but
that's simply the commit that adds the error message. I haven't
noticed any problems other than the error message itself though, but I
figured I'd mention it.

-- 
Mikael Magnusson
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.