Re: defvar: Symbol’s value as variable is void: LaTeX-font-family
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 -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 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
Re: defvar: Symbol’s value as variable is void: LaTeX-font-family
Hi Jean-François, jfbu 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
Re: defvar: Symbol’s value as variable is void: LaTeX-font-family
sorry for noise about autoconf, I forgot I was testing over ssh, and I connect then to a machine with a much limited environment than the one I access when I am physically over there Le 24/04/2023 à 21:54, jfbu a écrit : Hello, The problem does not show on my mac os using GNU Emacs 28.1. And I see (defvar LaTeX-font-family '("normalfont" "rmfamily" "sffamily" "ttfamily") "List of LaTeX font family declarations.") in latex.el so perhaps in my account on a Ubuntu machine there is a problem with somehow latex.el being shadowed by another one. Now, I will certainly say utter non-sense but turns out my Ubuntu account has no autoconf which I realized only now after seeing in my notes that on macos I first do ./autogen.sh then configure:make. And on my Ubuntu: $ ./autogen.sh ./autogen.sh: 31: autoconf: not found Error running autoconf in . I need to chime in sysadmin Best wishes Le 24/04/2023 à 17:15, jfbu a écrit : Hi, 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. If I however C-xC-f to its location after that no additional complaint. On this computer I am on Ubuntu 20.04 and the *Messages* buffer contains Loading /etc/emacs/site-start.d/00debian.el (source)...done Loading /etc/emacs/site-start.d/50asymptote.el (source)...done Loading /etc/emacs/site-start.d/50autoconf.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)... Loading debian-ispell... Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done Loading debian-ispell...done Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)... Loading /usr/share/emacs/site-lisp/latex-cjk-common/cjk-enc.el (source)...done Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)...done Loading /etc/emacs/site-start.d/50latex-cjk-thai.el (source)...done Loading /etc/emacs/site-start.d/50latexmk.el (source)...done Loading /etc/emacs/site-start.d/50pylint.el (source)...done Loading /etc/emacs/site-start.d/50texlive-lang-english.el (source)...done then loads my personal init files then the following lines Applying style hooks... Loading /home/path/to/auctex/style/l3doc.elc... Loading /home/path/to/auctex/style/article.elc...done Loading /home/path/to/auctex/style/l3doc.elc...done Loading /home/path/to/auctex/style/expl3.elc...done Loading /home/path/to/auctex/style/doc.elc...done Loading /home/path/to/auctex/style/shortvrb.elc...done Loading /home/path/to/auctex/style/ltx-base.elc...done Loading /home/path/to/auctex/style/array.elc...done Loading /home/path/to/auctex/style/amsmath.elc...done Loading /home/path/to/auctex/style/amstext.elc...done Loading /home/path/to/auctex/style/amsbsy.elc...done Loading /home/path/to/auctex/style/amsopn.elc...done Loading /home/path/to/auctex/style/booktabs.elc...done Loading /home/path/to/auctex/style/color.elc...done Loading /home/path/to/auctex/style/colortbl.elc...done Loading /home/path/to/auctex/style/hologo.elc...done Loading /home/path/to/auctex/style/enumitem.elc... defvar: Symbol’s value as variable is void: LaTeX-font-family 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 I suspect the issue could be one of incompatibility with site-start.d files (Later I will try this on my macos laptop) I searched for LaTeX-font-family in my personal Emacs init and custom files and found nothing GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.14) of 2020-03-26, modified by Debian Last note: after "git pull" I had completely forgotten to execute configure and make... and initially the above had "mapcar" in place of "defvar" and some lines reported using the source files, not the compiled .elc files. 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) This is on some machine where I am but like a little pawn with no admin rights Ah, finally I bisected to commit 191db684974762e88f4663f0307ce8ca8cf5bedb Date: Wed Apr 19 09:11:22 2023 +0200 Improve style/enumitem.el * style/enumitem.el (LaTeX-enumitem-key-val-options): Use variables provided by latex.el
Re: defvar: Symbol’s value as variable is void: LaTeX-font-family
Hello, The problem does not show on my mac os using GNU Emacs 28.1. And I see (defvar LaTeX-font-family '("normalfont" "rmfamily" "sffamily" "ttfamily") "List of LaTeX font family declarations.") in latex.el so perhaps in my account on a Ubuntu machine there is a problem with somehow latex.el being shadowed by another one. Now, I will certainly say utter non-sense but turns out my Ubuntu account has no autoconf which I realized only now after seeing in my notes that on macos I first do ./autogen.sh then configure:make. And on my Ubuntu: $ ./autogen.sh ./autogen.sh: 31: autoconf: not found Error running autoconf in . I need to chime in sysadmin Best wishes Le 24/04/2023 à 17:15, jfbu a écrit : Hi, 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. If I however C-xC-f to its location after that no additional complaint. On this computer I am on Ubuntu 20.04 and the *Messages* buffer contains Loading /etc/emacs/site-start.d/00debian.el (source)...done Loading /etc/emacs/site-start.d/50asymptote.el (source)...done Loading /etc/emacs/site-start.d/50autoconf.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)... Loading debian-ispell... Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done Loading debian-ispell...done Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)... Loading /usr/share/emacs/site-lisp/latex-cjk-common/cjk-enc.el (source)...done Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)...done Loading /etc/emacs/site-start.d/50latex-cjk-thai.el (source)...done Loading /etc/emacs/site-start.d/50latexmk.el (source)...done Loading /etc/emacs/site-start.d/50pylint.el (source)...done Loading /etc/emacs/site-start.d/50texlive-lang-english.el (source)...done then loads my personal init files then the following lines Applying style hooks... Loading /home/path/to/auctex/style/l3doc.elc... Loading /home/path/to/auctex/style/article.elc...done Loading /home/path/to/auctex/style/l3doc.elc...done Loading /home/path/to/auctex/style/expl3.elc...done Loading /home/path/to/auctex/style/doc.elc...done Loading /home/path/to/auctex/style/shortvrb.elc...done Loading /home/path/to/auctex/style/ltx-base.elc...done Loading /home/path/to/auctex/style/array.elc...done Loading /home/path/to/auctex/style/amsmath.elc...done Loading /home/path/to/auctex/style/amstext.elc...done Loading /home/path/to/auctex/style/amsbsy.elc...done Loading /home/path/to/auctex/style/amsopn.elc...done Loading /home/path/to/auctex/style/booktabs.elc...done Loading /home/path/to/auctex/style/color.elc...done Loading /home/path/to/auctex/style/colortbl.elc...done Loading /home/path/to/auctex/style/hologo.elc...done Loading /home/path/to/auctex/style/enumitem.elc... defvar: Symbol’s value as variable is void: LaTeX-font-family 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 I suspect the issue could be one of incompatibility with site-start.d files (Later I will try this on my macos laptop) I searched for LaTeX-font-family in my personal Emacs init and custom files and found nothing GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.14) of 2020-03-26, modified by Debian Last note: after "git pull" I had completely forgotten to execute configure and make... and initially the above had "mapcar" in place of "defvar" and some lines reported using the source files, not the compiled .elc files. 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) This is on some machine where I am but like a little pawn with no admin rights Ah, finally I bisected to commit 191db684974762e88f4663f0307ce8ca8cf5bedb Date: Wed Apr 19 09:11:22 2023 +0200 Improve style/enumitem.el * style/enumitem.el (LaTeX-enumitem-key-val-options): Use variables provided by latex.el and don't hard-code the font related values. (LaTeX-enumitem-auto-cleanup): Don't add environments defined in tex-ispell.el to `ispell-tex-skip-alists' again. Remove comment. style/enumitem.el | 52 1 file changed, 12 insertions(+), 40 deletions(-) Best, Jean-François
defvar: Symbol’s value as variable is void: LaTeX-font-family
Hi, 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. If I however C-xC-f to its location after that no additional complaint. On this computer I am on Ubuntu 20.04 and the *Messages* buffer contains Loading /etc/emacs/site-start.d/00debian.el (source)...done Loading /etc/emacs/site-start.d/50asymptote.el (source)...done Loading /etc/emacs/site-start.d/50autoconf.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)... Loading debian-ispell... Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done Loading debian-ispell...done Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)... Loading /usr/share/emacs/site-lisp/latex-cjk-common/cjk-enc.el (source)...done Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)...done Loading /etc/emacs/site-start.d/50latex-cjk-thai.el (source)...done Loading /etc/emacs/site-start.d/50latexmk.el (source)...done Loading /etc/emacs/site-start.d/50pylint.el (source)...done Loading /etc/emacs/site-start.d/50texlive-lang-english.el (source)...done then loads my personal init files then the following lines Applying style hooks... Loading /home/path/to/auctex/style/l3doc.elc... Loading /home/path/to/auctex/style/article.elc...done Loading /home/path/to/auctex/style/l3doc.elc...done Loading /home/path/to/auctex/style/expl3.elc...done Loading /home/path/to/auctex/style/doc.elc...done Loading /home/path/to/auctex/style/shortvrb.elc...done Loading /home/path/to/auctex/style/ltx-base.elc...done Loading /home/path/to/auctex/style/array.elc...done Loading /home/path/to/auctex/style/amsmath.elc...done Loading /home/path/to/auctex/style/amstext.elc...done Loading /home/path/to/auctex/style/amsbsy.elc...done Loading /home/path/to/auctex/style/amsopn.elc...done Loading /home/path/to/auctex/style/booktabs.elc...done Loading /home/path/to/auctex/style/color.elc...done Loading /home/path/to/auctex/style/colortbl.elc...done Loading /home/path/to/auctex/style/hologo.elc...done Loading /home/path/to/auctex/style/enumitem.elc... defvar: Symbol’s value as variable is void: LaTeX-font-family 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 I suspect the issue could be one of incompatibility with site-start.d files (Later I will try this on my macos laptop) I searched for LaTeX-font-family in my personal Emacs init and custom files and found nothing GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.14) of 2020-03-26, modified by Debian Last note: after "git pull" I had completely forgotten to execute configure and make... and initially the above had "mapcar" in place of "defvar" and some lines reported using the source files, not the compiled .elc files. 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) This is on some machine where I am but like a little pawn with no admin rights Ah, finally I bisected to commit 191db684974762e88f4663f0307ce8ca8cf5bedb Date: Wed Apr 19 09:11:22 2023 +0200 Improve style/enumitem.el * style/enumitem.el (LaTeX-enumitem-key-val-options): Use variables provided by latex.el and don't hard-code the font related values. (LaTeX-enumitem-auto-cleanup): Don't add environments defined in tex-ispell.el to `ispell-tex-skip-alists' again. Remove comment. style/enumitem.el | 52 1 file changed, 12 insertions(+), 40 deletions(-) Best, Jean-François