# HG changeset patch # User Kenichi Handa # Date 1164692078 0 # Node ID 9a11c329a57b012e9ba73eab29d5754fd323b9fc # Parent 5c03e223d11b0a02ad26f3ea7268cffad19c9050 (quail-get-translations): Make quail-current-key multibyte if not yet done. diff -r 5c03e223d11b -r 9a11c329a57b lisp/international/quail.el --- a/lisp/international/quail.el Mon Nov 27 07:39:53 2006 +0000 +++ b/lisp/international/quail.el Tue Nov 28 05:34:38 2006 +0000 @@ -2066,6 +2066,8 @@ (defun quail-get-translations () "Return a string containing the current possible translations." + (or (multibyte-string-p quail-current-key) + (setq quail-current-key (string-to-multibyte quail-current-key))) (let ((map (quail-lookup-key quail-current-key nil t)) (str (copy-sequence quail-current-key))) (if quail-current-translations @@ -2074,7 +2076,7 @@ ;; Show the current key. (let ((guidance (quail-guidance))) (if (listp guidance) - ;; We must replace thetyped key with the specified PROMPTKEY. + ;; We must replace the typed key with the specified PROMPT-KEY. (dotimes (i (length str)) (let ((prompt-key (cdr (assoc (aref str i) guidance)))) (if prompt-key