[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] externals/sly 3f72671 7/7: Close #378: new sly-connection-poll-
From: |
Stefan Monnier |
Subject: |
[nongnu] externals/sly 3f72671 7/7: Close #378: new sly-connection-poll-interval user option |
Date: |
Sat, 21 Nov 2020 01:34:53 -0500 (EST) |
branch: externals/sly
commit 3f72671bea648a09f4375a1fd27b6de20210ec3f
Author: Pierre Neidhardt <mail@ambrevar.xyz>
Commit: GitHub <noreply@github.com>
Close #378: new sly-connection-poll-interval user option
* sly.el (sly-connection-poll-interval): New defcustom.
(sly-attempt-connection): Use it instead of the hard-coded timer value.
---
sly.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/sly.el b/sly.el
index ebe8cc1..5583c83 100644
--- a/sly.el
+++ b/sly.el
@@ -1395,6 +1395,11 @@ Fall back to `sly-init-using-slynk-loader' if ASDF
fails."
(defun sly-read-port-and-connect (inferior-process)
(sly-attempt-connection inferior-process nil 1))
+(defcustom sly-connection-poll-interval 0.3
+ "Seconds to wait between connection attempts when first connecting."
+ :type 'number
+ :group 'sly-ui)
+
(defun sly-attempt-connection (process retries attempt)
;; A small one-state machine to attempt a connection with
;; timer-based retries.
@@ -1424,7 +1429,7 @@ Fall back to `sly-init-using-slynk-loader' if ASDF fails."
(cl-assert (not sly-connect-retry-timer))
(setq sly-connect-retry-timer
(run-with-timer
- 0.3 nil
+ sly-connection-poll-interval nil
#'sly-timer-call #'sly-attempt-connection
`((sly-ignore-protocol-mismatches .
,sly-ignore-protocol-mismatches))
process (and retries (1- retries))
- [nongnu] externals/sly updated (d12c4cd -> 3f72671), Stefan Monnier, 2020/11/21
- [nongnu] externals/sly 5114fc2 1/7: Fix #346: Fix error when complex comint-preoutput-filter-functions, Stefan Monnier, 2020/11/21
- [nongnu] externals/sly 773595a 3/7: Play nice with latest version of fido-mode, Stefan Monnier, 2020/11/21
- [nongnu] externals/sly 070b1db 2/7: Close #303: Protect sly-eval against callers that set inhibit-quit to t, Stefan Monnier, 2020/11/21
- [nongnu] externals/sly deafdc6 4/7: Close #273: Discuss completion UIs and mention Helm-SLY in README, Stefan Monnier, 2020/11/21
- [nongnu] externals/sly 4ced33c 6/7: Close #264: Mention some more additional contribs in README.md, Stefan Monnier, 2020/11/21
- [nongnu] externals/sly 3f72671 7/7: Close #378: new sly-connection-poll-interval user option,
Stefan Monnier <=
- [nongnu] externals/sly 6d6e8fb 5/7: Fix #370: Survive propertized strings read from minibuffer, Stefan Monnier, 2020/11/21