branch: elpa
commit 71349ec6a632f00dfe5365d3f29238b0ec1ef616
Author: Ikumi Keita <[email protected]>
Commit: Mosè Giordano <[email protected]>

    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 <[email protected]>
---
 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."
        (texmathp)
        (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