Hi Arash,

Perhaps you did not know yet but my Emacsen nickname is "stupid noob who 
top-posts".

Turns out I had an ELPA installed 13.1.5 auctex, I don't know what it was
doing there, we had some system-upgrade some months ago, and a change of
file-server,

   M-x list-load-path-shadows RET

Maybe that helps.

It dit not really as it reported only

/usr/share/emacs/site-lisp/latex-cjk-thai/thai-word hides 
/usr/share/emacs/26.3/lisp/language/thai-word

1 Emacs Lisp load-path shadowing was found

(I did that in a buffer with a .tex file and a .dtx file also to be sure)

But then I started doing `find <dir> -name latex*` like crazy everywhere until
suddenly a synapse woke up and told me to check my .emacs.d directory
and there it was.  I had removed from .emacs.d/elpa/ some earlier 13.0.4 (or 
.14 now
removed so I don't recall) but .emacs.d/elpa/ mysteriously contained
this 13.1.5

For time being I will go with ELPA 13.2 which I have installed and forget
about the git thing which I have deactivated from my init file.

Sorry for noise and thanks for Help.

Jean-François

Le 25/04/2023 à 11:40, Arash Esbati a écrit :
Hi Jean-François,

jfbu <j...@free.fr> writes:

I observe the following behavior on doing

$ emacs $(kpsewhich lthooks.dtx) &

the message "defvar: Symbol’s value as variable is void: LaTeX-font-family" 
appears
and Emacs does not open the dtx file.

That variable was added to latex.el with commit 82a23a93ae; but I think
you've found it already.

To be precise I currenty am using the git repo at commit
d6fb3c58c
$ git log --oneline -5
d6fb3c58 (HEAD -> master, origin/master, origin/HEAD) Be more resilient when 
parsing arguments
bd2c1c67 (tag: release_13_2) ; Release_13.2
b49bb229 ; make change-history-commit
ec742f33 ; Prepare for new release
191db684 Improve style/enumitem.el

Your latex.el should be recent enough.

I suspect the issue could be one of incompatibility with site-start.d files
(Later I will try this on my macos laptop)

I suspect you have multiple latex.el's on your HD.  Open a .tex file in
order to load AUCTeX and then try:

   M-x list-load-path-shadows RET

Maybe that helps.

Don't know if that matters but I see a commented-out line in my .emacs

        ; (unload-feature 'tex-site)

It was commented out in 2018 with "commenting-out else
does not load since system upgrade to Ubuntu 18.04"

(but no idea about what "does not load" meant)

You're using AUCTeX from a git repo, so it should be sufficient to load
AUCTeX as described here[1].  Maybe you want to check your init file as
well.  HTH.

Best, Arash

Footnotes:
[1]  
https://www.gnu.org/software/auctex/manual/auctex.html#Using-AUCTeX-from-local-Git-repo



Reply via email to