changeset 75583:2a562d836178

(quail-show-key): Signal an error if the current input method is not using Quail.
author Kenichi Handa <handa@m17n.org>
date Thu, 01 Feb 2007 01:45:04 +0000
parents 586d8381a846
children 81bd2556e97d
files lisp/international/quail.el
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/international/quail.el	Thu Feb 01 01:04:59 2007 +0000
+++ b/lisp/international/quail.el	Thu Feb 01 01:45:04 2007 +0000
@@ -2772,6 +2772,8 @@
   (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)