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: Sun, 12 Apr 2009 01:56:09 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <4a1275dc-885c-479f-9b3a-fd5b8c881de4@r15g2000vbi.googlegroups.com> <65a6e1e7-3196-4293-9528-048d73d15e3d@n7g2000prc.googlegroups.com> <2c02fdb3-af4c-441a-aaa1-7518d9ca955b@v1g2000prd.googlegroups.com> 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 1239529268 25437 80.91.229.12 (12 Apr 2009 09:41:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Apr 2009 09:41:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 12 11:42:27 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 1LswCl-0003X0-Pl for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Apr 2009 11:42:24 +0200 Original-Received: from localhost ([127.0.0.1]:34089 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LswBN-0003fh-0x for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Apr 2009 05:40:57 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!k19g2000prh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 84 Original-NNTP-Posting-Host: 59.95.35.177 Original-X-Trace: posting.google.com 1239526569 32165 127.0.0.1 (12 Apr 2009 08:56:09 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 12 Apr 2009 08:56:09 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k19g2000prh.googlegroups.com; posting-host=59.95.35.177; 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:168408 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:63687 Archived-At: On Apr 11, 11:30=A0pm, Vagn Johansen wrote: > rustom writes: > > [Sorry for earlier post without content] > > If I have the line > > (setq vps-project-dir "~/.emacs.d/.emacs_vps") > > You don't really have to change the vps-project-dir. It just the > location of the cached filelists, tags files, etc. > > But it should be OK to change it. > > > in my vps setup > > I get File /home/siva/.emacs.d/.emacs_vps/Org.tags is not a valid tags > > table > > when I try to do vps-change-project > > > It seems to work if vps-project-dir is not set > > Whenever I see "not a valid tags table" it is because I have generated > a TAGS file in a format that emacs does not understand. > > So maybe you managed to build TAGS files with Exhuberant tags(*) > (without the -e option) when vps-project-dir had the first value, > changed vps-project-dir and then you did something that generates > proper emacs tags files. > > If you the delete =A0~/.emacs.d/.emacs_vps and set vps-project-dir to > ~/.emacs.d/.emacs_vps again it would probably work. But if it works > there is not much gained in changing anything. > > (*)http://ctags.sourceforge.net/ctags.html > > -- > Vagn Johansen I did rm -rf ~/.emacs.d/.emacs_vps Made sure that my init.el contains (setq vps-project-dir "~/.emacs.d/.emacs_vps") (require 'vps) Restarted emacs M-x vps-change-project Org ;; org is one project Ive set gives ~/.emacs.d/.emacs_vps/Org.tags is not a vaild tags table [Looking inside ~/.emacs.d/.emacs_vps shows an Org.txt but no Org.tags] Now I comment out the line (setq vps-project-dir "~/.emacs.d/.emacs_vps") Close emacs Remove directory ~/.emacs.d/.emacs_vps Make sure theres no directory ~/.emacs_vps Restart emacs emacs asks me Create necessary directory ~/.emacs_vps I say yes Then M-x vps-change-project No problem M-i l shows me my files (in that project) Note that now .emacs_vps shows both Org.txt and Org.tags My conclusion is that the tags making part of vps is having ~/.emacs_vps hardcoded though the rest (Project.txt) is picked up from vps-project-dir Now to verify that: Keep both dirs, remove all their contents Restart emacs As expected vps-change-project gives ~/.emacs.d/.emacs/vps/Org.tags not a valid tags table Confirm that ~/.emacs.d/.emacs_vps contains an Org.txt file but no Org.tags file (And ~/.emacs_vps is empty)