diff options
| author | Kenichi Handa | 2007-08-06 01:03:00 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2007-08-06 01:03:00 +0000 |
| commit | 570288ee6c79ff2c79d39ecb17f0e38fb37a7b7d (patch) | |
| tree | 87c5d37fea5b9bbface120c552ff1241a9ed7928 | |
| parent | e3dd424238e3f44caf3b3621fe678e60d075d2c2 (diff) | |
| download | emacs-570288ee6c79ff2c79d39ecb17f0e38fb37a7b7d.tar.gz emacs-570288ee6c79ff2c79d39ecb17f0e38fb37a7b7d.zip | |
Wrap (require 'help-mode) by
eval-when-compile.
(quail-help-init): New function.
(quail-help): Call quail-help-init.
(quail-store-decode-map-key): Change it to a function.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/international/quail.el | 29 |
2 files changed, 25 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 54cd7c66608..70fbba60737 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2007-08-06 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * international/quail.el: Wrap (require 'help-mode) by | ||
| 4 | eval-when-compile. | ||
| 5 | (quail-help-init): New function. | ||
| 6 | (quail-help): Call quail-help-init. | ||
| 7 | (quail-store-decode-map-key): Change it to a function. | ||
| 8 | |||
| 1 | 2007-08-05 Jason Rumney <jasonr@gnu.org> | 9 | 2007-08-05 Jason Rumney <jasonr@gnu.org> |
| 2 | 10 | ||
| 3 | * vc.el (vc-rollback): Add norevert argument back. | 11 | * vc.el (vc-rollback): Add norevert argument back. |
diff --git a/lisp/international/quail.el b/lisp/international/quail.el index 774e3c14269..98d4cc80ec5 100644 --- a/lisp/international/quail.el +++ b/lisp/international/quail.el | |||
| @@ -55,7 +55,7 @@ | |||
| 55 | 55 | ||
| 56 | ;;; Code: | 56 | ;;; Code: |
| 57 | 57 | ||
| 58 | (require 'help-mode) | 58 | (eval-when-compile (require 'help-mode)) |
| 59 | 59 | ||
| 60 | (defgroup quail nil | 60 | (defgroup quail nil |
| 61 | "Quail: multilingual input method." | 61 | "Quail: multilingual input method." |
| @@ -2431,22 +2431,27 @@ should be made by `quail-build-decode-map' (which see)." | |||
| 2431 | (insert ?\n)) | 2431 | (insert ?\n)) |
| 2432 | (insert ?\n)))) | 2432 | (insert ?\n)))) |
| 2433 | 2433 | ||
| 2434 | (define-button-type 'quail-keyboard-layout-button | 2434 | (defun quail-help-init () |
| 2435 | :supertype 'help-xref | 2435 | (unless (featurep 'help-mode) |
| 2436 | 'help-function '(lambda (layout) | 2436 | (require 'help-mode) |
| 2437 | (help-setup-xref `(quail-keyboard-layout-button ,layout) nil) | 2437 | (define-button-type 'quail-keyboard-layout-button |
| 2438 | (quail-show-keyboard-layout layout)) | 2438 | :supertype 'help-xref |
| 2439 | 'help-echo (purecopy "mouse-2, RET: show keyboard layout")) | 2439 | 'help-function '(lambda (layout) |
| 2440 | 2440 | (help-setup-xref `(quail-keyboard-layout-button ,layout) | |
| 2441 | (define-button-type 'quail-keyboard-customize-button | 2441 | nil) |
| 2442 | :supertype 'help-customize-variable | 2442 | (quail-show-keyboard-layout layout)) |
| 2443 | 'help-echo (purecopy "mouse-2, RET: customize keyboard layout")) | 2443 | 'help-echo (purecopy "mouse-2, RET: show keyboard layout")) |
| 2444 | |||
| 2445 | (define-button-type 'quail-keyboard-customize-button | ||
| 2446 | :supertype 'help-customize-variable | ||
| 2447 | 'help-echo (purecopy "mouse-2, RET: customize keyboard layout")))) | ||
| 2444 | 2448 | ||
| 2445 | (defun quail-help (&optional package) | 2449 | (defun quail-help (&optional package) |
| 2446 | "Show brief description of the current Quail package. | 2450 | "Show brief description of the current Quail package. |
| 2447 | Optional arg PACKAGE specifies the name of alternative Quail | 2451 | Optional arg PACKAGE specifies the name of alternative Quail |
| 2448 | package to describe." | 2452 | package to describe." |
| 2449 | (interactive) | 2453 | (interactive) |
| 2454 | (quail-help-init) | ||
| 2450 | (let ((help-xref-mule-regexp help-xref-mule-regexp-template) | 2455 | (let ((help-xref-mule-regexp help-xref-mule-regexp-template) |
| 2451 | (default-enable-multibyte-characters enable-multibyte-characters) | 2456 | (default-enable-multibyte-characters enable-multibyte-characters) |
| 2452 | (package-def | 2457 | (package-def |
| @@ -2629,7 +2634,7 @@ KEY BINDINGS FOR CONVERSION | |||
| 2629 | ;; it is not yet stored. As a result, the element is a string or a | 2634 | ;; it is not yet stored. As a result, the element is a string or a |
| 2630 | ;; list of strings. | 2635 | ;; list of strings. |
| 2631 | 2636 | ||
| 2632 | (defsubst quail-store-decode-map-key (table char key) | 2637 | (defun quail-store-decode-map-key (table char key) |
| 2633 | (let ((elt (aref table char))) | 2638 | (let ((elt (aref table char))) |
| 2634 | (if elt | 2639 | (if elt |
| 2635 | (if (consp elt) | 2640 | (if (consp elt) |