From: Eli Zaretskii <eliz@gnu.org>
To: Qiantan Hong <qhong@mit.edu>
Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: Behavior of input method -- crdt.el
Date: Mon, 19 Oct 2020 18:06:25 +0300 [thread overview]
Message-ID: <83imb6p85q.fsf@gnu.org> (raw)
In-Reply-To: <B63E4593-6EFC-49FB-B556-5D1DFD1A99ED@mit.edu> (message from Qiantan Hong on Mon, 19 Oct 2020 14:55:31 +0000)
> From: Qiantan Hong <qhong@mit.edu>
> CC: Stefan Monnier <monnier@iro.umontreal.ca>,
> "emacs-devel@gnu.org"
> <emacs-devel@gnu.org>
> Date: Mon, 19 Oct 2020 14:55:31 +0000
>
> > This isn't limited to input methods, btw: did you try typing several
> > characters that are composed together on display into a single
> > grapheme cluster (under auto-composition-mode)? what happens if remote
> > command arrives in the middle of this sequence and moves point?
> Is there variable to detect such usage like “quail-translating”?
No. But is there a problem?
> > We are talking about Leim input methods, not about the input methods
> > your OS supports. Do such long sequences that produce entire phrases
> > happen in our input methods? If so, can you show an example?
> There are input methods written by users using Quail framework.
> E.g. https://melpa.org/#/pyim
Can you help me with an example of a long sequence that produces an
entire phrase with that input method?
> > Do we have to employ hacks? Quail input methods tell you when they
> > don't expect to be interrupted, by setting quail-translating to a
> > non-nil value; why not use that indication to handle this issue in a
> > non-hackish way?
> For quail input method, remote command will never interrupt the
> sequence themselves. Because crdt.el doesn’t assign CRDT IDs
> to those pending text, remote change will never resolve in the middle
> of such sequence. They are not synchronized to other peers either.
> It follows exact the conceptual model “text pending translation
> are not in the buffer yet, they’re just displayed there”. They don’t
> need to lock the buffer either.
I'm not sure I understand: are you saying that the problem with
receiving remote commands in the middle of a Leim input sequence
doesn't exist? If so, what was the situation about which you asked
the question that started this thread?
prev parent reply other threads:[~2020-10-19 15:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-18 3:47 Behavior of input method -- crdt.el Qiantan Hong
2020-10-18 4:46 ` Eli Zaretskii
2020-10-18 13:26 ` Stefan Monnier
2020-10-18 20:34 ` Qiantan Hong
2020-10-18 20:52 ` Stefan Monnier
2020-10-19 2:28 ` Eli Zaretskii
2020-10-19 2:48 ` Qiantan Hong
2020-10-19 3:07 ` Stefan Monnier
2020-10-19 14:29 ` Eli Zaretskii
2020-10-19 14:55 ` Qiantan Hong
2020-10-19 15:06 ` Eli Zaretskii [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83imb6p85q.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=qhong@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.