This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  d617398208ea2c98069c5d4b85f33cc787ac2c7d (commit)
      from  68d2559f1672d9992fb70a5a35e2b3e2e78ff88e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d617398208ea2c98069c5d4b85f33cc787ac2c7d
Author: Mosè Giordano <giordano.m...@libero.it>
Date:   Mon Jan 6 15:34:46 2014 +0100

    Use TeX-electric-math in LaTeX-math-insert/cal.
    
    * latex.el (LaTeX-math-insert): Use `TeX-electric-math' for
    consistency with `TeX-insert-dollar'.
    (LaTeX-math-cal): Ditto.

diff --git a/ChangeLog b/ChangeLog
index 0c376c4..f3573f0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-01-06  Mosè Giordano  <giordano.m...@libero.it>
+
+       * latex.el (LaTeX-math-insert): Use `TeX-electric-math' for
+       consistency with `TeX-insert-dollar'.
+       (LaTeX-math-cal): Ditto.
+
 2013-12-24  Mosè Giordano  <giordano.m...@libero.it>
 
        * tex-style.el (LaTeX-fontspec-arg-font-search): New customizable
diff --git a/latex.el b/latex.el
index 5f6d194..684f36d 100644
--- a/latex.el
+++ b/latex.el
@@ -1,6 +1,6 @@
 ;;; latex.el --- Support for LaTeX documents.
 
-;; Copyright (C) 1991, 1993-2013 Free Software Foundation, Inc.
+;; Copyright (C) 1991, 1993-2014 Free Software Foundation, Inc.
 
 ;; Maintainer: auctex-devel@gnu.org
 ;; Keywords: tex
@@ -4963,19 +4963,23 @@ commands are defined:
   :type 'function)
 
 (defun LaTeX-math-insert (string dollar)
-  "Insert \\STRING{}.  If DOLLAR is non-nil, put $'s around it."
-  (if dollar (insert "$"))
+  "Insert \\STRING{}.  If DOLLAR is non-nil, put $'s around it.
+If `TeX-electric-math' is non-nil wrap that symbols around the
+string."
+  (if dollar (insert (or (car TeX-electric-math) "$")))
   (funcall LaTeX-math-insert-function string)
-  (if dollar (insert "$")))
+  (if dollar (insert (or (cdr TeX-electric-math) "$"))))
 
 (defun LaTeX-math-cal (char dollar)
-  "Insert a {\\cal CHAR}.  If DOLLAR is non-nil, put $'s around it."
+  "Insert a {\\cal CHAR}.  If DOLLAR is non-nil, put $'s around it.
+If `TeX-electric-math' is non-nil wrap that symbols around the
+char."
   (interactive "*c\nP")
-  (if dollar (insert "$"))
+  (if dollar (insert (or (car TeX-electric-math) "$")))
   (if (member "latex2e" (TeX-style-list))
       (insert "\\mathcal{" (char-to-string char) "}")
     (insert "{\\cal " (char-to-string char) "}"))
-  (if dollar (insert "$")))
+  (if dollar (insert (or (cdr TeX-electric-math) "$"))))
 
 
 ;;; Folding

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog |    6 ++++++
 latex.el  |   18 +++++++++++-------
 2 files changed, 17 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX

_______________________________________________
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs

Reply via email to