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: Tue, 13 Oct 2020 09:31:11 -0400 Message-ID: <9C76E7C5-A489-4EB4-AFCA-14D9C4002F16@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> <18458910-E6A1-4867-9936-FFA50E3E72D1@gmail.com> <4AB5904E-A646-4A17-B78C-B4E0271E28B4@mit.edu> <87imbjx0bm.fsf@tanaka.verona.se> <80512E57-D3BA-4F02-A835-DEE434278736@mit.edu> <83blh84o8w.fsf@gnu.org> <83a6ws4mns.fsf@gnu.org> <4C6C49B0-68A8-402C-9BC0-1FB11BD8A9F3@mit.edu> <838scc41sw.fsf@gnu.org> <38DBEF04-B639-4744-B285-20C59E34C6BF@mit.edu> <834kmz4iet.fsf@gnu.org> <2E89B4B4-AAA9-472F-AAFC-7505C2A98FD2@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="27184"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Ergus , Fermin , Jean Louis , Caio Henrique , Noam Postavsky , "joakim@verona.se" , emacs-devel , Karl Fogel , Stefan Monnier , Joe Corneli , Eli Zaretskii To: Qiantan Hong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 13 15:33:00 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 1kSKQF-0006vg-O4 for ged-emacs-devel@m.gmane-mx.org; Tue, 13 Oct 2020 15:32:59 +0200 Original-Received: from localhost ([::1]:33346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kSKQE-0004Nu-4q for ged-emacs-devel@m.gmane-mx.org; Tue, 13 Oct 2020 09:32:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSKOf-0003LM-7x for emacs-devel@gnu.org; Tue, 13 Oct 2020 09:31:26 -0400 Original-Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]:36760) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kSKOc-0001bc-H8; Tue, 13 Oct 2020 09:31:20 -0400 Original-Received: by mail-qt1-x82c.google.com with SMTP id c5so16022641qtw.3; Tue, 13 Oct 2020 06:31:13 -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=0dT0MRQcAmZ8CbUukMozlyBQrQAuzDi1ATqx9hEJI5E=; b=Vp18Qdtnag6naZw9xO+Prtjxj+LzEYk7PhdP0vG4uMbBXwBRMYI2IiqEz8tqKMVud8 SGmEgb+VxQ2Bl6GOO9bZ11tXR7XAdS0PpCfBTdLBkMaLx7+7QGrmxUaHISo57HvKHIkb vxMZY81DWpbbtQXWKghGdlQEScl+dNKCiD0Vl86Qod/ziIMRoY/LzHzOyjQjmMLoDpJh GBuRIWVAmAXwTtQzpitduzr2Bms7A4Rv2sXS5pQGWwu2NHICJJbVgD2IIxr80jtCtrIU S5whmtTegy8RKcFFoY5vT6ZcKzDC8qGQbzfMPN4RELVai9QgYdvKAKNPy10aZVv1MSQ9 tIkQ== 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=0dT0MRQcAmZ8CbUukMozlyBQrQAuzDi1ATqx9hEJI5E=; b=YusCHKlEObN6jwSqEPSliHMPq0xR4wardIOoAvv+/v62owSLmxm30sVKZIB+3LVgP0 B0Mz+wGOTOQdtyodaxDRjcGoexGnleBwXVCyTpGFiph7NedRX0sxOCE/4Uby7BANE2yZ B+Bn9PSDe6d2yZuB0MFaKyrPa/qXOh3OM4z2eiRVWtbMRt7Wu4KWR3l59N267T5W1l9C jbGaHU8F1XGy2xpxkcdI0r52DHigCdyM5kerDc9N+9KJwFcp8en7X6nQvxxb5WHxn2iZ bYKmI4j5iArOrkIJwlLarOW4x8izWekFbd6bVruZT4M2f0dTKc5f773KWfEGhznQfpdB D2Nw== X-Gm-Message-State: AOAM530EfiHZxqf1VISfc4dkoke3uKduUJumeYnQjj1DiiA9sQl6IAfX +QuO0h5dgH7HoZwJc6u/184= X-Google-Smtp-Source: ABdhPJxcNKNdxCTGezzjNi+DihpXTkN+GKssUKkX/mSS5BT39Z6dSzJYH9PMhI8S7kky0vtS5O5UZw== X-Received: by 2002:a05:622a:216:: with SMTP id b22mr2813458qtx.372.1602595872906; Tue, 13 Oct 2020 06:31:12 -0700 (PDT) Original-Received: from ?IPv6:2601:98a:4200:9210:c75:4e3a:e087:c190? ([2601:98a:4200:9210:c75:4e3a:e087:c190]) by smtp.gmail.com with ESMTPSA id a10sm14543214qkc.79.2020.10.13.06.31.11 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Oct 2020 06:31:12 -0700 (PDT) In-Reply-To: <2E89B4B4-AAA9-472F-AAFC-7505C2A98FD2@mit.edu> X-Mailer: Apple Mail (2.3608.120.23.2.4) Received-SPF: pass client-ip=2607:f8b0:4864:20::82c; envelope-from=casouri@gmail.com; helo=mail-qt1-x82c.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:257529 Archived-At: > On Oct 12, 2020, at 12:53 PM, Qiantan Hong wrote: >=20 > The problem with this is it will require considering conflict > resolution for every combination of command (which is basically > impossible) and it=E2=80=99s hard to even just guarantee eventual = consistency. >=20 > One simple example to illustrate this: > * Level 1 > ** Level 2 > some text >=20 > User 1 pressed TAB (to invoke org-cycle) on ** Level 2, > user 2 delete ** Level 2 in the same time. > If we just send (command,location) over the wire, > in the end user 1 will end up having a folded =E2=80=9Csome text=E2=80=9D= > without =E2=80=9C**level 2=E2=80=9D heading, and user1 will have level = 1 folded. >=20 > With a overlay-synchronization approach, I was able to > support org-cycle with eventual consistency guarantee in 1 line > (just add to the filter).=20 > (The synchronization implementation itself is about 100 lines). > I was thinking that my way of filtering might not be general enough > but now I think there=E2=80=99s probably very few use cases for this = =E2=80=94 > org-cycle is a useful one =E2=80=94 so I don=E2=80=99t need to worry = much about > filtering customization. What do others think? Maybe define a profile system? Server can specify what to sync: org = overlay, read-only properties, etc. And implement the synchronization as = a plug-in. Note that some overlays are mananged by packages (i.e., keeps = a pointer to the overlay) so syncing other overlays could leads to = problems. Yuan