Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Special _tags:comptags:67: no tags registered
- X-seq: zsh-users 21982
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Special _tags:comptags:67: no tags registered
- Date: Wed, 28 Sep 2016 09:05:17 +0200
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=KmGVa2BYhGkXmnFlrEhMFVs6DBf5B4Bbf2HXrCaQEcw=; b=HwoxYAkko2BB3uEceTJLF1yqHlZeLulYjiYPTQPgWMNDOsNT9be43a4SI0z/y8n5PL zfyMeExCrYZFSAho9k10G9tq1nGuLhl2rlA7eUzLECBsVAYf4JEAdV8OyS0DE93gTWNY 2bswQ4JMhYsqs29MbyI4bDZx96tGHU34jkRB/l6Bp3GQKpfYxaSEe/IskGaCy5EWz5x6 U4OSb1NQB55OnkD/pwNvzr9m8n/ooUfC4okp0xggPpR2iM/rTeFos2SsrvJuU8UX/OEN i5vvfTmqbs5VWcH9zjCMLHn+p6qHSlMzI7MmNBgf9H9d6TDeZHXoyPikwWNq7uj8E1eo CFgQ==
- In-reply-to: <160927233915.ZM29612@torch.brasslantern.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVDw8JkY-f+4kUcPzj8Wg0EoEMOJsDmy9HVYnWFzYNu+9w@mail.gmail.com> <160927233915.ZM29612@torch.brasslantern.com>
On 28 September 2016 at 08:39, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Sep 27, 6:40pm, Sebastian Gniazdowski wrote:
> }
> } I've tried debug-printing whole _tags to see differences in path the
> } execution has taken or in parameters, and it was rather the same,
> } couldn't spot any differences. I wonder what is the origin of such
> } error message?
>
> Remember that "declare -f" for autoloaded functions will dump out a
> definition of the form "_name() { builtin autoload -X }". There are
> subtle differences between "real" autoloading and autoload -X. In
> this case, the internals of "comptags" use the depth of the function
> call stack to keep track of which tags are active at which nested
> loop, but the addition of the "autoload -X" wrapper changes the
> call depth.
Thank you very much for the answer. I'm implementing a mechanism to
take other session's state. Via Zconvey, the flocked IDs each sessions
has, I will send:
zc-take-state -n vim2
and obtain whole state of such session. So, a=1, then echo $a in other
session. This will be done via zsnapshot plugin:
https://github.com/psprint/zsnapshot/blob/master/__zsnapshot
There I iterate over $parameters, carefully establish each variable's
type, recreate the variables with full typeset call. Saving and
restoring functions is done via declare -f and it has flaws, thanks
for the explanation it is needed to me to do this correctly! It seems
that I'll be iterating over $functions, parsing first lines to detect
autoload-stubs, then recreate the stubs via autoload call not via
source of function's body. Fair enough. Then comptags should have no
objections? There is apparently other minor flaw of not restoring
emulations that stick to autoload functions, set via the call you once
showed:
emulate zsh -c 'autoload compinit'
? Probably no workaround?
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author