branch: main
commit b7cb89dfb017df6535560a03752a0f6b1f24c8bc
Author: Ikumi Keita <[email protected]>
Commit: Ikumi Keita <[email protected]>
Guard `expand-abbrev' calls with `abbrev-mode' check
* tex-jp.el (japanese-TeX-insert-punctuation): Follow similar recent
change in `TeX-insert-punctuation'.
---
tex-jp.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tex-jp.el b/tex-jp.el
index 9d9c75a9..67ca1703 100644
--- a/tex-jp.el
+++ b/tex-jp.el
@@ -521,7 +521,8 @@ overwrite the value already set locally."
(defun japanese-TeX-insert-punctuation ()
"Insert point or comma, cleaning up preceding space."
(interactive)
- (expand-abbrev)
+ (when abbrev-mode
+ (expand-abbrev))
(if (TeX-looking-at-backward "\\\\/\\(}+\\)" 50)
(replace-match "\\1" t))
(call-interactively #'japanese-TeX-self-insert-command))