* Unable to have emacs load my .emacs file (version 24.5.1 on Windows 7)
@ 2015-12-27 21:49 smits.gerard.j
2015-12-28 10:52 ` Javier
` (3 more replies)
0 siblings, 4 replies; 13+ messages in thread
From: smits.gerard.j @ 2015-12-27 21:49 UTC (permalink / raw)
To: help-gnu-emacs
Hi Emacs users,
The issue is that I am not loading my .emacs file
I have just installed version 24.5.1 on my Windows 7 (running within Parallels on a Mac). I currently have the same configuration on another machine, which I have been using for several years, and currently works fine.
My home environment variable is Z:\ within emacs, I can determine that this is what emacs believes is home (getenv "home") evaluates to z:\\.
Emacs knows the correct location of my user initialization file:
user-init-file is a variable defined in `C source code'.
Its value is "z:/.emacs"
My load path, which fits my directory structure, is:
load-path is a variable defined in `C source code'.
Its value is
("/gs/emacs/share/emacs/24.5/lisp" "z:/gs/emacs/share/emacs/24.5/site-lisp" "z:/gs/emacs/share/emacs/site-lisp" "z:/gs/emacs/share/emacs/24.5/lisp" "z:/gs/emacs/share/emacs/24.5/lisp/vc" "z:/gs/emacs/share/emacs/24.5/lisp/url" "z:/gs/emacs/share/emacs/24.5/lisp/textmodes" "z:/gs/emacs/share/emacs/24.5/lisp/progmodes" "z:/gs/emacs/share/emacs/24.5/lisp/play" "z:/gs/emacs/share/emacs/24.5/lisp/org" "z:/gs/emacs/share/emacs/24.5/lisp/nxml" "z:/gs/emacs/share/emacs/24.5/lisp/net" "z:/gs/emacs/share/emacs/24.5/lisp/mh-e" "z:/gs/emacs/share/emacs/24.5/lisp/mail" "z:/gs/emacs/share/emacs/24.5/lisp/leim" "z:/gs/emacs/share/emacs/24.5/lisp/language" "z:/gs/emacs/share/emacs/24.5/lisp/international" "z:/gs/emacs/share/emacs/24.5/lisp/gnus" "z:/gs/emacs/share/emacs/24.5/lisp/eshell" "z:/gs/emacs/share/emacs/24.5/lisp/erc" "z:/gs/emacs/share/emacs/24.5/lisp/emulation" "z:/gs/emacs/share/emacs/24.5/lisp/emacs-parallel" "z:/gs/emacs/share/emacs/24.5/lisp/emacs-lisp" "z:/gs/emacs/share/emacs/24.5/lisp/cedet" "z:/gs/emacs/share/emacs/24.5/lisp/calendar" "z:/gs/emacs/share/emacs/24.5/lisp/calc" "z:/gs/emacs/share/emacs/24.5/lisp/obsolete")
When I invoke emacs with: emacs -debug-init:
Debugger entered--Lisp error: (file-error "Cannot open load file" "no such file or directory" "auto-show")
require(auto-show)
eval-buffer(#<buffer *load*> nil "z:/.emacs" nil t) ; Reading at buffer position 734
load-with-code-conversion("z:/.emacs" "z:/.emacs" t t)
load("~/.emacs" t t)
#[0 " \205\262
it does not seem to be able to find it.
I tried copying over my old version from my other machine (version 22.3.1) and have the same problem, so it does not seem to be version related.
Believe it or not, I am having similar problems on the Mac/unix side, but that is for another day.
Any help appreciated.
Thanks,
Gerard Smits
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Unable to have emacs load my .emacs file (version 24.5.1 on Windows 7)
2015-12-27 21:49 Unable to have emacs load my .emacs file (version 24.5.1 on Windows 7) smits.gerard.j
@ 2015-12-28 10:52 ` Javier
2015-12-30 6:15 ` smits.gerard.j
2015-12-30 16:06 ` Noam Postavsky
` (2 subsequent siblings)
3 siblings, 1 reply; 13+ messages in thread
From: Javier @ 2015-12-28 10:52 UTC (permalink / raw)
To: help-gnu-emacs
smits.gerard.j@gmail.com wrote:
> The issue is that I am not loading my .emacs file
>
> I have just installed version 24.5.1 on my Windows 7 (running within Parallels on a Mac).
> I currently have the same configuration on another machine, which I have been using for several years, and currently works fine.
>
> My home environment variable is Z:\ within emacs, I can determine that this is what emacs believes is home (getenv "home") evaluates to z:\\.
>
> Emacs knows the correct location of my user initialization file:
>
> user-init-file is a variable defined in `C source code'.
> Its value is "z:/.emacs"
There may be some problem with the windows filesystem in the Mac.
Try calling the init file _emacs instead of .emacs
(info "(emacs) MS-DOS File Names")
http://www.gnu.org/software/emacs/manual/html_node/emacs/MS_002dDOS-File-Names.html
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Unable to have emacs load my .emacs file (version 24.5.1 on Windows 7)
2015-12-28 10:52 ` Javier
@ 2015-12-30 6:15 ` smits.gerard.j
2015-12-30 22:30 ` B. T. Raven
0 siblings, 1 reply; 13+ messages in thread
From: smits.gerard.j @ 2015-12-30 6:15 UTC (permalink / raw)
To: help-gnu-emacs
Tried _emacs instead of .emacs. But did not resolve. Thanks, Gerard
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Unable to have emacs load my .emacs file (version 24.5.1 on Windows 7)
2015-12-27 21:49 Unable to have emacs load my .emacs file (version 24.5.1 on Windows 7) smits.gerard.j
2015-12-28 10:52 ` Javier
@ 2015-12-30 16:06 ` Noam Postavsky
2015-12-30 18:19 ` smits.gerard.j
2016-01-07 0:06 ` smits.gerard.j
3 siblings, 0 replies; 13+ messages in thread
From: Noam Postavsky @ 2015-12-30 16:06 UTC (permalink / raw)
To: help-gnu-emacs
<smits.gerard.j <at> gmail.com> writes:
> The issue is that I am not loading my .emacs file
[...]
> When I invoke emacs with: emacs -debug-init:
>
> Debugger entered--Lisp error: (file-error "Cannot open load file" "no such
file or directory" "auto-show")
> require(auto-show)
> eval-buffer(#<buffer *load*≥ nil "z:/.emacs" nil t) ; Reading at
buffer position 734
> load-with-code-conversion("z:/.emacs" "z:/.emacs" t t)
> load("~/.emacs" t t)
> #[0 " \205\262
Looks like it found your .emacs fine, but it can't find auto-show.el
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Unable to have emacs load my .emacs file (version 24.5.1 on Windows 7)
2015-12-27 21:49 Unable to have emacs load my .emacs file (version 24.5.1 on Windows 7) smits.gerard.j
2015-12-28 10:52 ` Javier
2015-12-30 16:06 ` Noam Postavsky
@ 2015-12-30 18:19 ` smits.gerard.j
2015-12-31 0:50 ` John Mastro
2016-01-07 0:06 ` smits.gerard.j
3 siblings, 1 reply; 13+ messages in thread
From: smits.gerard.j @ 2015-12-30 18:19 UTC (permalink / raw)
To: help-gnu-emacs
Hi Noam,
Not familiar with auto-show.el. I found an example on line and on a guess put in my home directory--obviously not the correct place, as did not help.
Do you know where it goes?
Thanks,
Gerard
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Unable to have emacs load my .emacs file (version 24.5.1 on Windows 7)
2015-12-30 6:15 ` smits.gerard.j
@ 2015-12-30 22:30 ` B. T. Raven
2015-12-31 0:16 ` smits.gerard.j
0 siblings, 1 reply; 13+ messages in thread
From: B. T. Raven @ 2015-12-30 22:30 UTC (permalink / raw)
To: help-gnu-emacs
On 12/30/2015 12:15 AM, smits.gerard.j@gmail.com wrote:
> Tried _emacs instead of .emacs. But did not resolve. Thanks, Gerard
>
Put your .emacs in C:\Users\Administrator\AppData\Roaming
if you happen to be Administator, otherwise substitute your User-name
for Administrator. This is where Emacs thinks your home directory is.
Ed
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Unable to have emacs load my .emacs file (version 24.5.1 on Windows 7)
2015-12-30 22:30 ` B. T. Raven
@ 2015-12-31 0:16 ` smits.gerard.j
2015-12-31 1:22 ` Charles Millar
[not found] ` <mailman.1396.1451524964.843.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 13+ messages in thread
From: smits.gerard.j @ 2015-12-31 0:16 UTC (permalink / raw)
To: help-gnu-emacs
>
> Put your .emacs in C:\Users\Administrator\AppData\Roaming
>
> if you happen to be Administator, otherwise substitute your User-name
> for Administrator. This is where Emacs thinks your home directory is.
>
> Ed
Ed, I'm running in Windows 7. when I evaluate (getenv "home"), it gives me "z:/" That is my root/home, so would not my .emacs be expected to be there? I currently have it there.
Thanks, Gerard
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Unable to have emacs load my .emacs file (version 24.5.1 on Windows 7)
2015-12-30 18:19 ` smits.gerard.j
@ 2015-12-31 0:50 ` John Mastro
0 siblings, 0 replies; 13+ messages in thread
From: John Mastro @ 2015-12-31 0:50 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org; +Cc: smits.gerard.j
<smits.gerard.j@gmail.com> wrote:
> Not familiar with auto-show.el. I found an example on line and on a guess put in my home directory--obviously not the correct place, as did not help.
>
> Do you know where it goes?
The typical thing, I think, would be to put it in z:\\site-lisp and then
add a line like this to your .emacs:
(add-to-list 'load-path "z:/site-lisp")
Which adds that directory to the list of places Emacs will look for Lisp
libraries.
You can use whatever directory you like, provided you have an
appropriate (add-to-list 'load-path ...) in your .emacs before the
library in question is required.
--
john
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Unable to have emacs load my .emacs file (version 24.5.1 on Windows 7)
2015-12-31 0:16 ` smits.gerard.j
@ 2015-12-31 1:22 ` Charles Millar
2015-12-31 3:06 ` John Mastro
[not found] ` <mailman.1396.1451524964.843.help-gnu-emacs@gnu.org>
1 sibling, 1 reply; 13+ messages in thread
From: Charles Millar @ 2015-12-31 1:22 UTC (permalink / raw)
To: help-gnu-emacs
On 12/30/2015 07:16 PM, smits.gerard.j@gmail.com wrote:
>> Put your .emacs in C:\Users\Administrator\AppData\Roaming
>>
>> if you happen to be Administator, otherwise substitute your User-name
>> for Administrator. This is where Emacs thinks your home directory is.
>>
>> Ed
> Ed, I'm running in Windows 7. when I evaluate (getenv "home"), it gives me "z:/" That is my root/home, so would not my .emacs be expected to be there? I currently have it there.
> Thanks, Gerard
>
What does C-h v user-init-file show? According to the documentation that
should return the file name, including directory, of user's
initialization file.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Unable to have emacs load my .emacs file (version 24.5.1 on Windows 7)
2015-12-31 1:22 ` Charles Millar
@ 2015-12-31 3:06 ` John Mastro
0 siblings, 0 replies; 13+ messages in thread
From: John Mastro @ 2015-12-31 3:06 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org; +Cc: Charles Millar
Charles Millar <millarc@verizon.net> wrote:
>> Ed, I'm running in Windows 7. when I evaluate (getenv "home"), it gives
>> me "z:/" That is my root/home, so would not my .emacs be expected to be
>> there? I currently have it there.
>> Thanks, Gerard
>>
> What does C-h v user-init-file show? According to the documentation that
> should return the file name, including directory, of user's initialization
> file.
It looks like Emacs found his .emacs fine, and was loading it when the error
occurred (backtrace below). The error was that it couldn't find the `auto-show'
library:
Debugger entered--Lisp error: (file-error "Cannot open load file" "no
such file or directory" "auto-show")
require(auto-show)
eval-buffer(#<buffer *load*> nil "z:/.emacs" nil t) ; Reading at
buffer position 734
load-with-code-conversion("z:/.emacs" "z:/.emacs" t t)
load("~/.emacs" t t)
#[0 " \205\262
--
john
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Unable to have emacs load my .emacs file (version 24.5.1 on Windows 7)
[not found] ` <mailman.1396.1451524964.843.help-gnu-emacs@gnu.org>
@ 2016-01-02 23:20 ` smits.gerard.j
0 siblings, 0 replies; 13+ messages in thread
From: smits.gerard.j @ 2016-01-02 23:20 UTC (permalink / raw)
To: help-gnu-emacs
On Wednesday, December 30, 2015 at 5:22:47 PM UTC-8, Charles Millar wrote:
> On 12/30/2015 07:16 PM, smits.gerard.j@gmail.com wrote:
> >> Put your .emacs in C:\Users\Administrator\AppData\Roaming
> >>
> >> if you happen to be Administator, otherwise substitute your User-name
> >> for Administrator. This is where Emacs thinks your home directory is.
> >>
> >> Ed
> > Ed, I'm running in Windows 7. when I evaluate (getenv "home"), it gives me "z:/" That is my root/home, so would not my .emacs be expected to be there? I currently have it there.
> > Thanks, Gerard
> >
> What does C-h v user-init-file show? According to the documentation that
> should return the file name, including directory, of user's
> initialization file.
it shows exactly where I have my .emacs file:
user-init-file is a variable defined in `C source code'.
Its value is "z:/.emacs"
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Unable to have emacs load my .emacs file (version 24.5.1 on Windows 7)
2015-12-27 21:49 Unable to have emacs load my .emacs file (version 24.5.1 on Windows 7) smits.gerard.j
` (2 preceding siblings ...)
2015-12-30 18:19 ` smits.gerard.j
@ 2016-01-07 0:06 ` smits.gerard.j
2016-01-07 15:47 ` B. T. Raven
3 siblings, 1 reply; 13+ messages in thread
From: smits.gerard.j @ 2016-01-07 0:06 UTC (permalink / raw)
To: help-gnu-emacs
Thanks for all of the suggestions. Not fixed yet, but eventually ...
Gerard
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Unable to have emacs load my .emacs file (version 24.5.1 on Windows 7)
2016-01-07 0:06 ` smits.gerard.j
@ 2016-01-07 15:47 ` B. T. Raven
0 siblings, 0 replies; 13+ messages in thread
From: B. T. Raven @ 2016-01-07 15:47 UTC (permalink / raw)
To: help-gnu-emacs
On 1/6/2016 6:06 PM, smits.gerard.j@gmail.com wrote:
> Thanks for all of the suggestions. Not fixed yet, but eventually ...
>
> Gerard
>
If Emacs knows that your home is at z:\ then it is almost certainly
trying to load .emacs
Put this first after any commented lines:
(message "{{{ --[ Loading my Emacs init file ]--")
and start Emacs with the --debug-init option.
What happens then?
Ed
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2016-01-07 15:47 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-27 21:49 Unable to have emacs load my .emacs file (version 24.5.1 on Windows 7) smits.gerard.j
2015-12-28 10:52 ` Javier
2015-12-30 6:15 ` smits.gerard.j
2015-12-30 22:30 ` B. T. Raven
2015-12-31 0:16 ` smits.gerard.j
2015-12-31 1:22 ` Charles Millar
2015-12-31 3:06 ` John Mastro
[not found] ` <mailman.1396.1451524964.843.help-gnu-emacs@gnu.org>
2016-01-02 23:20 ` smits.gerard.j
2015-12-30 16:06 ` Noam Postavsky
2015-12-30 18:19 ` smits.gerard.j
2015-12-31 0:50 ` John Mastro
2016-01-07 0:06 ` smits.gerard.j
2016-01-07 15:47 ` B. T. Raven
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).