From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.help Subject: Re: define Info's "dir"? Date: Wed, 28 Apr 2004 21:03:15 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <7494-Wed28Apr2004210315+0300-eliz@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1083175933 12685 80.91.224.253 (28 Apr 2004 18:12:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Apr 2004 18:12:13 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 28 20:12:02 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 1BItXN-00079d-00 for ; Wed, 28 Apr 2004 20:12:01 +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 1BItRz-0000zP-E6 for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Apr 2004 14:06:27 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BItQ2-0000L8-Bb for help-gnu-emacs@gnu.org; Wed, 28 Apr 2004 14:04:26 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BItPV-00007X-Nv for help-gnu-emacs@gnu.org; Wed, 28 Apr 2004 14:04:24 -0400 Original-Received: from [192.114.186.24] (helo=legolas.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BItPV-000071-C1 for help-gnu-emacs@gnu.org; Wed, 28 Apr 2004 14:03:53 -0400 Original-Received: from zaretski (pns03-208-152.inter.net.il [80.230.208.152]) by legolas.inter.net.il (MOS 3.4.5-GR) with ESMTP id BQZ15943; Wed, 28 Apr 2004 21:03:04 +0300 (IDT) Original-To: help-gnu-emacs@gnu.org X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: (gebser@speakeasy.net) 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:18086 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18086 > Date: Wed, 28 Apr 2004 08:35:59 -0400 (EDT) > From: gebser@speakeasy.net > > 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. Why don't you invoke Info directly on the manual you want to read (see the doc string of "C-h i" where it describes what happens if it is invoked with a prefix arg)? > 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? You could craft up something that modifies the value of Info-directory-list, but IIRC info.el consults this list only when it is first invoked. That is, the contents of the DIR node are computed only once in an Emacs session. So changing Info-directory-list after that will not help at all.