aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2007-06-18 15:17:46 +0000
committerKenichi Handa2007-06-18 15:17:46 +0000
commitacd1b9bda4d97d05fab8d678590f9adac9a46f2f (patch)
treedcd4f75bccb4efe6e1662f9640509d1897352765
parent554b610f776c60dfb5c773e69928d1e1b9862bfc (diff)
downloademacs-acd1b9bda4d97d05fab8d678590f9adac9a46f2f.tar.gz
emacs-acd1b9bda4d97d05fab8d678590f9adac9a46f2f.zip
(describe-language-environment):
Check if the specified input method exists or not.
-rw-r--r--lisp/international/mule-cmds.el40
1 files changed, 21 insertions, 19 deletions
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index 5ffd0174b7b..4f9d9c258f3 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -2020,27 +2020,29 @@ Setting this variable directly does not take effect. See
2020 (insert "Sample text:\n " str "\n\n"))) 2020 (insert "Sample text:\n " str "\n\n")))
2021 (error nil)) 2021 (error nil))
2022 (let ((input-method (get-language-info language-name 'input-method)) 2022 (let ((input-method (get-language-info language-name 'input-method))
2023 (l (copy-sequence input-method-alist))) 2023 (l (copy-sequence input-method-alist))
2024 (insert "Input methods") 2024 (first t))
2025 (when input-method 2025 (when (and input-method
2026 (insert " (default " input-method ")") 2026 (setq input-method (assoc input-method l)))
2027 (setq input-method (assoc input-method input-method-alist)) 2027 (insert "Input methods (default " (car input-method) ")\n")
2028 (setq l (cons input-method (delete input-method l)))) 2028 (setq l (cons input-method (delete input-method l))
2029 (insert ":\n") 2029 first nil))
2030 (while l 2030 (dolist (elt l)
2031 (when (eq t (compare-strings language-name nil nil 2031 (when (or (eq input-method elt)
2032 (nth 1 (car l)) nil nil t)) 2032 (eq t (compare-strings language-name nil nil
2033 (insert " " (car (car l))) 2033 (nth 1 elt) nil nil t)))
2034 (search-backward (car (car l))) 2034 (when first
2035 (help-xref-button 0 'help-input-method (car (car l))) 2035 (insert "Input methods:\n")
2036 (setq first nil))
2037 (insert " " (car elt))
2038 (search-backward (car elt))
2039 (help-xref-button 0 'help-input-method (car elt))
2036 (goto-char (point-max)) 2040 (goto-char (point-max))
2037 (insert " (\"" 2041 (insert " (\""
2038 (if (stringp (nth 3 (car l))) 2042 (if (stringp (nth 3 elt)) (nth 3 elt) (car (nth 3 elt)))
2039 (nth 3 (car l)) 2043 "\" in mode line)\n")))
2040 (car (nth 3 (car l)))) 2044 (or first
2041 "\" in mode line)\n")) 2045 (insert "\n")))
2042 (setq l (cdr l)))
2043 (insert "\n"))
2044 (insert "Character sets:\n") 2046 (insert "Character sets:\n")
2045 (let ((l (get-language-info language-name 'charset))) 2047 (let ((l (get-language-info language-name 'charset)))
2046 (if (null l) 2048 (if (null l)