From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: gebser@speakeasy.net Newsgroups: gmane.emacs.help Subject: Re: define Info's "dir"? Date: Sat, 1 May 2004 23:11:54 -0400 (EDT) Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <87ekq4xz38.fsf@emptyhost.emptydomain.de> Reply-To: gebser@speakeasy.net NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1083467876 2557 80.91.224.253 (2 May 2004 03:17:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 2 May 2004 03:17:56 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 02 05:17:47 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 1BK7UB-0004bE-00 for ; Sun, 02 May 2004 05:17:47 +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 1BK7TQ-0004Kc-51 for geh-help-gnu-emacs@m.gmane.org; Sat, 01 May 2004 23:17:00 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BK7So-00044z-0W for help-gnu-emacs@gnu.org; Sat, 01 May 2004 23:16:22 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BK7S0-0003E4-R6 for help-gnu-emacs@gnu.org; Sat, 01 May 2004 23:16:04 -0400 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.30) id 1BK7Rz-0002at-MV for help-gnu-emacs@gnu.org; Sat, 01 May 2004 23:15:31 -0400 Original-Received: from [216.254.0.205] (helo=mail5.speakeasy.net) by mx20.gnu.org with esmtp (Exim 4.30) id 1BK7OZ-0006mc-01 for help-gnu-emacs@gnu.org; Sat, 01 May 2004 23:11:59 -0400 Original-Received: (qmail 1238 invoked from network); 2 May 2004 03:11:57 -0000 Original-Received: from dsl093-011-017.cle1.dsl.speakeasy.net (HELO heidegger.mousecar.net) ([66.93.11.17]) (envelope-sender ) by mail5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 2 May 2004 03:11:57 -0000 Original-To: GNU Emacs List In-Reply-To: <87ekq4xz38.fsf@emptyhost.emptydomain.de> 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:18190 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18190 That looks like it'll work. Thanks. At 11:42 (UTC+0200) on Sat, 1 May 2004 Kai Grossjohann said: = gebser@speakeasy.net writes: = = > 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? = = (setenv "econ" "/home/ken/projects/writings/politics/econ") = = Then C-x C-f $econ/foo RET. = = You can also always use $x and redefine it depending on your work = context. = = Kai = = _______________________________________________ = Help-gnu-emacs mailing list = Help-gnu-emacs@gnu.org = http://mail.gnu.org/mailman/listinfo/help-gnu-emacs =