[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/crdt 05713ba 1/4: Purge some dependencies.
From: |
ELPA Syncer |
Subject: |
[elpa] externals/crdt 05713ba 1/4: Purge some dependencies. |
Date: |
Tue, 31 Aug 2021 02:57:08 -0400 (EDT) |
branch: externals/crdt
commit 05713ba8a3c0ee00766c286c8105b50b1c4419e2
Author: Qiantan Hong <qhong@mit.edu>
Commit: Qiantan Hong <qhong@mit.edu>
Purge some dependencies.
---
crdt.el | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/crdt.el b/crdt.el
index 727e055..2c1822e 100644
--- a/crdt.el
+++ b/crdt.el
@@ -30,12 +30,10 @@
;;; Customs
-(require 'xdg)
+(require 'xdg nil t)
(require 'cl-lib)
-(require 'subr-x)
(require 'url)
(require 'color)
-(require 'files)
(defgroup crdt nil
"Collaborative editing using Conflict-free Replicated Data Types."
@@ -65,7 +63,7 @@
"Path to the tuntox binary."
:type 'file)
-(defcustom crdt-tuntox-key-path (xdg-data-home)
+(defcustom crdt-tuntox-key-path (if (featurep 'xdg) (xdg-data-home) "~/")
"Path to save tuntox's private key."
:type 'directory)
@@ -1636,7 +1634,7 @@ Setup up the server with PASSWORD and assign this Emacs
DISPLAY-NAME."
:buffer (generate-new-buffer "*Tuntox Proxy*")
:command
`(,crdt-tuntox-executable
- "-C" ,crdt-tuntox-key-path
+ "-C" ,(expand-file-name crdt-tuntox-key-path)
"-f" "/dev/stdin" ; do the filtering for safety
sake
,@ (when (and password (> (length password) 0))
`("-s" ,password))))))