* setting up filecache and ido
@ 2008-11-03 7:12 yinglcs
2008-11-03 23:25 ` Xavier Maillard
0 siblings, 1 reply; 2+ messages in thread
From: yinglcs @ 2008-11-03 7:12 UTC (permalink / raw)
To: help-gnu-emacs
Hi,
I am trying to following this:
http://sachachua.com/wp/2008/07/27/eclipse-to-emacs-navigating-your-source-tree/#comment-103149
to setup my emacs with etag.
But when I include the following in my emacs.
emacs goes up to 100% cpu for > 5 minutes. Can you please tell me how
can I fix my problem?
Thank you.
(require 'filecache)
(require 'ido)
(defun file-cache-ido-find-file (file)
"Using ido, interactively open file from file cache'.
First select a file, matched using ido-switch-buffer against the
contents
in `file-cache-alist'. If the file exist in more than one
directory, select directory. Lastly the file is opened."
(interactive (list (file-cache-ido-read "File: "
(mapcar
(lambda (x)
(car x))
file-cache-alist))))
(let* ((record (assoc file file-cache-alist)))
(find-file
(expand-file-name
file
(if (= (length record) 2)
(car (cdr record))
(file-cache-ido-read
(format "Find %s in dir: " file) (cdr record)))))))
(defun file-cache-ido-read (prompt choices)
(let ((ido-make-buffer-list-hook
(lambda ()
(setq ido-temp-list choices))))
(ido-read-buffer prompt)))
(ido-mode t)
;; Change this to filter out your version control files
(add-to-list 'file-cache-filter-regexps "\\.svn-base$")
(if drupal-project-path
(file-cache-add-directory-using-find drupal-project-path))
(global-set-key (kbd "ESC ESC f") 'file-cache-ido-find-file)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: setting up filecache and ido
2008-11-03 7:12 setting up filecache and ido yinglcs
@ 2008-11-03 23:25 ` Xavier Maillard
0 siblings, 0 replies; 2+ messages in thread
From: Xavier Maillard @ 2008-11-03 23:25 UTC (permalink / raw)
To: yinglcs@gmail.com; +Cc: help-gnu-emacs
Hi,
I am trying to following this:
http://sachachua.com/wp/2008/07/27/eclipse-to-emacs-navigating-your-source-tree/#comment-103149
to setup my emacs with etag.
But when I include the following in my emacs.
emacs goes up to 100% cpu for > 5 minutes. Can you please tell me how
can I fix my problem?
Caching a very big directory can take time. Did you define the
base directory ? Do you use te find or locate command to cache
the directory ?
Xavier
--
http://www.gnu.org
http://www.april.org
http://www.lolica.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-03 23:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-03 7:12 setting up filecache and ido yinglcs
2008-11-03 23:25 ` Xavier Maillard
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.