From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.devel Subject: Re: crdt.el collaborative real time editing for Emacs Date: Mon, 5 Oct 2020 17:11:10 +0300 Message-ID: <20201005141110.GO4453@protected.rcdrun.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12127"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.14.0 (2020-05-02) Cc: Emacs developers To: Qiantan Hong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 05 16:12:13 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 1kPRDo-00032F-Fo for ged-emacs-devel@m.gmane-mx.org; Mon, 05 Oct 2020 16:12:12 +0200 Original-Received: from localhost ([::1]:52288 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPRDn-0002f9-Gw for ged-emacs-devel@m.gmane-mx.org; Mon, 05 Oct 2020 10:12:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58968) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPRD1-0001TE-Mo for emacs-devel@gnu.org; Mon, 05 Oct 2020 10:11:23 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:33567) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPRCy-0002cv-MU for emacs-devel@gnu.org; Mon, 05 Oct 2020 10:11:23 -0400 Original-Received: from localhost ([::ffff:197.157.34.178]) (AUTH: PLAIN securesender, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 000000000005A151.000000005F7B2981.00000BC0; Mon, 05 Oct 2020 07:11:12 -0700 Content-Disposition: inline In-Reply-To: <0B1844BF-23B6-4B26-A715-F5A3528AAEE1@mit.edu> Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/05 10:03:27 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] 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, SPF_HELO_PASS=-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:257130 Archived-At: * Qiantan Hong [2020-10-05 11:22]: > Thanks! Actually, it will be incredibly useful if you can get a dump > of CRDT ID state. To do this, M-: (set-buffer-multibyte nil) in > *Message* (to make it unibyte, CRDT ID are arbitrary binary strings > in general and multibyte buffer does some unicode conversion stuff), > and then M-: (crdt--dump-ids) in the CRDT server/client buffers. This > basically dump out the complete state of CRDT IDs and > should be easy to spot inconsistency between dumps on different > emacsen. Note that it might be very long and get truncated by *Message*. > M-: (setq some-var (crdt--dump-ids)) in the CRDT buffer and then > M-: (insert some-var) in a unibyte buffer is a workaround. Or > any other method that you prefer. I have tried, I will do that process after you do more polishing. For now, I can say I have copied tutorial, yanked it, it did not appear on other side. Smaller yanks worked.