Hello Sean,
Sean Whitton wrote on 12/09/2023 09:41:
Hello,
On Mon 11 Sep 2023 at 08:45pm +02, Jörg-Volker Peetz wrote:
Hello,
thanks for looking into this.
From a terminal (rxvt-unicode) running my shell (mksh) I start emacs
(emacs-lucid). After about 15 seconds the following warnings appear:
■ Warning (comp): debian-el.el:90:26: Warning: reference to free variable
‘di\
red-mode-map’
■ Warning (comp): debian-el.el:90:26: Warning: reference to free variable
‘di\
red-mode-map’
■ Warning (comp): debian-el.el:95:35: Warning: docstring has wrong usage of
u\
nescaped single quotes (use \= or different quoting)
■ Warning (comp): mmm-vars.el:869:2: Warning: defvar `mmm-classes-alist'
docs\
tring has wrong usage of unescaped single quotes (use \= or different quoting)
■ Warning (comp): mmm-auto.el:168:2: Warning: docstring has wrong usage of
un\
escaped single quotes (use \= or different quoting)
I stop emacs (C-x C-c) and start the next emacs. And again, after about the same
time the same warnings appear.
As I understand it, the second emacs is re-compiling the modules mentioned in
the warnings (and others, as can be seen in the eln-cache directory).
The fact the warnings appear does not necessarily mean that any
recompilation occurs.
The time stamp of the eln files in the cache directory changes.
init.el is appended.
We'd need a reproduction with 'emacs -q'.
Right you are... It doesn't happen with 'emacs -q'.
And putting just these lines:
;;; Set eln-cache dir
(when (boundp 'native-comp-eln-load-path)
(setcar native-comp-eln-load-path
(expand-file-name "~/.cache/emacs-eln-cache/" user-emacs-directory)))
into init.el and starting 'emacs' makes the flaw happen.
--
Regards,
Jörg.