Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

won't load .emacs init file

0 views
Skip to first unread message

paul....@googlemail.com

unread,
Jul 31, 2008, 10:00:41 AM7/31/08
to
I'm running emacs under cygwin. For some reason my .emacs file is
being ignored.

The environment variable for HOME is reporting correctly as /home/
paul. That is where I have placed my .emacs file. I have tried running
using --debug-init and it reports no errors.

I have evaluated every line in the file in turn and they all work
fine. It is as if it's running emacs -q, but there are NO aliases set
or scripts which could be running instead.

Close to my wits' end. Can you help?

Thanks

paul....@googlemail.com

unread,
Jul 31, 2008, 10:19:31 AM7/31/08
to

Additional information - running M-x load-file ~/.emacs loads the init
file perfectly, it just doesn't load when I start emacs.

Lennart Borgman (gmail)

unread,
Jul 31, 2008, 6:33:05 PM7/31/08
to paul....@googlemail.com, help-gn...@gnu.org

Do you mean that if you start with

emacs -Q

then the M-x load-file ~/.emacs works?


Nikolaj Schumacher

unread,
Aug 1, 2008, 4:16:15 AM8/1/08
to paul....@googlemail.com, help-gn...@gnu.org
paul....@googlemail.com wrote:

> On Jul 31, 3:00 pm, paul.d.m...@googlemail.com wrote:

>> I'm running emacs under cygwin. For some reason my .emacs file is
>> being ignored.
>>
>> The environment variable for HOME is reporting correctly as /home/
>> paul.

Reported only by your shell, or also by Emacs? (`getenv')

Is the value of `user-init-file' correct?

regards,
Nikolaj Schumacher


Lennart Borgman (gmail)

unread,
Aug 1, 2008, 4:38:58 AM8/1/08
to paul.mead, help-gn...@gnu.org
paul.mead wrote:
> On Jul 31, 11:33 pm, "Lennart Borgman (gmail)"
> <lennart.borg...@gmail.com> wrote:
> No, I just srart with
> emacs
> but loading the ~/.emacs file manually sets the config up ok.


If you start with

emacs

instead of

emacs -Q

then there is the possibility that something in your site-start.el or
default.el changes HOME.


paul.mead

unread,
Aug 1, 2008, 5:47:51 AM8/1/08
to
On Aug 1, 9:38 am, "Lennart Borgman (gmail)"

Just tried that option - I get a message "Unknown option `-Q'

Using emacs -q has the usual effect (in my case no different to using
just emacs)

Using getenv, I can see that my HOME environment variable is reporting
corrcetly as /home/paul. I can't find how to get the value of user-
init-file.

I don't know if this is relevant - I tried to run Customize and change
a value in there. When I tried to save changed is gave me an error
message "Saving settings from "emacs -q" would overwrite existing
customizations" - that suggests that I am using emacs -q to start, but
I'm not. There are no aliases set, is there anywhere else that a
configuration file could be hiding?

Lennart Borgman (gmail)

unread,
Aug 1, 2008, 12:51:36 PM8/1/08
to paul.mead, help-gn...@gnu.org

That means you are running a quite old version of Emacs. Maybe the best
way to proceed would be to upgrade your Emacs (if that is possible)?

paul.mead

unread,
Aug 3, 2008, 7:33:04 AM8/3/08
to
On Aug 1, 5:51 pm, "Lennart Borgman (gmail)"

Thanks, I'll give that a try. Never compiled anything under cygwin,
should be a learning experience ;-)

paul mead

unread,
Aug 3, 2008, 8:14:00 AM8/3/08
to
test..

paul.mead

unread,
Aug 5, 2008, 4:56:35 AM8/5/08
to
On Aug 1, 5:51 pm, "Lennart Borgman (gmail)"

OK, I've checked on the cygwin package list and there is a newer
version already compiled - 22.1.3 which is probably near enough
(assuming that the current stable version is 22.2). I've installed
that. When I run emacs now I get the following error:

("emacs")
command-line: Cannot open load file: warnings

I also can't get outline mode to work, so I've had to revert to the
earlier version (21.2.1) for now as at least I can keep working with
that.

paul.mead

unread,
Aug 14, 2008, 11:45:28 AM8/14/08
to

FIXED!

Turns out there was some sort of conflict between the user name for
Windows and the USER variable under cygwin. I just added:
USER=MEAD8982 to my ~/.profile (my Windows username) and moved .emacs
to /home/MEAD8982/ and everything started working.

Cheers for suggestions...
Paul

paul.mead

unread,
Aug 14, 2008, 11:49:32 AM8/14/08
to

Sorry, that's:
set USER=MEAD8982

0 new messages