From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 20 16:56:07 2019 Received: (at submit) by debbugs.gnu.org; 20 Aug 2019 20:56:07 +0000 Received: from localhost ([127.0.0.1]:34157 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i0BAl-0005Qw-Hx for submit@debbugs.gnu.org; Tue, 20 Aug 2019 16:56:07 -0400 Received: from lists.gnu.org ([209.51.188.17]:53160) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i0BAj-0005Qo-Lq for submit@debbugs.gnu.org; Tue, 20 Aug 2019 16:56:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51993) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0BAi-0004F9-7r for bug-auctex@gnu.org; Tue, 20 Aug 2019 16:56:05 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:470:142:3::e]:55760) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i0BAi-0003J8-4E for bug-auctex@gnu.org; Tue, 20 Aug 2019 16:56:04 -0400 Received: from p5b326a15.dip0.t-ipconnect.de ([91.50.106.21]:53259 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1i0BAg-0001vg-Rd for bug-auctex@gnu.org; Tue, 20 Aug 2019 16:56:03 -0400 From: Arash Esbati To: auctex-bugs Subject: Lisp snippet for TeX-electric-math in manual Date: Tue, 20 Aug 2019 22:53:11 +0200 Message-ID: <86imqrtv7s.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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. Am I missing something? Otherwise I'd install the following patch: --8<---------------cut here---------------start------------->8--- diff --git a/doc/auctex.texi b/doc/auctex.texi index 693fdf6b..cb257572 100644 --- a/doc/auctex.texi +++ b/doc/auctex.texi @@ -459,10 +459,10 @@ and @samp{\(...\)} in @LaTeX{} files by pressing @kbd{$}, add the following to your init file @lisp (add-hook 'plain-TeX-mode-hook - (lambda () (set (make-variable-buffer-local 'TeX-electric-math) + (lambda () (set (make-local-variable 'TeX-electric-math) (cons "$" "$")))) (add-hook 'LaTeX-mode-hook - (lambda () (set (make-variable-buffer-local 'TeX-electric-math) + (lambda () (set (make-local-variable 'TeX-electric-math) (cons "\\(" "\\)")))) @end lisp --8<---------------cut here---------------end--------------->8--- Best, Arash Footnotes: [1] https://www.gnu.org/software/auctex/manual/auctex.html#index-TeX_002delectric_002dmath From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 21 04:59:52 2019 Received: (at 37124) by debbugs.gnu.org; 21 Aug 2019 08:59:52 +0000 Received: from localhost ([127.0.0.1]:34782 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i0MT9-0006mq-7J for submit@debbugs.gnu.org; Wed, 21 Aug 2019 04:59:52 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47854) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i0MT7-0006mf-OE for 37124@debbugs.gnu.org; Wed, 21 Aug 2019 04:59:50 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37450) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i0MT2-0007P1-Hd for 37124@debbugs.gnu.org; Wed, 21 Aug 2019 04:59:44 -0400 Received: from mail-vs1-f52.google.com ([209.85.217.52]:45697) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1i0MSy-0006FH-Kq for 37124@debbugs.gnu.org; Wed, 21 Aug 2019 04:59:41 -0400 Received: by mail-vs1-f52.google.com with SMTP id j25so848710vsq.12 for <37124@debbugs.gnu.org>; Wed, 21 Aug 2019 01:59:40 -0700 (PDT) X-Gm-Message-State: APjAAAV592rBKrbpYZOZjxcWO2vrFRdHjJZwP4vyexuo3qUPK4Y3NzPk R0T0TXS6RqdNWqkCvKYP2ldMzsktDNWtcGF68qw= X-Google-Smtp-Source: APXvYqwNZ5WRPZoUsfzWBdcGtgThF8APPXvh+x4GNxV2HNowHLF3XSxEMBlgjgpc250Qd1goJ0pxWfepGDuXkEznGm4= X-Received: by 2002:a67:fe54:: with SMTP id m20mr4941736vsr.10.1566377980122; Wed, 21 Aug 2019 01:59:40 -0700 (PDT) MIME-Version: 1.0 References: <86imqrtv7s.fsf@gnu.org> In-Reply-To: <86imqrtv7s.fsf@gnu.org> From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Wed, 21 Aug 2019 10:59:03 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bug#37124: Lisp snippet for TeX-electric-math in manual To: Arash Esbati Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 37124 Cc: 37124@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Arash, On Tue, 20 Aug 2019 at 22:57, Arash Esbati 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-m= ath) > (cons "$" "$")))) > (add-hook 'LaTeX-mode-hook > (lambda () (set (make-variable-buffer-local 'TeX-electric-m= ath) > (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=C3=A8 From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 22 18:32:50 2019 Received: (at 37124-done) by debbugs.gnu.org; 22 Aug 2019 22:32:50 +0000 Received: from localhost ([127.0.0.1]:38403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i0vdR-00053M-Un for submit@debbugs.gnu.org; Thu, 22 Aug 2019 18:32:50 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38850) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i0vdO-000538-OE for 37124-done@debbugs.gnu.org; Thu, 22 Aug 2019 18:32:47 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i0vdJ-0008PX-Ho for 37124-done@debbugs.gnu.org; Thu, 22 Aug 2019 18:32:41 -0400 Received: from p5b326ff3.dip0.t-ipconnect.de ([91.50.111.243]:52486 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1i0vdH-00023l-3K; Thu, 22 Aug 2019 18:32:39 -0400 From: Arash Esbati To: =?iso-8859-1?Q?Mos=E8?= Giordano Subject: Re: bug#37124: Lisp snippet for TeX-electric-math in manual References: <86imqrtv7s.fsf@gnu.org> Date: Fri, 23 Aug 2019 00:20:29 +0200 In-Reply-To: (=?iso-8859-1?Q?=22Mos=E8?= Giordano"'s message of "Wed, 21 Aug 2019 10:59:03 +0200") Message-ID: <86d0gwj102.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 37124-done Cc: 37124-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Mos=E8 Giordano writes: > On Tue, 20 Aug 2019 at 22:57, Arash Esbati 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=E8, thanks for your response. I've pushed the change. Closing this one. Best, Arash From unknown Sun Aug 17 01:49:20 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 20 Sep 2019 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator