(quail-show-key): Signal an error if the
authorKenichi Handa <handa@m17n.org>
Thu, 1 Feb 2007 01:45:04 +0000 (01:45 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 1 Feb 2007 01:45:04 +0000 (01:45 +0000)
current input method is not using Quail.

lisp/international/quail.el

index aec2358..7cedcbf 100644 (file)
@@ -2772,6 +2772,8 @@ If CHAR is an ASCII character and can be input by typing itself, return t."
   (interactive)
   (or current-input-method
       (error "No input method is activated"))
+  (or (assoc current-input-method quail-package-alist)
+      (error "The current input method is not using Quail."))
   (let* ((char (following-char))
         (key-list (quail-find-key char)))
     (cond ((consp key-list)