From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: define Info's "dir"? Date: Wed, 28 Apr 2004 09:23:25 -0600 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <408FCC6D.30908@yahoo.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1083166740 13328 80.91.224.253 (28 Apr 2004 15:39:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Apr 2004 15:39:00 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 28 17:38:34 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BIr8r-0002bn-00 for ; Wed, 28 Apr 2004 17:38:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BIr1n-0001ii-Ad for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Apr 2004 11:31:15 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: 170.207.51.80 Original-X-Trace: news.uni-berlin.de 1083165781 13586227 I 170.207.51.80 ([82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us Original-Xref: shelby.stanford.edu gnu.emacs.help:122792 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:18079 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18079 gebser@speakeasy.net wrote: > I'm not the original poster, but I'd like to be able to set the default > directory interactively and change it from time to time. The motivation > is that I sometimes work on a project whose (multiple) files all reside, > or will reside, in a particular directory (or subdirs of it. As a > fictional example, suppose I'm working on economics today. Throughout > the day I create several files which I want to have in econ/national/, > econ/state/, econ/local/, and econ/international. In this case I'd want > the default directory to be /home/ken/projects/writings/politics/econ/ > but wouldn't want to have to type that in every time I visit a file. > I'm aware of "M-x cd" but this sets "default-directory" only for that > buffer. I'd like a function (defun in emacspeak, yes?) which is global, > i.e., sets the default-directory no matter which buffer I'm currently > visiting. Is there such a nicety? Why don't you just visit files from a Dired buffer visiting that directory? C-x d ~/projects/writings/politics/econ -- Kevin Rodgers