unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Cannot open load file: disp-table - error running batch with EMACSLOADPATH
@ 2004-02-25  2:09 Drew Adams
  2004-02-25  5:27 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Drew Adams @ 2004-02-25  2:09 UTC (permalink / raw)


If I define environment variable EMACSLOADPATH (as anything at all - whether
a correct path or not), I can't seem to get emacs to run in batch.

I'm running emacs 20.7 on Solaris. Actually, I run an xterm (with or without
a window manager) on the box remotely, using Tarantella.

Emacs works fine interactively; I just can't use it in batch mode with
variable EMACSLOADPATH. If EMACSLOADPATH is undefined, I can run emacs OK in
batch (but of course I can't load libraries, then).

If EMACSLOADPATH is defined at all, I get this error:

  Cannot open load file: disp-table

disp-table is not a library of mine that I load (consciously). It appears to
be a built-in library that is getting loaded by default. The only occurrence
of disp-table in the info help is in a discussion of "Single-byte European
Character Support".

It doesn't matter what the options to emacs -batch are, and it doesn't seem
to have anything to do with any site file:

  emacs -batch
  emacs -batch -q          [-batch should imply -q anyway]
  emacs --no-site-file -batch -eval '(message "hello")'
  emacs -nw --no-site-file -batch -eval '(message "hello")'

  emacs -batch -l mylib
  emacs -batch -l mylib -f myfun

These all give the same error when EMACSLOADPATH is defined. The first four
work OK when it is not defined (the last two need a load-path).

Anyone have an idea on this?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Cannot open load file: disp-table - error running batch with EMACSLOADPATH
  2004-02-25  2:09 Drew Adams
@ 2004-02-25  5:27 ` Eli Zaretskii
  0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2004-02-25  5:27 UTC (permalink / raw)


> From: "Drew Adams" <drew.adams@oracle.com>
> Date: Tue, 24 Feb 2004 18:09:02 -0800
> 
> It doesn't matter what the options to emacs -batch are, and it doesn't seem
> to have anything to do with any site file:
> 
>   emacs -batch
>   emacs -batch -q          [-batch should imply -q anyway]
>   emacs --no-site-file -batch -eval '(message "hello")'
>   emacs -nw --no-site-file -batch -eval '(message "hello")'
> 
>   emacs -batch -l mylib
>   emacs -batch -l mylib -f myfun
> 
> These all give the same error when EMACSLOADPATH is defined. The first four
> work OK when it is not defined (the last two need a load-path).

What value do you have EMACSLOADPATH defined to?  If it doesn't
include the standard Lisp directory where disp-table.elc lives, you
will indeed see the error message.

What happens is that setting EMACSLOADPATH overrides the built-in
value used by Emacs to look for Lisp files.  If you still want Emacs
to find its bundled Lisp files, you need to make sure that
EMACSLOADPATH includes the directories where those bundled files live.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Cannot open load file: disp-table - error running batch with EMACSLOADPATH
       [not found] <mailman.426.1077675409.340.help-gnu-emacs@gnu.org>
@ 2004-02-25 16:54 ` Kevin Rodgers
  0 siblings, 0 replies; 3+ messages in thread
From: Kevin Rodgers @ 2004-02-25 16:54 UTC (permalink / raw)


Drew Adams wrote:
 > If I define environment variable EMACSLOADPATH (as anything at all - whether
 > a correct path or not), I can't seem to get emacs to run in batch.
 >
 > I'm running emacs 20.7 on Solaris. Actually, I run an xterm (with or without
 > a window manager) on the box remotely, using Tarantella.
 >
 > Emacs works fine interactively; I just can't use it in batch mode with
 > variable EMACSLOADPATH. If EMACSLOADPATH is undefined, I can run emacs OK in
 > batch (but of course I can't load libraries, then).
 >
 > If EMACSLOADPATH is defined at all, I get this error:
 >
 >   Cannot open load file: disp-table
 >
 > disp-table is not a library of mine that I load (consciously). It appears to
 > be a built-in library that is getting loaded by default. The only occurrence
 > of disp-table in the info help is in a discussion of "Single-byte European
 > Character Support".

So in an interactive session, type `M-x locate-library RET disp-table
RET'.  Then make sure its directory is in EMACSLOADPATH when you run
Emacs in batch mode.

-- 
Kevin Rodgers

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-02-25 16:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.426.1077675409.340.help-gnu-emacs@gnu.org>
2004-02-25 16:54 ` Cannot open load file: disp-table - error running batch with EMACSLOADPATH Kevin Rodgers
2004-02-25  2:09 Drew Adams
2004-02-25  5:27 ` Eli Zaretskii

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).