emacs-devel
[Top][All Lists]
Advanced

[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:42:14 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.90 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>> Well, you should find it better; this hook is your code (I stole it from
>> a patch you sent in 2015). Sit-for, yes, would be a possibility, that I
>> hadn't thought off; you'd still need to filter the event using
>> `last-input-event' I guess. That would be a way of fixing company and
>> pabbrev in current Emacs. I will investigate.
>
> Another way might be to use a before/after-change-function (i.e. don't
> detect an input event but rather detect that the input method inserted
> something into the buffer).

I haven't checked, but I always assumed that input methods do not insert
anything in the buffer until a key sequence completes; rather than
everything was visual. Perhaps not; pabbrev used to insert suggestions
into the buffer, until you fixed it.

Phil



reply via email to

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