[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] elpa 71349ec 23/51: Use `deactivate-input-method' if defined

From: Tassilo Horn
Subject: [elpa] elpa 71349ec 23/51: Use `deactivate-input-method' if defined
Date: Sun, 22 May 2016 07:22:49 +0000 (UTC)

branch: elpa
commit 71349ec6a632f00dfe5365d3f29238b0ec1ef616
Author: Ikumi Keita <address@hidden>
Commit: Mosè Giordano <address@hidden>

    Use `deactivate-input-method' if defined
    * tex.el (TeX-math-input-method-off): Use `deactivate-input-method'
    instead of obsolete function `inactivate-input-method' when possible.
    Signed-off-by: Mosè Giordano <address@hidden>
 tex.el |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tex.el b/tex.el
index 7ca5bb2..cf9faae 100644
--- a/tex.el
+++ b/tex.el
@@ -5950,7 +5950,10 @@ sign.  With optional ARG, insert that many dollar signs."
        (boundp 'current-input-method) current-input-method
        (string-match TeX-math-input-method-off-regexp current-input-method)
-       (inactivate-input-method)))
+       ;; inactivate-input-method is obsolete since emacs 24.3.
+       (if (fboundp 'deactivate-input-method)
+          (deactivate-input-method)
+        (inactivate-input-method))))
 ;;; Simple Commands

reply via email to

[Prev in Thread] Current Thread [Next in Thread]