[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/crdt 8be5ff7 78/80: Replace define-minor-mode positiona
From: |
ELPA Syncer |
Subject: |
[elpa] externals/crdt 8be5ff7 78/80: Replace define-minor-mode positional arguments with keywords |
Date: |
Sat, 28 Aug 2021 10:57:46 -0400 (EDT) |
branch: externals/crdt
commit 8be5ff7c5ba21f4aa35afad824dccb5f69cc7713
Author: Qiantan Hong <qhong@mit.edu>
Commit: Qiantan Hong <qhong@mit.edu>
Replace define-minor-mode positional arguments with keywords
---
crdt.el | 41 ++++++++++++++++++++++-------------------
1 file changed, 22 insertions(+), 19 deletions(-)
diff --git a/crdt.el b/crdt.el
index 57a9423..2e4a00f 100644
--- a/crdt.el
+++ b/crdt.el
@@ -384,17 +384,18 @@ Also set CRDT--PSEUDO-CURSOR-TABLE to NIL."
(add-hook 'after-change-major-mode-hook #'crdt--after-change-major-mode)
(define-minor-mode crdt-mode
- "CRDT mode" nil " CRDT" nil
- (if crdt-mode
- (progn
- (unless crdt--pseudo-cursor-table
- (setq crdt--pseudo-cursor-table (make-hash-table)))
- (unless crdt--overlay-table
- (setq crdt--overlay-table (make-hash-table :test 'equal)))
- (crdt--install-hooks))
- (crdt--uninstall-hooks)
- (crdt--clear-pseudo-cursor-table)
- (setq crdt--overlay-table nil)))
+ "Mode for source collaborative buffers."
+ :lighter " CRDT"
+ (if crdt-mode
+ (progn
+ (unless crdt--pseudo-cursor-table
+ (setq crdt--pseudo-cursor-table (make-hash-table)))
+ (unless crdt--overlay-table
+ (setq crdt--overlay-table (make-hash-table :test 'equal)))
+ (crdt--install-hooks))
+ (crdt--uninstall-hooks)
+ (crdt--clear-pseudo-cursor-table)
+ (setq crdt--overlay-table nil)))
;;; Author visualization
@@ -412,12 +413,13 @@ Also set CRDT--PSEUDO-CURSOR-TABLE to NIL."
(setq pos prev-pos))))))
(define-minor-mode crdt-visualize-author-mode
- "" nil " CRDT-VAuthor" nil
- (if crdt-visualize-author-mode
- (crdt--visualize-author)
- (save-restriction
- (widen)
- (remove-list-of-text-properties (point-min) (point-max)
'(font-lock-face)))))
+ "Minor mode to visualize who wrote what."
+ :lighter " CRDT-VAuthor"
+ (if crdt-visualize-author-mode
+ (crdt--visualize-author)
+ (save-restriction
+ (widen)
+ (remove-list-of-text-properties (point-min) (point-max)
'(font-lock-face)))))
;;; Shared buffer utils
@@ -1975,8 +1977,9 @@ Join with DISPLAY-NAME."
;;; Org integration
-(define-minor-mode crdt-org-sync-overlay-mode ""
- nil " Sync Org Overlay" nil
+(define-minor-mode crdt-org-sync-overlay-mode
+ "Minor mode to synchronize hidden `org-mode' subtrees."
+ :lighter " Sync Org Overlay"
(if crdt-org-sync-overlay-mode
(progn
(save-excursion
- [elpa] externals/crdt d2fe006 39/80: refactor, get rid of status buffer, (continued)
- [elpa] externals/crdt d2fe006 39/80: refactor, get rid of status buffer, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt efe7f10 44/80: fix byte compile warnings, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt d0c439f 59/80: I imagine this fix an imaginary bug with tuntox, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt 44068ae 63/80: add port argument to CRDT-SHARE-BUFFER, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt 3a2424a 69/80: visualize author doc, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt 7282efb 72/80: Add autoloads., ELPA Syncer, 2021/08/28
- [elpa] externals/crdt 13304af 74/80: Update copyright, assign version number, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt c0093fa 75/80: Pull all require expressions to beginning of the file, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt 8b7786a 76/80: Use xdg-data-home for crdt-tuntox-key-path, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt 4f069d5 77/80: Do not use executable-find to find tuntox, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt 8be5ff7 78/80: Replace define-minor-mode positional arguments with keywords,
ELPA Syncer <=
- [elpa] externals/crdt 8cbd0fd 80/80: bump version number, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt eee7611 27/80: imaginary bug fix, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt 47ca3a7 25/80: fix makefile, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt b31d05a 42/80: remove status buffer hack section in HACKING.org, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt 0608e11 48/80: add tuntox support, fix yank not clearing pseudo-region, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt 5a9ab2d 54/80: support for comint (tested scheme-mode), ELPA Syncer, 2021/08/28
- [elpa] externals/crdt 9d39b42 55/80: quick hack for xscheme.el, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt cb7b701 58/80: add client side recovery, better error message, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt 973e761 21/80: Work on Jean's todo list, ELPA Syncer, 2021/08/28
- [elpa] externals/crdt 810af7e 32/80: fix bug when beg/end are markers in crdt--*-change, ELPA Syncer, 2021/08/28