summaryrefslogtreecommitdiff
path: root/leim/quail
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>1998-06-20 02:58:52 +0000
committerKenichi Handa <handa@m17n.org>1998-06-20 02:58:52 +0000
commit7678db25908533644d10d7eb5164ca588ab9b663 (patch)
treefec8b3479dedc62e32a52836c4c2c0456bb36f79 /leim/quail
parent1ca074258e51b83a3a8eb988f2fcc7f98ecbcefc (diff)
downloademacs-7678db25908533644d10d7eb5164ca588ab9b663.tar.gz
Don't add hook to quail-mode-hook.
(ethio-select-a-translation): New function.
Diffstat (limited to 'leim/quail')
-rw-r--r--leim/quail/ethiopic.el17
1 files changed, 6 insertions, 11 deletions
diff --git a/leim/quail/ethiopic.el b/leim/quail/ethiopic.el
index 3377b9117b0..951e503ccc1 100644
--- a/leim/quail/ethiopic.el
+++ b/leim/quail/ethiopic.el
@@ -1026,16 +1026,11 @@ C-' or `M-x ethio-gemination'
("`1000000" ["$(3%$%%(B"])
)
-(add-hook 'quail-mode-hook
- (lambda nil
- (if (not (string= (quail-name) "ethiopic"))
- nil
- ;; Also turn on the Ethio minor mode.
- (ethio-mode 1)
- ;; The translation of `a' depends on the language
- ;; (either Tigrigna or Amharic).
- (quail-defrule "a"
- (if (ethio-prefer-amharic-p) ?$(3"c(B ?$(3"f(B)
- "ethiopic"))))
+(defun ethio-select-a-translation ()
+ ;; The translation of `a' depends on the language
+ ;; (either Tigrigna or Amharic).
+ (quail-defrule "a"
+ (if (ethio-prefer-amharic-p) ?$(3"c(B ?$(3"f(B)
+ "ethiopic"))
;;; quail/ethiopic.el ends here