[Top][All Lists]

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

Re: [Emacs-diffs] master 7b31de4: Add hook for all events

From: Phillip Lord
Subject: Re: [Emacs-diffs] master 7b31de4: Add hook for all events
Date: Mon, 28 Jan 2019 09:54:08 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.90 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>> It also has a practical impact; it is not possible to complete when an
>> input method is in the middle of the multi key press. So, for example,
>> with italian-postfix you can no longer complete on a prefix ending in
>> an "e" or and "i"; pressing "e" removes completion suggestions, but does
>> not trigger adding them because "e" could be "e`".
> Hmm... this is a bummer (in some input methods, many/most chars are
> prefixes of something else).  IIUC this is not a new problem introduced
> by the use of input-event-functions, tho, right?

My experience is that completion doesn't work when an input method is
half way through, although I only use simple input methods.

Anyway, I checked (should have done this before I sent the last email,
sorry). The buffer is not changed by an input method half way through
(or at least "before-change-function" is not called, which I am assuming
is the same thing). So, when the buffer appears to say "pizza_[`]", if
it does offer a completion at all, it's going to offer one based on
"pizz" because they "a" is not in the buffer.

The ideal behaviour here would be to offer completions based on either
"pizza" or "pizza`". Completion would then do the work of the input
method also. I am guessing that this is would be non trivial to add. For
sure, pabbrev and I guess company would have to work on what the user
sees, not what is in the buffer; and this is likely to be wrong nearly
as often as it is right.


reply via email to

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