Open drot opened 7 years ago
For some reason load-file-name
is still ~/.emacs.d/init.el
when the byte compile happens, but I don't know why.
This is still happening with systemd-20180101.1803
.
It seems the problem is how use-package
handle the PATH, since
$ emacs --batch --eval '(byte-compile-file "elpa/systemd-20180101.1803/systemd.el")'
doesn't produce any error.
The issue also happens without use-package
:
(package-initialize)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/"))
(unless (package-installed-p 'systemd)
(package-refresh-contents)
(package-install 'systemd))
If you clone the systemd-mode
repo and try M-x package-install-file
to install it from the repo it also happens, so the problem could be package.el
itself.
I run into this problem with Emacs 25.3 as well. Is it expected?
I got the same with Debian 10, Emacs 26.3 and use-package.
Related to #5, with the Emacs 26 pretest (26.0.90) and the following init file:
The following byte compilation error is being reported: