* Trouble loading files in batch mode
@ 2008-11-26 6:31 Davin Pearson
2008-11-26 21:10 ` Bernardo Bacic
[not found] ` <mailman.1317.1227733963.26697.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 6+ messages in thread
From: Davin Pearson @ 2008-11-26 6:31 UTC (permalink / raw
To: help-gnu-emacs
When I run the following command:
emacs --batch -l ~/hello.el
Emacs complains like so:
Cannot open load file: /d/home/hello.el
But when I run the following command:
emacs --batch -l hello.el
it works fine. please note that in both cases the file hello.el
exists so Emacs should be able to find it. Here is the version
information:
In GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600)
of 2008-03-27 on RELEASE
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Trouble loading files in batch mode
2008-11-26 6:31 Trouble loading files in batch mode Davin Pearson
@ 2008-11-26 21:10 ` Bernardo Bacic
[not found] ` <mailman.1317.1227733963.26697.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 6+ messages in thread
From: Bernardo Bacic @ 2008-11-26 21:10 UTC (permalink / raw
To: help-gnu-emacs
it was a dark and stormy night when Davin Pearson said,
> When I run the following command:
>
> emacs --batch -l ~/hello.el
>
> Emacs complains like so:
>
> Cannot open load file: /d/home/hello.el
>
> But when I run the following command:
>
> emacs --batch -l hello.el
>
> it works fine. please note that in both cases the file hello.el
> exists so Emacs should be able to find it. Here is the version
> information:
>
> In GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600)
> of 2008-03-27 on RELEASE
> Windowing system distributor `Microsoft Corp.', version 5.1.2600
> configured using `configure --with-gcc (3.4)'
are you by any chance launching a Windows build of Emacs from a cygwin shell?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Trouble loading files in batch mode
[not found] ` <mailman.1317.1227733963.26697.help-gnu-emacs@gnu.org>
@ 2008-11-27 1:38 ` Davin Pearson
2008-11-27 2:20 ` htbest2000
0 siblings, 1 reply; 6+ messages in thread
From: Davin Pearson @ 2008-11-27 1:38 UTC (permalink / raw
To: help-gnu-emacs
On Nov 27, 10:10 am, Bernardo Bacic <bernardo.ba...@pobox.com> wrote:
> it was a dark and stormy night when Davin Pearson said,
>
>
>
> > When I run the following command:
>
> > emacs --batch -l ~/hello.el
>
> > Emacs complains like so:
>
> > Cannot open load file: /d/home/hello.el
>
> > But when I run the following command:
>
> > emacs --batch -l hello.el
>
> > it works fine. please note that in both cases the file hello.el
> > exists so Emacs should be able to find it. Here is the version
> > information:
>
> > In GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600)
> > of 2008-03-27 on RELEASE
> > Windowing system distributor `Microsoft Corp.', version 5.1.2600
> > configured using `configure --with-gcc (3.4)'
>
> are you by any chance launching a Windows build of Emacs from a cygwin shell?
No I don't think so.
Here is what clicking on the Properties menu button of my Emacs icon
shows:
Target: "D:\Program Files\emacs-22.2\bin\runemacs.exe"
Start In: "D:\Program Files\emacs-22.2\bin"
I have worked out a work around for this bug. The file hello.el which
I can load from the current directory can hold code that loads from ~/
here.el.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Trouble loading files in batch mode
2008-11-27 1:38 ` Davin Pearson
@ 2008-11-27 2:20 ` htbest2000
2008-11-27 4:50 ` Davin Pearson
0 siblings, 1 reply; 6+ messages in thread
From: htbest2000 @ 2008-11-27 2:20 UTC (permalink / raw
To: help-gnu-emacs
Try ntemacs: http://ntemacs.sourceforge.net/
~/ means not your Emacs program folder but not your personal HOME
folder(for mswinNT always be C:/Document and setting/yourname), but it
is weird in your computer "/d/home/hello.el ", are you compiling the
emacs source code under msys by yourself?
On Nov 26, 8:38 pm, Davin Pearson <davin.pear...@gmail.com> wrote:
> On Nov 27, 10:10 am, Bernardo Bacic <bernardo.ba...@pobox.com> wrote:
>
>
>
> > it was a dark and stormy night when Davin Pearson said,
>
> > > When I run the following command:
>
> > > emacs --batch -l ~/hello.el
>
> > > Emacs complains like so:
>
> > > Cannot open load file: /d/home/hello.el
>
> > > But when I run the following command:
>
> > > emacs --batch -l hello.el
>
> > > it works fine. please note that in both cases the file hello.el
> > > exists so Emacs should be able to find it. Here is the version
> > > information:
>
> > > In GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600)
> > > of 2008-03-27 on RELEASE
> > > Windowing system distributor `Microsoft Corp.', version 5.1.2600
> > > configured using `configure --with-gcc (3.4)'
>
> > are you by any chance launching a Windows build of Emacs from a cygwin shell?
>
> No I don't think so.
>
> Here is what clicking on the Properties menu button of my Emacs icon
> shows:
>
> Target: "D:\Program Files\emacs-22.2\bin\runemacs.exe"
> Start In: "D:\Program Files\emacs-22.2\bin"
>
> I have worked out a work around for this bug. The file hello.el which
> I can load from the current directory can hold code that loads from ~/
> here.el.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Trouble loading files in batch mode
2008-11-27 2:20 ` htbest2000
@ 2008-11-27 4:50 ` Davin Pearson
2008-11-27 5:20 ` htbest2000
0 siblings, 1 reply; 6+ messages in thread
From: Davin Pearson @ 2008-11-27 4:50 UTC (permalink / raw
To: help-gnu-emacs
On Nov 27, 3:20 pm, htbest2000 <htbest2...@gmail.com> wrote:
> Try ntemacs:http://ntemacs.sourceforge.net/
>
> ~/ means not your Emacs program folder but not your personal HOME
> folder(for mswinNT always be C:/Document and setting/yourname), but it
> is weird in your computer "/d/home/hello.el ", are you compiling the
> emacs source code under msys by yourself?
>
I got Emacs from the following location:
http://ftp.gnu.org/pub/gnu/emacs/windows/emacs-21.3-bin-i386.tar.gz
Is NT Emacs different from this?
The environment variable HOME is set to d:/home on my Windows system.
Thanks for your help.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Trouble loading files in batch mode
2008-11-27 4:50 ` Davin Pearson
@ 2008-11-27 5:20 ` htbest2000
0 siblings, 0 replies; 6+ messages in thread
From: htbest2000 @ 2008-11-27 5:20 UTC (permalink / raw
To: help-gnu-emacs
You are welcome :D
May be it is the bug of http://ftp.gnu.org/pub/gnu/emacs/windows/emacs-21.3-bin-i386.tar.gz
on my machine, Emacs/AUCTeX bundle(ver22) and ntemacs are both works
fine while exec `emacs --batch -l ~/xxx.el'
On Nov 27, 12:50 pm, Davin Pearson <davin.pear...@gmail.com> wrote:
> On Nov 27, 3:20 pm, htbest2000 <htbest2...@gmail.com> wrote:
>
> > Try ntemacs:http://ntemacs.sourceforge.net/
>
> > ~/ means not your Emacs program folder but not your personal HOME
> > folder(for mswinNT always be C:/Document and setting/yourname), but it
> > is weird in your computer "/d/home/hello.el ", are you compiling the
> > emacs source code under msys by yourself?
>
> I got Emacs from the following location:
>
> http://ftp.gnu.org/pub/gnu/emacs/windows/emacs-21.3-bin-i386.tar.gz
>
> Is NT Emacs different from this?
>
> The environment variable HOME is set to d:/home on my Windows system.
>
> Thanks for your help.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-11-27 5:20 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-26 6:31 Trouble loading files in batch mode Davin Pearson
2008-11-26 21:10 ` Bernardo Bacic
[not found] ` <mailman.1317.1227733963.26697.help-gnu-emacs@gnu.org>
2008-11-27 1:38 ` Davin Pearson
2008-11-27 2:20 ` htbest2000
2008-11-27 4:50 ` Davin Pearson
2008-11-27 5:20 ` htbest2000
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).