auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: defvar: Symbol’s value as variable is void: LaTeX-font-family


From: jfbu
Subject: Re: defvar: Symbol’s value as variable is void: LaTeX-font-family
Date: Mon, 24 Apr 2023 21:57:56 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:102.0) Gecko/20100101 Thunderbird/102.10.0


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 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









reply via email to

[Prev in Thread] Current Thread [Next in Thread]