From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vikas Rawal Newsgroups: gmane.emacs.help Subject: Concurrent editing in emacs Date: Mon, 18 Oct 2021 09:58:32 +0530 Message-ID: <20211018042832.gqkemtogrvcak72w@dalkati> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26836"; mail-complaints-to="usenet@ciao.gmane.io" To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 18 06:30:29 2021 Return-path: Envelope-to: geh-help-gnu-emacs@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 1mcKI8-0006lB-HQ for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 18 Oct 2021 06:30:28 +0200 Original-Received: from localhost ([::1]:49916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcKI5-0001ml-TG for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 18 Oct 2021 00:30:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47186) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcKGT-0001mE-Qm for help-gnu-emacs@gnu.org; Mon, 18 Oct 2021 00:28:45 -0400 Original-Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]:45818) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mcKGO-0003Aj-5F for help-gnu-emacs@gnu.org; Mon, 18 Oct 2021 00:28:45 -0400 Original-Received: by mail-pl1-x633.google.com with SMTP id s1so8510221plg.12 for ; Sun, 17 Oct 2021 21:28:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:subject:message-id:organisation:mime-version :content-disposition; bh=ByGO5DfBit55RDEPcRBLp5hxOKNwBAcO2t57GQ/dmpE=; b=TSWb5q8YjCjF38GVfFbhqX/sj6CNu7A/59CUoymy/ag0JPzr84M2s1+jQ3cALjTssT fuQhPtvXAX3Bwn0NNwMEq54W2QpKFecvQIvWWA6Tn6U+W/E73QLOlPsMHBIACnGtnNDq lAgdT/KaoreMilSrzomLtSlbP1jnPBKdr8cDBOQfc+t3uE0lfPL+9geXtJ0KtM/J9FW3 MRAfjaND6PaDajY3NTpB015Tw71PD4sr2u/L/E/Zpqktk3QXg95SvV9bh+MOysZdg4KR J3EHTYL90ooXWONdAAyDeyoVmzXGOHpGfAKqmoNYklzJ8d2IfPmNtlsKFrXdVT8C8d6E brjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:subject:message-id:organisation :mime-version:content-disposition; bh=ByGO5DfBit55RDEPcRBLp5hxOKNwBAcO2t57GQ/dmpE=; b=QtKA5uwWX1HUgp7H2bJE1nOiCILpYlKO7NOj+WkKDIqa9BQW1w9Ubxt/pzVBKDUccr 0OpoMpwiRuA0tHu3QSPxryimviBg4fKH+5oGqlEP2K00VkEuLb1cXQniDJFp5vFekH7e nSSvvGXIskHE03oxGev39oJskFu0FlYVbokmnf4eJH3RA6gvLmLxigffFr9yvaY8lUkZ JmX43rvmDkKkYY01ESY8n17aq9o4/a/NPC4t15M2ieOKQE6WUYOMVTqer72EpcF+TQYt c68NUvVdSjDr5Q+AQIsgR83yiFADXWKR4MaIUnm4MRYmVTdkdjPwRZRWsVmB95M8MMan b+rw== X-Gm-Message-State: AOAM531etgUNdCJgktGNJzJ/gRDRe/oEVAKigjYphrFMu0lU8LEKlCRc edkqAPlS6N6910KZX4/zu4DIgGCzOXI= X-Google-Smtp-Source: ABdhPJzNUWdmYECyDqEtK3voTL8AyLCx0LghGcxLXr5uHAQa+NqI02UnnBgEW+dwpIWIQJwhps+ixw== X-Received: by 2002:a17:902:7885:b0:13e:ecb:f214 with SMTP id q5-20020a170902788500b0013e0ecbf214mr24912171pll.87.1634531318047; Sun, 17 Oct 2021 21:28:38 -0700 (PDT) Original-Received: from localhost ([103.49.227.26]) by smtp.gmail.com with ESMTPSA id c27sm11608403pgb.89.2021.10.17.21.28.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Oct 2021 21:28:37 -0700 (PDT) Organisation: Jawaharlal Nehru University, New Delhi Content-Disposition: inline Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=vikasrawal@gmail.com; helo=mail-pl1-x633.google.com 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, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:133849 Archived-At: I am looking for a solution where an emacs session is shared with multiple users who can simultaneously work on some/all buffers. I have come across this solution: https://dirk.eddelbuettel.com/papers/r4_byobu_collaborate.pdf This is., however, not entirely satisfactory as only one user controls the cursor at any time. Every user has the same view of emacs, the control keeps jumping from one user to another depending on who attempts to take control last. What I am looking for is a solution where different users can independently work on the buffers. Each user should be able to see what others are doing but not prevent others. This could obviously create conflicts and we will have to have a clean mechanism for locking resources (whoever takes control first retains it until released). It would be good if this controlling mechanism is major-mode specific. For example, an ESS buffer running R should have buffer-level lock. But an org-mode buffer might have a headline-level locking mechanism. I don't know if something like this can be achieved using existing tools, or whether this is an area in which tools need to be developed. But I thought I will put this out, in case somebody has pointers, solutions or any advice. Vikas