[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Swapping default input method: why so complicated?
From: |
Stefan Monnier |
Subject: |
Re: Swapping default input method: why so complicated? |
Date: |
Wed, 08 Dec 2010 15:36:58 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
>> (defun my-foo ()
>> (interactive)
>> (setq default-input-method
>> (if (eq default-input-method 'toto) 'titi 'toto)))
>>
>> but that only affects the default method to use, not the method actually
>> in use.
> YEAH, RIGHT! ;-)
> This is what I had for a year - and was trying (for a year!) to
> understand - why THIS works only time-to-time.
> Inspecting the code shows that the actual "default input method" is
> NOT in 'default-input-method, but is a COMPUTED value based on 3
> different stored pieces of information. Hence my question (and
> working code I posted).
Hmm... I'm not very familiar with the input method code, but the little
bit of it I've used and the documentation seems to agree with my
understanding, so we at least have a doc bug here.
Stefan
- Re: Swapping default input method: why so complicated?, (continued)
Re: Swapping default input method: why so complicated?, Stefan Monnier, 2010/12/08