From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Cannot open load file: disp-table - error running batch with EMACSLOADPATH Date: 25 Feb 2004 07:27:21 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1077687028 6836 80.91.224.253 (25 Feb 2004 05:30:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Feb 2004 05:30:28 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 25 06:30:20 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Avrci-0007vX-00 for ; Wed, 25 Feb 2004 06:30:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AvrcS-00069U-TD for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Feb 2004 00:30:04 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1AvrYt-0003oY-G2 for help-gnu-emacs@gnu.org; Wed, 25 Feb 2004 00:26:23 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1AvrYJ-0002oh-Mp for help-gnu-emacs@gnu.org; Wed, 25 Feb 2004 00:26:19 -0500 Original-Received: from [207.232.27.5] (helo=WST0054) by monty-python.gnu.org with asmtp (Exim 4.30) id 1AvrYI-0002ey-RJ for help-gnu-emacs@gnu.org; Wed, 25 Feb 2004 00:25:47 -0500 Original-To: help-gnu-emacs@gnu.org In-reply-to: X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17182 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17182 > From: "Drew Adams" > 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.