[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-clojure 7493ed8 166/313: Set inf-clojure-*-cmd :risky
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-clojure 7493ed8 166/313: Set inf-clojure-*-cmd :risky and :safe properties |
Date: |
Wed, 11 Aug 2021 10:00:08 -0400 (EDT) |
branch: elpa/inf-clojure
commit 7493ed879809428eda413730474cf78f9cbdf377
Author: Andrea Richiardi <a.richiardi.work@gmail.com>
Commit: Bozhidar Batsov <bozhidar.batsov@gmail.com>
Set inf-clojure-*-cmd :risky and :safe properties
It will be considered risky if the value is a string (indicating command
line
execution) and safe if a cons cell containing a valid endpoint.
---
inf-clojure.el | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/inf-clojure.el b/inf-clojure.el
index e6557a6..2ab2456 100644
--- a/inf-clojure.el
+++ b/inf-clojure.el
@@ -179,6 +179,16 @@ The following commands are available:
(add-to-list 'completion-at-point-functions
#'inf-clojure-completion-at-point))
+(defun inf-clojure--endpoint-p (x)
+ "Return non-nil if and only if X is a valid endpoint.
+
+A valid endpoint consists of a host and port
+number (e.g. (\"localhost\" . 5555))."
+ (and
+ (listp x)
+ (stringp (car x))
+ (numberp (cdr x))))
+
(defcustom inf-clojure-lein-cmd "lein repl"
"The command used to start a Clojure REPL for Leiningen projects.
@@ -188,6 +198,8 @@ number (e.g. (\"localhost\" . 5555)). That's useful if
you're
often connecting to a remote REPL process."
:type '(choice (string)
(cons string integer))
+ :risky #'stringp
+ :safe #'inf-clojure--endpoint-p
:package-version '(inf-clojure . "2.0.0"))
(define-obsolete-variable-alias 'inf-clojure-program 'inf-clojure-lein-cmd
"2.0.0")
@@ -201,6 +213,8 @@ number (e.g. (\"localhost\" . 5555)). That's useful if
you're
often connecting to a remote REPL process."
:type '(choice (string)
(cons string integer))
+ :risky #'stringp
+ :safe #'inf-clojure--endpoint-p
:package-version '(inf-clojure . "2.0.0"))
(defcustom inf-clojure-generic-cmd "lein repl"
@@ -212,6 +226,8 @@ number (e.g. (\"localhost\" . 5555)). That's useful if
you're
often connecting to a remote REPL process."
:type '(choice (string)
(cons string integer))
+ :risky #'(stringp )
+ :safe #'inf-clojure--endpoint-p
:package-version '(inf-clojure . "2.0.0"))
(defvar-local inf-clojure-repl-type nil
- [nongnu] elpa/inf-clojure b50102f 128/313: [Fix #58] Add a function to connect to remote socket repl (#68), (continued)
- [nongnu] elpa/inf-clojure b50102f 128/313: [Fix #58] Add a function to connect to remote socket repl (#68), ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 6179a74 142/313: Extend the REPL type section of the README, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 4e96e93 147/313: Fix a bug causing read to output for expression, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 9ba23b0 149/313: Wrap a long line, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 956b22e 148/313: Release 2.0.1, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 74e8423 150/313: Fix get-completions for lumo (#81), ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 9fa8f37 153/313: Disable pretty print when fetching lumo arglists, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure f666f60 154/313: [Fix #79] Disable coloring for the boot repl (#82), ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 1a71b5e 163/313: Rephrase process logging description a bit, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure ee38fc3 164/313: [Fix #96] Use inf-clojure--send-string instead of comint-proc-query, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 7493ed8 166/313: Set inf-clojure-*-cmd :risky and :safe properties,
ELPA Syncer <=
- [nongnu] elpa/inf-clojure b048358 173/313: Add expression break chars and prevent completions for numbers (#110), ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 8c27b06 177/313: Introduce the tools.deps project type, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 5c8f590 179/313: [Fix #116] Set inf-clojure-buffer REPL type on detect, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 7b2fcd7 184/313: Revive inf-clojure-apropos, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 8baa7ad 185/313: Correct inf-clojure-apropos key binding, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure d3c0d4f 187/313: Avoid throwing an error for frequent operations like completion, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 630471b 194/313: Update CHANGELOG.md, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure c3217c3 200/313: Skip sanitation of comments, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 9b77479 207/313: Set inf-clojure-tools-deps-cmd to "clojure" (#144), ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 58150d7 256/313: Improve some wording in the README, ELPA Syncer, 2021/08/11