branch: externals/auctex
commit 7cb6c194778f5f0f00000d21fc4ede2113852265
Author: Arash Esbati <[email protected]>
Commit: Arash Esbati <[email protected]>

    Fix lisp example for `TeX-electric-math'
    
    * doc/auctex.texi (Quotes): Use `make-local-variable' instead of
    `make-variable-buffer-local' in lisp example for init file.  (bug#37124)
---
 doc/auctex.texi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/auctex.texi b/doc/auctex.texi
index 693fdf6..cb25757 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
 

Reply via email to