[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-devel] Re: bug in TeX-math-input-method-off-regexp ?
From: |
Leo |
Subject: |
[AUCTeX-devel] Re: bug in TeX-math-input-method-off-regexp ? |
Date: |
Mon, 17 May 2010 10:16:52 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
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