[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:24 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> I'm trying to do what I consider a very typical requirement: swap two
> values of default input method. Unfortunately, I could not find any
> documented solution (outside of info-manuals, just using f1 v and f1
> f). To get it working, I was forced to inspect the sources... Is
> there a simpler solution?
I must say I do not really understand what you're trying to do, but to
change between two different values of default input methods, I'd do
something like:
(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.
Stefan
- Re: Swapping default input method: why so complicated?, (continued)
Re: Swapping default input method: why so complicated?,
Stefan Monnier <=