*** Input methods are now implemented using the variable
input-method-function. If this is non-nil, its value should be a
function; then, whenever Emacs reads an input event that is a printing
character with no modifier bits, it calls that function, passing the
event as an argument. Often this function will read more input, first
binding input-method-function to nil.
The return value should be a list of the events resulting from input method processing. These events will be processed sequentially as input, before resorting to unread-command-events. Events returned by the input method function are not passed to the input method function, not even if they are printing characters with no modifier bits.
The input method function is not called when reading the second and subsequent events of a key sequence.