diff options
| author | Kenichi Handa | 2004-05-12 02:36:01 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2004-05-12 02:36:01 +0000 |
| commit | 309473d014bf6a1cbdb3c695bef3f9d3136aa7ee (patch) | |
| tree | 3af8332f034b9e843fcc107da57c6fe7b6fc75a0 /lisp | |
| parent | ae9292e0cb5b40127e9b55ae8e02c29d13c35c74 (diff) | |
| download | emacs-309473d014bf6a1cbdb3c695bef3f9d3136aa7ee.tar.gz emacs-309473d014bf6a1cbdb3c695bef3f9d3136aa7ee.zip | |
Require quail at comile time.
(describe-char): If an input method is on and it supports the
character, show how to input it.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/descr-text.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/descr-text.el b/lisp/descr-text.el index 6b4f18ff718..61ddf928f7e 100644 --- a/lisp/descr-text.el +++ b/lisp/descr-text.el | |||
| @@ -28,7 +28,7 @@ | |||
| 28 | 28 | ||
| 29 | ;;; Code: | 29 | ;;; Code: |
| 30 | 30 | ||
| 31 | (eval-when-compile (require 'button)) | 31 | (eval-when-compile (require 'button) (require 'quail)) |
| 32 | 32 | ||
| 33 | (defun describe-text-done () | 33 | (defun describe-text-done () |
| 34 | "Delete the current window or bury the current buffer." | 34 | "Delete the current window or bury the current buffer." |
| @@ -524,6 +524,13 @@ as well as widgets, buttons, overlays, and text properties." | |||
| 524 | (push (format "%s:" (pop props)) ps) | 524 | (push (format "%s:" (pop props)) ps) |
| 525 | (push (format "%s;" (pop props)) ps)) | 525 | (push (format "%s;" (pop props)) ps)) |
| 526 | (list (cons "Properties" (nreverse ps))))) | 526 | (list (cons "Properties" (nreverse ps))))) |
| 527 | ("to input" | ||
| 528 | ,@(let ((key-list (and current-input-method | ||
| 529 | (quail-find-key char)))) | ||
| 530 | (if (consp key-list) | ||
| 531 | (list "type" | ||
| 532 | (mapconcat #'(lambda (x) (concat "\"" x "\"")) | ||
| 533 | key-list " or "))))) | ||
| 527 | ("buffer code" | 534 | ("buffer code" |
| 528 | ,(encoded-string-description | 535 | ,(encoded-string-description |
| 529 | (string-as-unibyte (char-to-string char)) nil)) | 536 | (string-as-unibyte (char-to-string char)) nil)) |