zsh-workers
 help / color / mirror / code / Atom feed
From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: zsh-workers@zsh.org
Subject: Zed obtains fresh text of function
Date: Sat, 3 Oct 2015 12:44:57 +0200	[thread overview]
Message-ID: <CAKc7PVCAoJaV0q5d65TyiL6NP16CZH=S=Mw2irZo_LOQEqi8jA@mail.gmail.com> (raw)

Hello,
creating simple function tst in */site-functions:

        echo "Hello tst abcd"

doing:
autoload zed
autoload tst
zed -f tst

And then repeating:
zed -f tst<Enter><Ctrl-C>

after each update of the tst file/function – will result in zed
loading the most recent version of the function, i.e. from disk.

Not sure if this is expected, however I face an obvious situation – I
update autoloaded function and run it, and it is the disk version that
is being run, not the one from first load – i.e. Zsh constantly
reloads the function. It's hard to report that as it's bunch of full
size functions (zntools). I report the similar zed behavior as it can
have the same source of problem. Tested on 5.0.2 and on current head
(64061e5).

Best regards,
Sebastian Gniazdowski


             reply	other threads:[~2015-10-03 10:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-03 10:44 Sebastian Gniazdowski [this message]
2015-10-03 19:18 ` Bart Schaefer

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='CAKc7PVCAoJaV0q5d65TyiL6NP16CZH=S=Mw2irZo_LOQEqi8jA@mail.gmail.com' \
    --to=sgniazdowski@gmail.com \
    --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).