[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Difficulties with elpa repository.

From: Stefan Monnier
Subject: Re: Difficulties with elpa repository.
Date: Thu, 26 Nov 2015 10:32:54 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> OK.  I call make with

>     PATH=~/path/to/emacs-25/src:$PATH make -k

> , and I've inserted a "-Q" into the definition of EMACS in GNUMakefile.

Welcome to "make"!  Instead of the above, you could just do

      make -k EMACS="~/path/to/emacs-25/src/emacs -Q"

> But I get a near infinite number of errors like:
>     Error loading autoloads: (file-error Cannot open load file No such
>     file or directory tex-site)

Hmm... the way things normally work is as follows:

- GNUmakefile ensures that all packages have a "<pkg>-autoloads.el" file.
- The "%.elc: %.el" rule of GNUmakefile runs Emacs, setting up
  package-user-dir as being the "../elpa/packages" directory, then calls
  package-initialize which should "activate" all package in there.
- activation of auctex is done by loading packages/auctex/auctex-autoloads.el.
- packages/auctex/auctex-autoloads.el begins by adding .../packages/auctex
  to `load-path'.
- a bit later, packages/auctex/auctex-autoloads.el does "(require 'tex-site)".
- this require succeeds because of the previous addition to load-path.

So my best guess is that for some reason .../packages/auctex was not
added to load-path by .../packages/auctex/auctex-autoloads.el.
Can you check the contents of .../packages/auctex/auctex-autoloads.el?
It should start with

   ;;; auctex-autoloads.el --- automatically extracted autoloads
   ;;; Code:
   (add-to-list 'load-path (or (file-name-directory #$) (car load-path)))

> , always complaining about the one file tex-site.  tex-site.el is in the
> auctex package.  Have you any notion as to why so many files are trying
> to load tex-site.el/c, and why they're not finding it?

Every file is compiled by a separate Emacs process, which always starts
by doing package-initialize, which will load tex-site.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]