auctex-devel
[Top][All Lists]
Advanced

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

Re: master 6b5f00bf: Unquote lambdas in font-latex.el & tex-bar.el; add


From: Arash Esbati
Subject: Re: master 6b5f00bf: Unquote lambdas in font-latex.el & tex-bar.el; add some FIXMEs
Date: Mon, 29 Aug 2022 23:25:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50

Tassilo Horn <tsdh@gnu.org> writes:

> branch: master
> commit 6b5f00bfaca715fe7fcbf30d5811cef22f4fd529
> Author: Stefan Monnier <monnier@iro.umontreal.ca>
> Commit: Tassilo Horn <tsdh@gnu.org>
>
>     Unquote lambdas in font-latex.el & tex-bar.el; add some FIXMEs
>     
>     * font-latex.el (font-latex-match-math-env)
>     (font-latex-match-math-envII,font-latex-match-dollar-math)
>     (font-latex-match-quotation): Add FIXMEs.
>     * tex-bar.el (TeX-bar-TeX-button-alist)
>     (TeX-bar-LaTeX-button-alist,menu-strings-buttons-alist): Unquote lambdas.
> ---
> diff --git a/tex-bar.el b/tex-bar.el
> index 9df6c870..024a268d 100644
> --- a/tex-bar.el
> +++ b/tex-bar.el
[...]
>                    (toolbarx-refresh))
>         ;; help message depends on if symb-toolbar is on or off, and in
>         ;; the name of the current class of symbols
> -       :help (lambda (&rest ignore)
> -               (concat "Turn "
> -                       (if LaTeX-symbols-toolbar-visible-flag "off " "on ")
> -                       "the toolbar of LaTeX symbols (current class: "
> -                       (nth (1- LaTeX-symbols-active-menuitem)
> -                            (quote ,list-strings))
> -                       ")")))
> +       :help ,(lambda (&rest _ignore)
> +                (concat "Turn "
> +                        (if LaTeX-symbols-toolbar-visible-flag "off " "on ")
> +                        "the toolbar of LaTeX symbols (current class: "
> +                        (nth (1- LaTeX-symbols-active-menuitem)
> +                             (quote ,list-strings))
> +                        ")")))
>        ;; the dropdown button, that also switch on the symbols
>        ,(append '(:dropdown-group)
>                 list-strings

After this change, the compiler says:

  In toplevel form:
  tex-bar.el:481:34: Warning: reference to free variable
  `LaTeX-symbols-active-menuitem'

Is anybody familiar with this code in order to pacify this?

  git grep LaTeX-symbols-active-menuitem

doesn't show anything useful.

TIA.  Best, Arash



reply via email to

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