From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Newsgroups: gmane.emacs.help Subject: Re: How can I reload etags project path Date: Mon, 03 Nov 2008 17:03:44 +0100 Organization: Sebastien Vauban Message-ID: <8763n4iyov.fsf@mundaneum.com> References: <1ffcb4ce-95bf-4ccd-8fb8-63037e000d74@f37g2000pri.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1225730701 11241 80.91.229.12 (3 Nov 2008 16:45:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Nov 2008 16:45:01 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Mon Nov 03 17:46:03 2008 connect(): Connection refused 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 1Kx2Yv-0000bY-GH for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Nov 2008 17:45:57 +0100 Original-Received: from localhost ([127.0.0.1]:50129 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kx2Xo-0007V7-LP for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Nov 2008 11:44:48 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!feeder.erje.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!feed1.news.be.easynet.net!reader0.news.be.easynet.net!not-for-mail Original-Newsgroups: gnu.emacs.help X-Www-site: Under construction... X-Archive: encrypt User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:pWS4UkbETiRonFjZI5dluOzqtno= Original-Lines: 26 Original-NNTP-Posting-Date: 03 Nov 2008 16:03:45 GMT Original-NNTP-Posting-Host: 81.188.7.152 Original-X-Trace: 1225728225 reader0.news.be.easynet.net 1613 [::ffff:81.188.7.152]:28521 Original-X-Complaints-To: abuse-sq41lydJq48WI+UwmH2aBQ@public.gmane.org Original-Xref: news.stanford.edu gnu.emacs.help:164050 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.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-mXXj517/zsQ@public.gmane.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:59392 Archived-At: Hi yinglcs, > In my .emacs I have defined the etags project path like this: > > (defvar etags-project-path "/media/storage/working" "*Base path for > your project") > > (require 'etags) > (setq tags-file-name (expand-file-name "TAGS" etags-project-path)) > > After i open emacs, how can i point to a different project > path,let's say i have multiple project etag files, how can i > switch dynamically? Use: (require 'sure-tags) which will make sure that tags file exists (and builds it if it doesn't), allowing you to first rebuild the tags file or specify a new one when the search fails. Seb --=20 S=C3=A9bastien=C2=A0Vauban