From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: Question collaborative editing - Wikipedia reference Date: Thu, 8 Oct 2020 22:42:42 -0400 Message-ID: <18458910-E6A1-4867-9936-FFA50E3E72D1@gmail.com> References: <83eemji6e8.fsf@gnu.org> <20201001141144.GO4797@protected.rcdrun.com> <20201001160136.chwmpollk4d3qc2e@Ergus> <20201004175447.GG15516@protected.rcdrun.com> <87362tvnil.fsf@gmail.com> <20201004194815.GH15516@protected.rcdrun.com> <11EB917D-3276-4D34-8DCD-2336E8062950@mit.edu> <20201005040245.GJ15516@protected.rcdrun.com> <20201005084441.GB4453@protected.rcdrun.com> <87zh50lhda.fsf@red-bean.com> <87pn5vgqsk.fsf@red-bean.com> <79924DB1-2613-4AF6-982C-39157CF3ED9B@mit.edu> <8C2D2AED-0AA8-48AC-ADB2-826177141F2F@gmail.com> <40B06E9F-A6D6-4F9B-8E2B-7DC55D16D0F7@mit.edu> Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37696"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Ergus , Fermin , Jean Louis , Caio Henrique , Noam Postavsky , Emacs developers , Karl Fogel , Stefan Monnier , Eli Zaretskii To: Qiantan Hong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 09 04:43:57 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kQiNx-0009iI-Kc for ged-emacs-devel@m.gmane-mx.org; Fri, 09 Oct 2020 04:43:57 +0200 Original-Received: from localhost ([::1]:38250 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQiNw-0002WU-Lq for ged-emacs-devel@m.gmane-mx.org; Thu, 08 Oct 2020 22:43:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQiMp-00024I-PC for emacs-devel@gnu.org; Thu, 08 Oct 2020 22:42:47 -0400 Original-Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]:39817) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kQiMn-0005E1-Th; Thu, 08 Oct 2020 22:42:47 -0400 Original-Received: by mail-qt1-x82a.google.com with SMTP id d1so6892081qtr.6; Thu, 08 Oct 2020 19:42:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=DBiWmhi9Fd6YyCZqg7qJWwCqzcjxUs3ftfMPtRudJOo=; b=OxMIU7iNCY7KGvSwc799duDStmqe7CiXxcDw13VA34uCk5ps8QTPc+R3b+nsSqeLw8 0twB4XrrAgUvA94vq9QahHoOWDJojYMNwk3kCfeK5cTF5nMYL3eoFYJW4wFspB+RFv+D 8W2699j9+9gTybHtVxqg3zG0SI66++7nszZs7bQ0DrRjJNakMKiiTUG7YhzSFVqLYGCo Blt7HbN0zGBZEc00Nu91td/Oaw2i/LSq8Bx+VBEi6ey9EeIjYrTeAP99Fi9F39MCNrb0 OFEfWgQVXPszpUlTC/eKwVGctbGpypnfvFozfWFRSE31yGMIpMckN3p/loGdF2pm7r6i j4cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=DBiWmhi9Fd6YyCZqg7qJWwCqzcjxUs3ftfMPtRudJOo=; b=JOT12MhDuhlRkBsR0vtKvnamGkZpA6H4zHhXz5iN7r4YyMl8MVNKrG1Noedbsxmm6h PkgxSeuWlyD7A4re6K0zkfj7/CJt9Ygok2yiMnsAaXGIShy5LGnCBSQruqMySLtVh/vH 0aA5VVAg8v8MDqGCeo2unN6hlkl2Sa+oWzXV4eTOdav2yLGnferY9C2wrD4c9XgQEONs 0fFMTAOnWbF3ZrQwtgE5dJWn8g3KZXDHaUwCbxrYfKhOzPdJVwJsrVWpFyUYltfUipZ0 ZBqnh9C+QLf2kA85jrSjA5BGKkFd8hXxVR2mlR+jj8G7lKy1WVeF7wodcuzSapXLMu84 IMWw== X-Gm-Message-State: AOAM532Pm33opms6ZA2yoK4/fPg35rbyG42vjWswIqtofUBRY7X2ZnAc MkglT/ve0rPSyNt2c2DnXac= X-Google-Smtp-Source: ABdhPJwLUOVrhcJKIpd1X8bHJK2c1WiCbSsFgxSkOVSwec/zdrQtpMQqNHW3S+jj1Ufr8czExdsv6w== X-Received: by 2002:ac8:3162:: with SMTP id h31mr11389699qtb.63.1602211364296; Thu, 08 Oct 2020 19:42:44 -0700 (PDT) Original-Received: from ?IPv6:2601:98a:4200:9210:7d71:7b53:5f3e:bcb2? ([2601:98a:4200:9210:7d71:7b53:5f3e:bcb2]) by smtp.gmail.com with ESMTPSA id n38sm5542906qtb.91.2020.10.08.19.42.43 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Oct 2020 19:42:43 -0700 (PDT) In-Reply-To: <40B06E9F-A6D6-4F9B-8E2B-7DC55D16D0F7@mit.edu> X-Mailer: Apple Mail (2.3608.120.23.2.4) Received-SPF: pass client-ip=2607:f8b0:4864:20::82a; envelope-from=casouri@gmail.com; helo=mail-qt1-x82a.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:257244 Archived-At: > On Oct 8, 2020, at 10:12 PM, Qiantan Hong wrote: >=20 >> Another question: According to the algorithm, what happens when both = cursor are at the same place and one inserts text? Is the other cursor = pushed forward or not? > Currently the other cursor will not be pushed forward. Any suggestion = for =E2=80=9Cbetter=E2=80=9D behavior? > Also note that the cursor-treating part of version on this mailing = list is not very polished. > I=E2=80=99ve made some fixes and improvements on my local version, = will post shortly. > The new version will also contain Unicode support and active user = list. Pushing forward is more intuitive IMO. I asked because I see some small = problems with the cursor overlay but I=E2=80=99m sure you=E2=80=99ve = fixed them now. >=20 >> Very cool! If I try to run crdt-test-client when already connected, = Emacs creates a new buffer and compains "Error in post-command-hook = (crdt--post-command): (wrong-type-argument stringp nil)=E2=80=9D. Any = idea why? > Thanks for the report! I haven=E2=80=99t consider this case. What do = you think is a reasonable > behavior? Should it make a new connection? It probably doesn=E2=80=99t make much sense to have multiple connections = on a single Emacs instance to the same document. I=E2=80=99d just stop = and complain to the user. Yuan=