From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rustom Newsgroups: gmane.emacs.help Subject: Re: Working with different projects in Emacs Date: Thu, 9 Apr 2009 06:44:16 -0700 (PDT) Organization: http://groups.google.com Message-ID: <4a1275dc-885c-479f-9b3a-fd5b8c881de4@r15g2000vbi.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1239288746 21721 80.91.229.12 (9 Apr 2009 14:52:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Apr 2009 14:52:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 09 16:53:45 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LrvdA-0004pn-Fx for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Apr 2009 16:53:28 +0200 Original-Received: from localhost ([127.0.0.1]:51336 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lrvbl-0004i7-T5 for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Apr 2009 10:52:01 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!postnews.google.com!r15g2000vbi.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 68 Original-NNTP-Posting-Host: 59.95.28.237 Original-X-Trace: posting.google.com 1239284656 18158 127.0.0.1 (9 Apr 2009 13:44:16 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 9 Apr 2009 13:44:16 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r15g2000vbi.googlegroups.com; posting-host=59.95.28.237; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008052912 Firefox/3.0,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:168327 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63608 Archived-At: On Apr 8, 11:56=A0pm, Vagn Johansen wrote: > Damian writes: > > Hello, > > > I work in several projects. Every project has a list of files > > associated to it (for instance several source code files or latex > > files). I would like that every time I start working in one of these > > projects, all the files could be found quickly without specifying the > > whole path. > > > The filesets almost serve this purpose, but the problem is that they > > open all the files in the fileset, and I just want to be able to > > auto-complete its filename (when I open a file using C-x C-f). > > > File cache is not an option, since I need several "caches" for each > > project and I don't want to load them all when emacs starts. > > > And I'm unable to understand Icicles documentation (and Icicles is > > more powerful than the tool I'm looking for). > > > Until now, I was able to find a solution for every problem (in the > > good sense) in emacs, but for this one I cannot find one. > > > What can I do? > > You could try my vps package > > =A0http://ozymandias.dk/emacs/emacs.html#vps > > It caches both the filelists and the directory list. The latter is > needed for projects that use directory recursion to avoid excessive > directory traversals. The caches are rebuilt when they become to old. > > Use M-i l (vps-list-dirs) to get a buffer with all the filenames in > the current project. You can then use search, C-s, ,, , RET RET to > search for and open a file. > > For fast and convenient file selection of a file in the current > project you could use anything.el combined with the vps source show > below: > > =A0(defvar anything-source-vps-files > =A0 '((name . "Project Files") > =A0 =A0 =A0(candidates . (lambda () > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(when vps-project-name > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(if (not (file-exists-p (v= ps-filelist-filename))) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(error "Run M-x vps-wr= ite-filelist RET manually")) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(start-process "anything-s= ource-vps-files" nil > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0"grep" "-i" (replace-r= egexp-in-string "^-" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0"." =A0anything-pattern) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(vps-filelist-filename= ))))) > =A0 =A0 =A0(type . file) > =A0 =A0 =A0(requires-pattern . 4)) > =A0 "Source for retrieving files (cached) vps filelist.") > > -- > Vagn Johansen Tried it. Well getting a basic list of directories is working. Nice! tags is not working vps-make-tags gives me etags unknown option --members