Subject: Re: bug#52245: Wishlist: cycle input methods

From: André A. Gomes <[email-masked]>
Date: Tue, 07 Dec 2021 15:51:40 +0000

Eli Zaretskii <[email-masked]> writes:

>> From: Robert Pluim <[email-masked]>
>> Date: Thu, 02 Dec 2021 16:49:56 +0100
>> Cc: [email-masked]
>>
>> `default-input-method' is currently either nil or an input method to
>> use for `toggle-input-method'. Extend it to allow it to be a list to
>> cycle through, containing either
>>
>> - input-method symbols
>> - the symbol 'input-method-history
>>
>> So you could have eg
>>
>> '(latin-prefix input-method-history czech)
>>
>> If input-method-history contained 'polish, then cycling would go
>>
>> latin-prefix -> polish -> czech -> no input method
>
> That's okay, but we should have this as an optional behavior, so that
> people could still toggle only between some input method and no input
> method with a single C-\, even if they defined a list of them.

I agree, but there's a minor detail.  C-\ should not toggle between nil
and the last selected input method, but between the last selected input
method and `default-input-method`, which might be non-nil.

--
André A. Gomes
"Free Thought, Free World"