]> git.eshelyaron.com Git - emacs.git/commitdiff
Require quail at comile time.
authorKenichi Handa <handa@m17n.org>
Wed, 12 May 2004 02:36:01 +0000 (02:36 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 12 May 2004 02:36:01 +0000 (02:36 +0000)
(describe-char): If an input method is on and it supports the
character, show how to input it.

lisp/descr-text.el

index 6b4f18ff71826071dec81144d38dc0f1df078b1e..61ddf928f7e9440b0435f055be63451254cbaf3d 100644 (file)
@@ -28,7 +28,7 @@
 
 ;;; Code:
 
-(eval-when-compile (require 'button))
+(eval-when-compile (require 'button) (require 'quail))
 
 (defun describe-text-done ()
   "Delete the current window or bury the current buffer."
@@ -524,6 +524,13 @@ as well as widgets, buttons, overlays, and text properties."
                    (push (format "%s:" (pop props)) ps)
                    (push (format "%s;" (pop props)) ps))
                  (list (cons "Properties" (nreverse ps)))))
+           ("to input"
+            ,@(let ((key-list (and current-input-method
+                                   (quail-find-key char))))
+                (if (consp key-list)
+                    (list "type"
+                          (mapconcat #'(lambda (x) (concat "\"" x "\""))
+                                     key-list " or ")))))
            ("buffer code"
             ,(encoded-string-description
               (string-as-unibyte (char-to-string char)) nil))