From: Alan Mackenzie <acm@muc.de>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: emacs-devel@gnu.org
Subject: Re: Difficulties with elpa repository.
Date: Thu, 26 Nov 2015 17:21:14 +0000 [thread overview]
Message-ID: <20151126172114.GA2383@acm.fritz.box> (raw)
In-Reply-To: <jwvbnag94a5.fsf-monnier+emacs@gnu.org>
Hello, Stefan.
I've found the problem. (Well, the first problem, anyway. ;-)
On Thu, Nov 26, 2015 at 10:32:54AM -0500, Stefan Monnier wrote:
> > 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.
Here, make used my (pretty old) installed Emacs version, this being
before I'd learnt to specify the emacs executable to make. The
<pkg>-autoloads.el files generated were lacking the "(add-to-list
'load-path ...)" form.
So I'll delete all these <pkg>-autoloads.el's and get Emacs to
regenerate them with Emacs 25.
Then it will work. ;-)
Maybe some sort of version number in the <pkg>-autoloads.el's might help
avoid this sort of blunder.
> - 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
Yes, that was it.
> ;;; 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.
> Stefan
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2015-11-26 17:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-25 13:29 Difficulties with elpa repository Alan Mackenzie
2015-11-25 21:07 ` Stefan Monnier
2015-11-25 21:16 ` Alan Mackenzie
2015-11-26 14:23 ` Alan Mackenzie
2015-11-26 15:32 ` Stefan Monnier
2015-11-26 17:21 ` Alan Mackenzie [this message]
2015-11-27 1:37 ` Stefan Monnier
2015-11-27 8:21 ` Alan Mackenzie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151126172114.GA2383@acm.fritz.box \
--to=acm@muc.de \
--cc=emacs-devel@gnu.org \
--cc=monnier@IRO.UMontreal.CA \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.