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


Message #13 received at 37124-done <at> debbugs.gnu.org (full text, mbox):

From: Arash Esbati <arash <at> gnu.org>
To: Mosè Giordano <mose <at> gnu.org>
Cc: 37124-done <at> debbugs.gnu.org
Subject: Re: bug#37124: Lisp snippet for TeX-electric-math in manual
Date: Fri, 23 Aug 2019 00:20:29 +0200
Mosè Giordano <mose <at> gnu.org> writes:

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

Hi Mosè,

thanks for your response.  I've pushed the change.  Closing this one.

Best, Arash




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

Previous Next


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