(quail-exit-from-minibuffer): Call
inactivate-input-method instead of (quail-mode -1).
(quail-kill-guidance-buf): New function.
(quail-mode): Doc-string and comments modified. Make this
function non-interactive. Add quail-kill-guidance-buf to
kill-buffer-hook locally.
(quail-start-translation): Check if the current Quail package
requires keyboard tranlation feature.
(quail-start-translation-in-conversion-mode): Likewise.
(quail-terminate-translation): Run hooks in
input-method-after-insert-chunk-hook.
(quail-update-translation): Don't run hooks in
input-method-after-insert-chunk-hook here.
(quail-setup-completion-buf): New function.
(quail-show-guidance-buf): Create completion buffer by calling
quail-setup-completion-buf.
(quail-completion): Create completion buffer if it is not alive.