From: Adam Spiers <adam@spiers.net>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: completion caching layer
Date: Wed, 2 Aug 2000 00:37:07 +0100 [thread overview]
Message-ID: <20000802003707.A12849@thelonious.new.ox.ac.uk> (raw)
In-Reply-To: <1000801170332.ZM30820@candle.brasslantern.com>; from schaefer@candle.brasslantern.com on Tue, Aug 01, 2000 at 05:03:32PM +0000
Bart Schaefer (schaefer@candle.brasslantern.com) wrote:
> On Aug 1, 5:31pm, Adam Spiers wrote:
> } Subject: PATCH: completion caching layer
> }
> } +findex(_retrieve_cache)
> } +item(tt(_retrieve_cache) var(cache_identifier))(
> } +This function retrieves completion information from the file given by
> } +var(cache_identifier), stored in a directory specified by the
> } +tt(cache-path) style (defaults to tt(~/.zsh/cache)).
>
> I'd prefer that the cache location be relative to $ZDOTDIR rather than
> relative to $HOME, and that it not be two levels removed, e.g. use
> $ZDODTIR/.zcompcache/ rather than ~/.zsh/cache/. That'd be consistent
> with e.g. .zcompdump.
Sure, change applied, so will appear in the commit. Makes no
difference to me; I already had
zstyle ':completion::complete:*' cache-path ~/.zsh/cache/$HOST
in my .zshrc because my home directory is mounted via NFS so I need a
different cache path for each machine (for perldoc and rpm at least).
> } + # grr, doesn't work, so we have to roll our own
> } +# typeset "$@[2,-1]" > "$_cache_dir/$_cache_ident"
>
> Isn't
>
> typeset +g "$@[2,-1]" > "$_cache_dir/$_cache_ident"
Ah, +g! I was looking for that.
> what you want? Or maybe
>
> while (($# > 1)); do
> shift
> ${(P)=1:+typeset $1}
> done > "$_cache_dir/$_cache_ident"
>
> would be more accurate?
Is that better than what you suggested via private mail?
next prev parent reply other threads:[~2000-08-01 23:38 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-07-27 8:00 Sven Wischnowsky
2000-08-01 16:31 ` Adam Spiers
2000-08-01 17:03 ` Bart Schaefer
2000-08-01 17:09 ` Bart Schaefer
2000-08-01 23:37 ` Adam Spiers [this message]
2000-08-02 3:53 ` Bart Schaefer
-- strict thread matches above, loose matches on Subject: below --
2000-08-04 6:59 Sven Wischnowsky
2000-08-03 7:11 Sven Wischnowsky
2000-08-02 14:13 Sven Wischnowsky
2000-08-02 15:01 ` Adam Spiers
2000-08-03 12:21 ` Adam Spiers
2000-08-02 9:36 Sven Wischnowsky
2000-08-02 13:35 ` Adam Spiers
2000-07-19 14:48 Sven Wischnowsky
2000-07-26 19:53 ` Adam Spiers
2000-07-17 14:38 Adam Spiers
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=20000802003707.A12849@thelonious.new.ox.ac.uk \
--to=adam@spiers.net \
--cc=zsh-workers@sunsite.auc.dk \
/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).