From: Peter Dyballa <Peter_Dyballa@web.de>
To: Markus Heller <hellerm2@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Emacs 22.3 ignores setq default-directory
Date: Tue, 30 Jun 2009 00:48:47 +0200 [thread overview]
Message-ID: <B12C3D6B-86C6-4A9E-83EB-E7CA969F663F@web.de> (raw)
In-Reply-To: <27c152c00906291454j72323be9u702ee8c81a02f85@mail.gmail.com>
Am 29.06.2009 um 23:54 schrieb Markus Heller:
> I've just reduced my _emacs to only one line:
>
> (setq default-directory "h:/")
>
> so including the slash at the end. I guess I do not set/read CDPATH,
> and yet C-x C-f doesn;t bring me to h:/.
OK, what's left, is that this variable is buffer-local. There exists
a global value (you've set it), and any buffer you create after your
init file has been read can have a default-directory value derived
from HOME or the working directory from which GNU Emacs launched. And
this local value overrides the global one (therefore it's possible
that in Bavaria you find so many folks that can't speak German, only
Bavarian).
My recommendation: create a batch file which first changes working
directory to H:\ and then launch the real GNU Emacs executable from
within this batch file and working directory! Then it's very likely
that the buffers with have set H:\ as default-directory.
--
Greetings
Pete
When in doubt, use brute force.
– Ken Thompson
next prev parent reply other threads:[~2009-06-29 22:48 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-25 18:47 Emacs 22.3 ignores setq default-directory Markus Heller
2009-06-25 21:03 ` TomSW
2009-06-25 21:39 ` Markus Heller
2009-07-15 12:08 ` David Combs
2009-06-26 6:57 ` Eli Zaretskii
[not found] ` <mailman.1289.1245999446.2239.help-gnu-emacs@gnu.org>
2009-06-26 16:42 ` Markus Heller
2009-06-27 9:27 ` Eli Zaretskii
[not found] ` <mailman.1382.1246104268.2239.help-gnu-emacs@gnu.org>
2009-06-29 21:15 ` Markus Heller
2009-06-26 22:04 ` Edward O'Connor
2009-06-26 22:21 ` Markus Heller
[not found] ` <3b31caf90906261524k3f66ced1sa805bdd09195808@mail.gmail.com>
[not found] ` <27c152c00906261527v3e7a0df5xef09f36a0b1a8d6b@mail.gmail.com>
[not found] ` <3b31caf90906261531q5c804bb1o6bf336cce4c324b6@mail.gmail.com>
2009-06-26 22:38 ` Markus Heller
2009-06-27 8:23 ` Peter Dyballa
2009-06-29 21:19 ` Markus Heller
2009-06-29 21:43 ` Peter Dyballa
2009-06-29 21:54 ` Markus Heller
2009-06-29 22:48 ` Peter Dyballa [this message]
2009-06-29 23:00 ` Markus Heller
[not found] ` <mailman.1545.1246338014.2239.help-gnu-emacs@gnu.org>
2009-06-30 7:18 ` TomSW
2009-06-30 21:15 ` Markus Heller
[not found] ` <mailman.1367.1246077509.2239.help-gnu-emacs@gnu.org>
2009-06-27 8:18 ` TomSW
2009-06-29 21:22 ` Markus Heller
2009-06-30 8:36 ` Peter Dyballa
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=B12C3D6B-86C6-4A9E-83EB-E7CA969F663F@web.de \
--to=peter_dyballa@web.de \
--cc=hellerm2@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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).