[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-clojure ce0510b 124/313: Split inf-clojure-load-form b
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-clojure ce0510b 124/313: Split inf-clojure-load-form by repl type |
Date: |
Wed, 11 Aug 2021 10:00:00 -0400 (EDT) |
branch: elpa/inf-clojure
commit ce0510b938d9167a8fcba20b7628cf76cf565c4a
Author: Andrea Richiardi <a.richiardi.work@gmail.com>
Commit: Bozhidar Batsov <bozhidar.batsov@gmail.com>
Split inf-clojure-load-form by repl type
---
inf-clojure.el | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/inf-clojure.el b/inf-clojure.el
index 092d43c..52b54bc 100644
--- a/inf-clojure.el
+++ b/inf-clojure.el
@@ -232,6 +232,22 @@ Clojure to load that file."
(define-obsolete-variable-alias 'inf-clojure-load-command
'inf-clojure-load-form "2.0.0")
+(defcustom inf-clojure-load-form-lumo "(clojure.core/load-file \"%s\")"
+ "Format-string for building a Clojure expression to load a file.
+This format string should use `%s' to substitute a file name and
+should result in a Clojure form that will be sent to the inferior
+Clojure to load that file."
+ :type 'string
+ :package-version '(inf-clojure . "2.0.0"))
+
+(defun inf-clojure-load-form ()
+ "Return the form to query inferior Clojure for a var's documentation.
+If you are using REPL types, it will pickup the most approapriate
+`inf-clojure-var-doc-form` variant."
+ (pcase (inf-clojure--set-repl-type (inf-clojure-proc))
+ (`lumo inf-clojure-load-form-lumo)
+ (_ inf-clojure-load-form)))
+
(defcustom inf-clojure-prompt "^[^=> \n]+=> *"
"Regexp to recognize prompts in the Inferior Clojure mode."
:type 'regexp)
@@ -544,7 +560,7 @@ The prefix argument SWITCH-TO-REPL controls whether to
switch to REPL after the
(setq inf-clojure-prev-l/c-dir/file (cons (file-name-directory
file-name)
(file-name-nondirectory
file-name)))
(inf-clojure--send-string (inf-clojure-proc)
- (format inf-clojure-load-form file-name))
+ (format (inf-clojure-load-form) file-name))
(when switch-to-repl
(inf-clojure-switch-to-repl t))))
- [nongnu] elpa/inf-clojure 4af94e6 271/313: Fixed two checkdoc warnings, (continued)
- [nongnu] elpa/inf-clojure 4af94e6 271/313: Fixed two checkdoc warnings, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 62abe4e 278/313: Add Emacs 27 to the CI matrix, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure fd2d774 283/313: Bump the development version, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure dd7dd78 304/313: Tweak a couple of docstrings, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 1e99b82 306/313: The redundant bit of code was actually required (#191), ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 9caed3e 092/313: Update the copyright years, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 3e22747 096/313: Use setq-local, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure d04c36c 107/313: [Fix #31] Add basic project type support, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 862699e 102/313: [Fix #41] Add a command to quit REPL buffers, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure b02ce23 118/313: Add arglists support in Lumo, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure ce0510b 124/313: Split inf-clojure-load-form by repl type,
ELPA Syncer <=
- [nongnu] elpa/inf-clojure 887da91 133/313: Use inf-clojure--sanitize-command everywhere, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure db9e985 130/313: Rename to arglists (plural) everywhere, ELPA Syncer, 2021/08/11
- [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