unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Mathias Dahl" <mathias.dahl@gmail.com>
To: "Ted Zlatanov" <tzz@lifelogs.com>
Cc: pbreton@cs.umb.edu, emacs-devel@gnu.org
Subject: Re: filecache.el questions
Date: Thu, 2 Oct 2008 13:36:36 +0200	[thread overview]
Message-ID: <7dbe73ed0810020436t78a7a3e4jf5526a79b24b37d@mail.gmail.com> (raw)
In-Reply-To: <864p3w457n.fsf@lifelogs.com>

> in using filecache.el I found two issues I have for now addressed on my
> own:
>
> 1) the file-cache-alist is never saved.  This is a problem with large
> file sets (incidentally, it would be nice if Emacs had a native way of
> storing large data sets in an external database, as I mentioned).  I
> wrote a serialization function that essentially dumps with prin1 and
> princ and reads back with eval.  I also added a variable with the list
> of locations that should be scanned at startup.

I had the same problem when I learnt about this and I created a page
over at EmacsWiki about it:

http://www.emacswiki.org/cgi-bin/wiki/FileNameCache

Nowadays I use `anything' and the `anything-c-source-file-cache'
source instead of my old iswitchb hack. I even have a special command
when I want to use `anything' just to get files from the cache (the
cache is so large that I don't want it to be used for normal
invocations of `anything'):

(defun anything-file-cache ()
  (interactive)
  (let ((anything-sources
         (list anything-c-source-file-cache)))
    (anything)))

Enjoy!

/Mathias




  parent reply	other threads:[~2008-10-02 11:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-01 17:04 filecache.el questions Ted Zlatanov
2008-10-01 20:33 ` Ted Zlatanov
2008-10-02 11:36 ` Mathias Dahl [this message]
2008-10-02 17:29   ` Ted Zlatanov

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7dbe73ed0810020436t78a7a3e4jf5526a79b24b37d@mail.gmail.com \
    --to=mathias.dahl@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=pbreton@cs.umb.edu \
    --cc=tzz@lifelogs.com \
    /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.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).