From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Qiantan Hong Newsgroups: gmane.emacs.devel Subject: Re: crdt.el collaborative real time editing for Emacs Date: Mon, 5 Oct 2020 17:05:42 +0000 Message-ID: <88994C27-6AF1-4DCC-A379-4ACFABDB2FB0@mit.edu> References: <87362tvnil.fsf@gmail.com> <20201004194815.GH15516@protected.rcdrun.com> <11EB917D-3276-4D34-8DCD-2336E8062950@mit.edu> <874kn9709y.fsf@red-bean.com> <20201005054829.GU15516@protected.rcdrun.com> <20201005080726.GA4453@protected.rcdrun.com> <0B1844BF-23B6-4B26-A715-F5A3528AAEE1@mit.edu> <20201005140322.GN4453@protected.rcdrun.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Apple-Mail=_FBA4E1F5-9DED-40B1-8AE2-D3AB75E969CA"; protocol="application/pkcs7-signature"; micalg=sha-256 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12439"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs developers To: Jean Louis Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 05 19:06:46 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 1kPTwj-00038o-Hn for ged-emacs-devel@m.gmane-mx.org; Mon, 05 Oct 2020 19:06:45 +0200 Original-Received: from localhost ([::1]:54020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPTwi-0006F8-JQ for ged-emacs-devel@m.gmane-mx.org; Mon, 05 Oct 2020 13:06:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49446) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPTw1-0005nO-0c for emacs-devel@gnu.org; Mon, 05 Oct 2020 13:06:01 -0400 Original-Received: from outgoing-exchange-1.mit.edu ([18.9.28.15]:32812) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPTvt-0003Hv-QW for emacs-devel@gnu.org; Mon, 05 Oct 2020 13:06:00 -0400 Original-Received: from oc11exedge2.exchange.mit.edu (OC11EXEDGE2.EXCHANGE.MIT.EDU [18.9.3.18]) by outgoing-exchange-1.mit.edu (8.14.7/8.12.4) with ESMTP id 095H5qAC013620; Mon, 5 Oct 2020 13:05:52 -0400 Original-Received: from w92expo16.exchange.mit.edu (18.7.74.70) by oc11exedge2.exchange.mit.edu (18.9.3.18) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Mon, 5 Oct 2020 13:05:19 -0400 Original-Received: from oc11expo16.exchange.mit.edu (18.9.4.47) by w92expo16.exchange.mit.edu (18.7.74.70) with Microsoft SMTP Server (TLS) id 15.0.1365.1; Mon, 5 Oct 2020 13:05:42 -0400 Original-Received: from oc11expo16.exchange.mit.edu ([18.9.4.47]) by oc11expo16.exchange.mit.edu ([18.9.4.47]) with mapi id 15.00.1365.000; Mon, 5 Oct 2020 13:05:42 -0400 Thread-Topic: crdt.el collaborative real time editing for Emacs Thread-Index: AQHWmu6UkfNHaS9nLkCHUSXh1vR0FKmI7nKAgABfUACAADLyAA== In-Reply-To: <20201005140322.GN4453@protected.rcdrun.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [18.18.245.17] Received-SPF: pass client-ip=18.9.28.15; envelope-from=qhong@mit.edu; helo=outgoing-exchange-1.mit.edu X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/05 13:05:52 X-ACL-Warn: Detected OS = Windows 7 (Websense crawler) X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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:257131 Archived-At: --Apple-Mail=_FBA4E1F5-9DED-40B1-8AE2-D3AB75E969CA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Yes, definitely need to work on that.=20 Just need some process sentinel and make the crdt=E2=80=94* variables=20 buffer local. Also in terms of yanking problem, I tried with crdt.el itself and didn=E2=80=99t reproduce the bug. I then proceed to yank the whole = emacs CHANGELOG.3 into it (that=E2=80=99s 100k lines!) and it=E2=80=99s slowly = going through while almost hanging the emacsen =E2=80=94 not sure if this is what you observed. Shall we discuss more in detail off list? > On Oct 5, 2020, at 10:03 AM, Jean Louis wrote: >=20 > I have noticed, if the file is no longer edited, the process for CRDT, > collaboration in real time remains in memory, it can be seen with > list-processes, and it prevents opening a new file to be shared. >=20 > It should be possible to open multiple files to be shared for real > time simultaneous editing, that would invoke multiple servers tied to > multiple buffers. >=20 > And when buffer is no longer there, server on that port should stop I > guess. --Apple-Mail=_FBA4E1F5-9DED-40B1-8AE2-D3AB75E969CA Content-Disposition: attachment; filename="smime.p7s" Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCCA70w ggO5MIIDIqADAgECAhAaql39NsO1qLVjkS2hl517MA0GCSqG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