GNU bug report logs - #37124
Lisp snippet for TeX-electric-math in manual

Previous Next

Package: auctex;

Reported by: Arash Esbati <arash <at> gnu.org>

Date: Tue, 20 Aug 2019 20:57:02 UTC

Severity: normal

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mosè Giordano <mose <at> gnu.org>
To: Arash Esbati <arash <at> gnu.org>
Cc: 37124 <at> debbugs.gnu.org
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 <arash <at> gnu.org> 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è




This bug report was last modified 5 years and 332 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.