emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pre-command-hook with input methods


From: Stefan Monnier
Subject: Re: pre-command-hook with input methods
Date: Fri, 06 Feb 2015 18:58:54 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> That's because by default there's no input method active.  So, I guess,
> the trick would be to use input-method-activate-hook to advice the
> input-method-function.

The Right Way to fix this is to change the default value to be non-nil.
In this case, I think using #'list might work.

>> (you'll need an :around advice, and you'll need to check the orig
>> function (in case it's nil) before calling it).
>> There's clearly room for improvement here.
> A bit messy, yes. I blame all foreigners and their diacritics.

Obviously if we could ditch those damn foreigners things would be
a lot easier.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]