From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Brett Hoerner Newsgroups: gmane.emacs.help Subject: Re: Convenient way to set "root of my project"? Date: Wed, 28 Jan 2009 07:25:46 -0800 (PST) Organization: http://groups.google.com Message-ID: <3e60bfb0-80b8-44df-a95d-1ad8b2271722@p36g2000prp.googlegroups.com> References: <43f72653-1412-4402-8074-ef5302ab07a0@35g2000pry.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 1233209190 20077 80.91.229.12 (29 Jan 2009 06:06:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Jan 2009 06:06:30 +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 Jan 29 07:07:44 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 1LSQ3x-0006QT-4s for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Jan 2009 07:07:41 +0100 Original-Received: from localhost ([127.0.0.1]:46444 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LSQ2f-0004lj-0r for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Jan 2009 01:06:21 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!p36g2000prp.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: 173.64.205.232 Original-X-Trace: posting.google.com 1233156346 29712 127.0.0.1 (28 Jan 2009 15:25:46 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 28 Jan 2009 15:25:46 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p36g2000prp.googlegroups.com; posting-host=173.64.205.232; posting-account=x6a_AgoAAADZQH4IvzMbavVwrCOoMjuv User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.5) Gecko/2008120121 Firefox/3.0.5,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:166413 X-Mailman-Approved-At: Thu, 29 Jan 2009 01:03:34 -0500 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:61746 Archived-At: On Jan 28, 1:11=A0am, "Drew Adams" wrote: > Sounds similar to the recent thread "build a macro that opens a directory= and > prompts for file name" - see that for suggestions. In particular, see Ema= cs > command `cd' and variable `default-directory'. Thanks! I had used 'cd' by hand in the past, but 'default-directory' looks like what I want. I'm very new to all of this, I just need to find a way now to hook the opening of a file, detect if it matches a path like '/a/NAME/src/.*' and set the default directory of that buffer to '/a/NAME/src/' Brett