From: gebser@speakeasy.net
Subject: Re: define Info's "dir"?
Date: Thu, 29 Apr 2004 11:35:53 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.44.0404291122010.7405-100000@localhost.localdomain> (raw)
In-Reply-To: <7494-Wed28Apr2004210315+0300-eliz@gnu.org>
The solution I was looking for has nothing to do with Info.
When I do "C-x f" to visit a file, I am prompted to enter the name of
the file. In the prompt (in the minibuffer) is the default-directory
already specified for me. This default-directory, however, is the one
for the current buffer. Instead, I would like a command which overrides
the default-directory for the current buffer when I do "C-x f" to visit
a file,
To explain the same thing another way.... When I do "M-x cd" I'm
prompted for the default-directory. But this sets this variable for the
current buffer only. I would like to do, say "M-x gcd", and enter the
name of a directory which would set, say, global-default-directory which
would persist for the entire emacs sesssion or until I change it to
something else. Then, no matter what is the current buffer's
default-directory, if I do "C-x f" to visit a file, the prompt will
specify the global-default-directory.
So you see, it has nothing to do with Info.
At 21:03 (UTC+0200) on Wed, 28 Apr 2004 Eli Zaretskii said:
= > 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.
=
=
= _______________________________________________
= Help-gnu-emacs mailing list
= Help-gnu-emacs@gnu.org
= http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
=
next prev parent reply other threads:[~2004-04-29 15:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-28 6:44 define Info's "dir"? Mike Ballard
2004-04-28 11:22 ` Eli Zaretskii
2004-04-28 12:35 ` gebser
2004-04-28 19:03 ` Eli Zaretskii
2004-04-29 15:35 ` gebser [this message]
[not found] ` <mailman.2124.1083147692.1061.help-gnu-emacs@gnu.org>
2004-04-29 5:16 ` Mike Ballard
2004-04-29 19:12 ` Eli Zaretskii
[not found] ` <mailman.2480.1083262409.1061.help-gnu-emacs@gnu.org>
2004-04-30 4:07 ` Mike Ballard
[not found] <mailman.2160.1083158847.1061.help-gnu-emacs@gnu.org>
2004-04-28 15:23 ` Kevin Rodgers
2004-05-01 9:42 ` Kai Grossjohann
2004-05-02 3:11 ` gebser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.44.0404291122010.7405-100000@localhost.localdomain \
--to=gebser@speakeasy.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).