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

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

[elpa] externals/crdt 2889cae 67/80: change order of READY and OVERLAY-*


From: ELPA Syncer
Subject: [elpa] externals/crdt 2889cae 67/80: change order of READY and OVERLAY-* during initial sync. not sure if this creates more problem
Date: Sat, 28 Aug 2021 10:57:44 -0400 (EDT)

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

    change order of READY and OVERLAY-* during initial sync. not sure if this 
creates more problem
---
 crdt.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/crdt.el b/crdt.el
index 11285b9..99349b3 100644
--- a/crdt.el
+++ b/crdt.el
@@ -1148,6 +1148,8 @@ The network process for the client connection is PROCESS."
                           `(sync
                             ,crdt--buffer-network-name
                             ,@ (crdt--dump-ids (point-min) (point-max) nil nil 
t))))
+    (process-send-string process (crdt--format-message `(ready 
,crdt--buffer-network-name ,major-mode)))
+
     ;; synchronize cursor
     (maphash (lambda (site-id ov-pair)
                (cl-destructuring-bind (cursor-ov . region-ov) ov-pair
@@ -1192,9 +1194,7 @@ The network process for the client connection is PROCESS."
           (process-send-string process
                                (crdt--format-message
                                 `(process-mark ,crdt--buffer-network-name
-                                               ,(crdt--get-id mark-pos) 
,mark-pos))))))
-
-    (process-send-string process (crdt--format-message `(ready 
,crdt--buffer-network-name ,major-mode)))))
+                                               ,(crdt--get-id mark-pos) 
,mark-pos))))))))
 
 (defun crdt--greet-client (process)
   "Send initial information when a client connects.



reply via email to

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