bug-auctex
[Top][All Lists]
Advanced

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

bug#37124: Lisp snippet for TeX-electric-math in manual


From: Mosè Giordano
Subject: bug#37124: Lisp snippet for TeX-electric-math in manual
Date: Wed, 21 Aug 2019 10:59:03 +0200

Hi Arash,

On Tue, 20 Aug 2019 at 22:57, Arash Esbati <address@hidden> wrote:
>
> Hi all,
>
> there is a lisp snippet in the manual for `TeX-electric-math'[1]:
>
>     (add-hook 'plain-TeX-mode-hook
>               (lambda () (set (make-variable-buffer-local 'TeX-electric-math)
>                               (cons "$" "$"))))
>     (add-hook 'LaTeX-mode-hook
>               (lambda () (set (make-variable-buffer-local 'TeX-electric-math)
>                               (cons "\\(" "\\)"))))
>
> `make-variable-buffer-local' seems wrong to me, I think
> `make-local-variable' is the intended function.

I think you're correct.

Bye,
Mosè





reply via email to

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