branch: master
commit b3305a78fc4017d4d223a1599a003fddeb2c0dd2
Author: Arash Esbati <ar...@gnu.org>
Commit: Arash Esbati <ar...@gnu.org>

    Prefer `setq-local' in doc/auctex.texi
    
    * doc/auctex.texi (Quotes): Prefer `setq-local' over `set' and
    `make-local-variable' combination.
---
 doc/auctex.texi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/doc/auctex.texi b/doc/auctex.texi
index c79e8c20..2d711fec 100644
--- a/doc/auctex.texi
+++ b/doc/auctex.texi
@@ -452,11 +452,11 @@ 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-local-variable 'TeX-electric-math)
-                          (cons "$" "$"))))
+          (lambda () (setq-local TeX-electric-math
+                                 (cons "$" "$"))))
 (add-hook 'LaTeX-mode-hook
-          (lambda () (set (make-local-variable 'TeX-electric-math)
-                          (cons "\\(" "\\)"))))
+          (lambda () (setq-local TeX-electric-math
+                                 (cons "\\(" "\\)"))))
 @end lisp
 
 Math mode which didn't start with dollar(s) shouldn't be closed with dollar.

Reply via email to