[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-clojure 1392907 015/313: Add command clojure-show-ns-v
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-clojure 1392907 015/313: Add command clojure-show-ns-vars |
Date: |
Wed, 11 Aug 2021 09:59:37 -0400 (EDT) |
branch: elpa/inf-clojure
commit 13929077b74aa3d78c488fbdb722ca28f7bf3c63
Author: Bozhidar Batsov <bozhidar@batsov.com>
Commit: Bozhidar Batsov <bozhidar@batsov.com>
Add command clojure-show-ns-vars
---
inf-clojure.el | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/inf-clojure.el b/inf-clojure.el
index a6e5841..cfe7c4a 100644
--- a/inf-clojure.el
+++ b/inf-clojure.el
@@ -99,6 +99,7 @@ mode. Default is whitespace followed by 0 or 1 single-letter
colon-keyword
(define-key map "\C-c\C-a" 'clojure-show-arglist)
(define-key map "\C-c\C-v" 'clojure-show-var-documentation)
(define-key map "\C-c\C-s" 'clojure-show-var-source)
+ (define-key map "\C-c\C-i" 'clojure-show-ns-vars)
map))
;;;###autoload
@@ -396,6 +397,10 @@ Used by this command to determine defaults."
"(complete.core/completions \"%s\")\n"
"Command to query inferior Clojure for completion candidates.")
+(defvar clojure-ns-vars-command
+ "(clojure.repl/dir %s)\n"
+ "Command to show the public vars in a namespace.")
+
;;; Ancillary functions
;;; ===================
@@ -455,6 +460,12 @@ See variable `clojure-arglist-command'."
(interactive (clojure-symprompt "Arglist" (clojure-fn-called-at-pt)))
(comint-proc-query (inf-clojure-proc) (format clojure-arglist-command fn)))
+(defun clojure-show-ns-vars (ns)
+ "Send a query to the inferior Clojure for the public vars in NS.
+See variable `clojure-ns-vars-command'."
+ (interactive (clojure-symprompt "Ns vars" (clojure-find-ns)))
+ (comint-proc-query (inf-clojure-proc) (format clojure-ns-vars-command ns)))
+
;; "Returns the current inferior Clojure process.
;; See variable `inf-clojure-buffer'."
- [nongnu] elpa/inf-clojure 1c9a301 004/313: Fix some incorrect command references, (continued)
- [nongnu] elpa/inf-clojure 1c9a301 004/313: Fix some incorrect command references, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure d89b8ce 005/313: [Fix #1] Get completion-at-point to a working state, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 3e27093 001/313: Initial commit, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure f4f94f8 010/313: Introduce inf-clojure-minor-mode, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 4721b8c 011/313: Fix a docstring, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 25aee78 006/313: Use clojure-mode-variables instead of lisp-mode-variables, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure c66c08f 003/313: Use lexical binding, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 1f6f949 019/313: Add command inf-clojure-set-ns, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure ca57a86 020/313: [Fix #3] Remove automatic addition of inf-clojure-minor-mode to clojure-mode-hook, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 7272678 007/313: clojure -> Clojure, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 1392907 015/313: Add command clojure-show-ns-vars,
ELPA Syncer <=
- [nongnu] elpa/inf-clojure 1dfc5f7 023/313: Depend of clojure-mode 4.0, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 5debecc 024/313: Release 1.0, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure b61efe1 008/313: Make the completion command customizable, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 7b377a4 013/313: Drop redundant function, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure f65ce48 021/313: Enable completion in inf-clojure-minor-mode, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 7b9e0d1 029/313: Code style, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure ef8c830 030/313: Use #' where appropriate, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure b897bb8 031/313: Show arglist in the minibuffer for better usability, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 89035ee 033/313: Merge pull request #9 from mavbozo/ms-windows-hang, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure dd2b4fc 038/313: Code style, ELPA Syncer, 2021/08/11