emacs-devel
[Top][All Lists]
Advanced

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

Re: Behavior of input method -- crdt.el


From: Stefan Monnier
Subject: Re: Behavior of input method -- crdt.el
Date: Sun, 18 Oct 2020 16:52:36 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> Why?  Why isn't the exact same erroneous erase+insert propagated to the
>> other peers?
> No, it seems that the input method secretly change buffer text
> without calling *-change-functions.

Hmm... That's clearly a problem.  I can imagine some reasons why we do
that, but I'm not sure they're good enough.  This probably deserves
a `M-x report-emacs-bug`.

> I’ve figured a hack already, that still allows real time remote changes
> to apply.

Another approach is indeed to consider the input-method insertion as an
"atomic transaction" and hence postpone remote updates until that
transaction is completed (or at least to do that if the remote updates
touch the affected text area).  But indeed, that can be problematic (with
some input methods, a single char can terminate the previous entry and
start the next at the same time, so it's possible to be "in the middle
of an input-method insertion" for quite a while).


        Stefan




reply via email to

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