emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/crdt b8a02a5: Squashed commit of the following:


From: ELPA Syncer
Subject: [elpa] externals/crdt b8a02a5: Squashed commit of the following:
Date: Fri, 1 Oct 2021 18:57:11 -0400 (EDT)

branch: externals/crdt
commit b8a02a5c1f759003343c10f8cedef4daae95f9fe
Author: Qiantan Hong <qhong@mit.edu>
Commit: Qiantan Hong <qhong@mit.edu>

    Squashed commit of the following:
    
    commit a80f73d8129d00be31fbe4ab90de8d38e9325c5d
    Merge: 20ff83c 2eddf96
    Author: Qiantan Hong <qhong@mit.edu>
    Date:   Fri Oct 1 15:34:50 2021 -0700
    
        Merge branch 'master' of code.librehq.com:qhong/crdt.el
    
    commit 20ff83c8ccc930d4ab2e77a37dc903eaab7681cd
    Author: Qiantan Hong <qhong@mit.edu>
    Date:   Fri Oct 1 15:34:07 2021 -0700
    
        fix a bug in buffer remove handler
---
 crdt.el | 28 +++++++++++++---------------
 1 file changed, 13 insertions(+), 15 deletions(-)

diff --git a/crdt.el b/crdt.el
index 858d718..abac05c 100644
--- a/crdt.el
+++ b/crdt.el
@@ -6,7 +6,7 @@
 ;; Maintainer: Qiantan Hong <qhong@alum.mit.edu>
 ;; URL: https://code.librehq.com/qhong/crdt.el
 ;; Keywords: collaboration crdt
-;; Version: 0.2.6
+;; Version: 0.2.7
 
 ;; This file is part of GNU Emacs.
 
@@ -35,7 +35,7 @@
 (require 'url)
 (require 'color)
 
-(defconst crdt-version "0.2.6")
+(defconst crdt-version "0.2.7")
 (defconst crdt-protocol-version "0.2.5")
 
 (defun crdt-version ()
@@ -1632,19 +1632,17 @@ CRDT--PROCESS should be bound to The network process 
for the client connection."
             (with-current-buffer buffer
               (crdt-mode 0)
               (setq crdt--session nil))))))
-    (let ((notify-names
-           (cl-remove-if-not
-            (lambda (buffer-name)
-              (gethash buffer-name (crdt--session-buffer-table crdt--session)))
-            buffer-names)))
-      (when notify-names
-        (warn "Server stopped sharing %s."
-              (mapconcat #'identity buffer-names ", "))))
-   (let ((crdt--session saved-session))
-     (crdt--broadcast-maybe crdt--message-string
-                            (when crdt--process
-                              (process-get crdt--process 'client-id)))
-     (crdt--refresh-buffers-maybe))))
+    (let ((crdt--session saved-session))
+      (let ((notify-names
+             (cl-remove-if-not
+              (lambda (buffer-name)
+                (gethash buffer-name (crdt--session-buffer-table 
crdt--session)))
+              buffer-names)))
+        (when notify-names
+          (warn "Server stopped sharing %s."
+                (mapconcat #'identity buffer-names ", "))))
+      (crdt--broadcast-maybe crdt--message-string (when crdt--process 
(crdt--client-id)))
+      (crdt--refresh-buffers-maybe))))
 
 (define-crdt-message-handler login (id session-name)
   (puthash 0 (crdt--make-contact-metadata nil nil



reply via email to

[Prev in Thread] Current Thread [Next in Thread]