On 2010-05-17 08:23 +0100, Georgi Boshnakov wrote:
> Hello,
>
> In tex.el, there seems to be a bug in the string
>
>      TeX-math-input-method-off-regexp
>
> which is
>
>     "^\\(chinese\\|japanese\\|korean\\bulgarian\\russian\\)"
>
> (Notice the absence of `|'  in the Cyrillic languages.)
>
> Shouldn't it be
>
> (setq TeX-math-input-method-off-regexp
>       "^\\(chinese\\|japanese\\|korean\\|bulgarian\\|russian\\)")

I think it is a bug too. I have applied the following patch in my local
branch.

diff --git a/tex.el b/tex.el
index 7260895..0f6f459 100644
--- a/tex.el
+++ b/tex.el
@@ -4941,7 +4941,7 @@ sign.  With optional ARG, insert that many dollar signs."
   (TeX-math-input-method-off))
 
 (defvar TeX-math-input-method-off-regexp
-  "^\\(chinese\\|japanese\\|korean\\bulgarian\\russian\\)"
+  (concat "^" (regexp-opt '("chinese" "japanese" "korean" "bulgarian" 
"russian") t))
   "Regexp matching input methods to be deactivated when entering math mode.")
 
 (defun TeX-math-input-method-off ()


> I have this in my .emacs and haven't noticed that it is still wrong in
> AucTeX 11.86.
>
> Georgi

Leo


_______________________________________________
auctex-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to