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:22:03 -0800 (PST) Organization: http://groups.google.com Message-ID: <80b3c3ca-18c5-43cc-855f-f83ff203d0b5@t39g2000prh.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 1233209089 19877 80.91.229.12 (29 Jan 2009 06:04:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Jan 2009 06:04:49 +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:06:00 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 1LSQ1j-0005z1-NK for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Jan 2009 07:05:49 +0100 Original-Received: from localhost ([127.0.0.1]:45427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LSQ0Q-00028c-KO for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Jan 2009 01:04:02 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!t39g2000prh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Original-NNTP-Posting-Host: 173.64.205.232 Original-X-Trace: posting.google.com 1233156123 28927 127.0.0.1 (28 Jan 2009 15:22:03 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 28 Jan 2009 15:22:03 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: t39g2000prh.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:166411 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:61744 Archived-At: On Jan 28, 1:57=A0am, Kevin Rodgers wrote: > How should `M-x grep' or `C-x C-f' know to start at /foo instead of > /foo/bar or /foo/bar/blah or /foo/bar/blah/doo (instead of / or > /foo/bar/flah/doo/woo)? > > I.e. what do you mean by "project"? I expect to have to do define that, I just want to do it in an automatic-ish way. For example, most of my "projects" (read: applications I work on) I keep inside of /a/PROJECT-NAME/src/, so it would be nice to set default-directory to /a/foo/src/ when I open /a/foo/src/bar/bash/woo/ hello/file, so I can simply run 'ack' or 'find-grep' or 'find-file' or whatever without having to type out a full path every time. Brett