-
-
Notifications
You must be signed in to change notification settings - Fork 647
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'clojure-emacs:master' into fix-remote-enrich-classpath-…
…init
- Loading branch information
Showing
95 changed files
with
317 additions
and
463 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Close inactive issues and pull requests | ||
on: | ||
schedule: | ||
- cron: "30 1 * * *" | ||
|
||
jobs: | ||
close-issues: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/stale@v9 | ||
with: | ||
days-before-issue-stale: 30 | ||
days-before-issue-close: 30 | ||
stale-issue-label: "stale" | ||
exempt-issue-labels: "high priority, good first issue, pinned" | ||
stale-issue-message: >- | ||
This issue has been automatically marked as stale because it has not | ||
had any recent activity. It will be closed soon if no further | ||
activity occurs. Thank you for your contribution and understanding! | ||
close-issue-message: >- | ||
This issue been automatically closed due to lack of activity. Feel free to re-open it | ||
if you ever come back to it. | ||
days-before-pr-stale: 30 | ||
days-before-pr-close: 30 | ||
exempt-pr-labels: "high priority, good first issue, pinned" | ||
stale-pr-message: >- | ||
This pull request has been automatically marked as stale because it has not | ||
had any recent activity. It will be closed soon if no further | ||
activity occurs. Thank you for your contribution and understanding! | ||
close-pr-message: >- | ||
This issue been automatically closed due to lack of activity. Feel free to re-open it | ||
if you ever come back to it. | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
;;; cider-apropos.el --- Apropos functionality for Clojure -*- lexical-binding: t -*- | ||
|
||
;; Copyright © 2014-2024 Jeff Valk, Bozhidar Batsov and CIDER contributors | ||
;; Copyright © 2014-2025 Jeff Valk, Bozhidar Batsov and CIDER contributors | ||
;; | ||
;; Author: Jeff Valk <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
;;; cider-browse-ns.el --- CIDER namespace browser -*- lexical-binding: t; -*- | ||
|
||
;; Copyright © 2014-2024 John Andrews, Bozhidar Batsov and CIDER contributors | ||
;; Copyright © 2014-2025 John Andrews, Bozhidar Batsov and CIDER contributors | ||
|
||
;; Author: John Andrews <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
;;; cider-browse-spec.el --- CIDER spec browser -*- lexical-binding: t; -*- | ||
|
||
;; Copyright © 2017-2024 Juan Monetta, Bozhidar Batsov and CIDER contributors | ||
;; Copyright © 2017-2025 Juan Monetta, Bozhidar Batsov and CIDER contributors | ||
|
||
;; Author: Juan Monetta <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
;;; cider-cheatsheet.el --- Quick reference for Clojure -*- lexical-binding: t -*- | ||
|
||
;; Copyright © 2019-2024 Kris Jenkins, Bozhidar Batsov and CIDER contributors | ||
;; Copyright © 2019-2025 Kris Jenkins, Bozhidar Batsov and CIDER contributors | ||
;; | ||
;; Author: Kris Jenkins <[email protected]> | ||
;; Kato Muso <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
;;; cider-client.el --- A layer of abstraction above low-level nREPL client code. -*- lexical-binding: t -*- | ||
|
||
;; Copyright © 2013-2024 Bozhidar Batsov | ||
;; Copyright © 2013-2025 Bozhidar Batsov | ||
;; | ||
;; Author: Bozhidar Batsov <[email protected]> | ||
|
||
|
@@ -189,16 +189,20 @@ the current connection. Return the id of the sent message. | |
If TOOLING is truthy then the tooling session is used." | ||
(nrepl-send-request request callback (or connection (cider-current-repl 'any 'ensure)) tooling)) | ||
|
||
(defun cider-nrepl-send-sync-request (request &optional connection abort-on-input) | ||
(defun cider-nrepl-send-sync-request (request &optional connection | ||
abort-on-input callback) | ||
"Send REQUEST to the nREPL server synchronously using CONNECTION. | ||
Hold till final \"done\" message has arrived and join all response messages | ||
of the same \"op\" that came along and return the accumulated response. | ||
If ABORT-ON-INPUT is non-nil, the function will return nil | ||
at the first sign of user input, so as not to hang the | ||
interface." | ||
interface. | ||
if CALLBACK is non-nil, it will additionally be called on all received messages." | ||
(nrepl-send-sync-request request | ||
(or connection (cider-current-repl 'any 'ensure)) | ||
abort-on-input)) | ||
abort-on-input | ||
nil | ||
callback)) | ||
|
||
(defun cider-nrepl-send-unhandled-request (request &optional connection) | ||
"Send REQUEST to the nREPL CONNECTION and ignore any responses. | ||
|
@@ -342,6 +346,17 @@ The default value in nREPL is 1024." | |
:group 'cider | ||
:package-version '(cider . "0.25.0")) | ||
|
||
(defcustom cider-download-java-sources nil | ||
"Whether to automatically download source artifacts for 3rd-party Java classes. | ||
When enabled, CIDER will attempt to download source JARs from Maven for | ||
Java classes if the source file is not found locally. This downloading only | ||
happens once per artifact, and only when the user jumps to definition or | ||
requests `cider-doc' on a Java class or a member of the class." | ||
:type 'boolean | ||
:group 'cider | ||
:package-version '(cider . "1.17.0")) | ||
|
||
(defun cider--print-fn () | ||
"Return the value to send in the nrepl.middleware.print/print slot." | ||
(pcase cider-print-fn | ||
|
@@ -681,13 +696,25 @@ CONTEXT represents a completion context for compliment." | |
|
||
(defun cider-sync-request:info (symbol &optional class member context) | ||
"Send \"info\" op with parameters SYMBOL or CLASS and MEMBER, honor CONTEXT." | ||
(let ((var-info (thread-first `("op" "info" | ||
"ns" ,(cider-current-ns) | ||
,@(when symbol `("sym" ,symbol)) | ||
,@(when class `("class" ,class)) | ||
,@(when member `("member" ,member)) | ||
,@(when context `("context" ,context))) | ||
(cider-nrepl-send-sync-request (cider-current-repl))))) | ||
(let* ((req | ||
`("op" "info" | ||
"ns" ,(cider-current-ns) | ||
,@(when symbol `("sym" ,symbol)) | ||
,@(when class `("class" ,class)) | ||
,@(when member `("member" ,member)) | ||
,@(when context `("context" ,context)) | ||
,@(when cider-download-java-sources `("download-sources-jar" "1")))) | ||
(callback | ||
(lambda (resp) | ||
(let ((status (nrepl-dict-get resp "status")) | ||
(coords (nrepl-dict-get resp "coords"))) | ||
(when (member "download-sources-jar" status) | ||
(message "Local source not found, downloading Java sources for artifact %s/%s %s..." | ||
(nrepl-dict-get coords "group") | ||
(nrepl-dict-get coords "artifact") | ||
(nrepl-dict-get coords "version")))))) | ||
(var-info | ||
(cider-nrepl-send-sync-request req (cider-current-repl) nil callback))) | ||
(if (member "no-info" (nrepl-dict-get var-info "status")) | ||
nil | ||
var-info))) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
;;; cider-clojuredocs.el --- ClojureDocs integration -*- lexical-binding: t -*- | ||
|
||
;; Copyright © 2014-2024 Bozhidar Batsov and CIDER contributors | ||
;; Copyright © 2014-2025 Bozhidar Batsov and CIDER contributors | ||
;; | ||
;; Author: Bozhidar Batsov <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
;;; cider-common.el --- Common use functions -*- lexical-binding: t; -*- | ||
|
||
;; Copyright © 2015-2024 Artur Malabarba | ||
;; Copyright © 2015-2025 Artur Malabarba | ||
|
||
;; Author: Artur Malabarba <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
;;; cider-completion-context.el --- Context parsing -*- lexical-binding: t -*- | ||
|
||
;; Copyright © 2013-2024 Bozhidar Batsov, Artur Malabarba and CIDER contributors | ||
;; Copyright © 2013-2025 Bozhidar Batsov, Artur Malabarba and CIDER contributors | ||
;; | ||
;; Author: Bozhidar Batsov <[email protected]> | ||
;; Artur Malabarba <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
;;; cider-completion.el --- Smart REPL-powered code completion -*- lexical-binding: t -*- | ||
|
||
;; Copyright © 2013-2024 Bozhidar Batsov, Artur Malabarba and CIDER contributors | ||
;; Copyright © 2013-2025 Bozhidar Batsov, Artur Malabarba and CIDER contributors | ||
;; | ||
;; Author: Bozhidar Batsov <[email protected]> | ||
;; Artur Malabarba <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
;;; cider-connection.el --- Connection and session life-cycle management for CIDER -*- lexical-binding: t -*- | ||
;; | ||
;; Copyright © 2019-2024 Artur Malabarba, Bozhidar Batsov, Vitalie Spinu and CIDER contributors | ||
;; Copyright © 2019-2025 Artur Malabarba, Bozhidar Batsov, Vitalie Spinu and CIDER contributors | ||
;; | ||
;; Author: Artur Malabarba <[email protected]> | ||
;; Bozhidar Batsov <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
;;; cider-debug.el --- CIDER interaction with the cider.debug nREPL middleware -*- lexical-binding: t; -*- | ||
|
||
;; Copyright © 2015-2024 Bozhidar Batsov, Artur Malabarba and CIDER contributors | ||
;; Copyright © 2015-2025 Bozhidar Batsov, Artur Malabarba and CIDER contributors | ||
|
||
;; Author: Artur Malabarba <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
;;; cider-doc.el --- CIDER documentation functionality -*- lexical-binding: t -*- | ||
|
||
;; Copyright © 2014-2024 Bozhidar Batsov, Jeff Valk and CIDER contributors | ||
;; Copyright © 2014-2025 Bozhidar Batsov, Jeff Valk and CIDER contributors | ||
|
||
;; Author: Jeff Valk <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
;;; cider-docstring.el --- Docstring rendering -*- lexical-binding: t -*- | ||
|
||
;; Copyright © 2013-2024 Bozhidar Batsov and CIDER contributors | ||
;; Copyright © 2013-2025 Bozhidar Batsov and CIDER contributors | ||
;; | ||
;; Author: Bozhidar Batsov <[email protected]> | ||
|
||
|
@@ -157,7 +157,8 @@ that it usually has two spaces before each line used for indentation | |
\(see https://guide.clojure.style/#docstring-indentation). While displaying | ||
the docstring to the user, we usually want to control indentation and | ||
other aspects of the presentation, so we format it before displaying." | ||
(replace-regexp-in-string "\n " "\n" string)) | ||
(when string | ||
(replace-regexp-in-string "\n " "\n" string))) | ||
|
||
(provide 'cider-docstring) | ||
;;; cider-docstring.el ends here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
;;; cider-eldoc.el --- eldoc support for Clojure -*- lexical-binding: t -*- | ||
|
||
;; Copyright © 2012-2024 Tim King, Phil Hagelberg, Bozhidar Batsov | ||
;; Copyright © 2013-2024 Bozhidar Batsov, Artur Malabarba and CIDER contributors | ||
;; Copyright © 2012-2025 Tim King, Phil Hagelberg, Bozhidar Batsov | ||
;; Copyright © 2013-2025 Bozhidar Batsov, Artur Malabarba and CIDER contributors | ||
;; | ||
;; Author: Tim King <[email protected]> | ||
;; Phil Hagelberg <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
;;; cider-eval.el --- Interactive evaluation (compilation) functionality -*- lexical-binding: t -*- | ||
|
||
;; Copyright © 2012-2024 Tim King, Phil Hagelberg, Bozhidar Batsov | ||
;; Copyright © 2013-2024 Bozhidar Batsov, Artur Malabarba and CIDER contributors | ||
;; Copyright © 2012-2025 Tim King, Phil Hagelberg, Bozhidar Batsov | ||
;; Copyright © 2013-2025 Bozhidar Batsov, Artur Malabarba and CIDER contributors | ||
;; | ||
;; Author: Tim King <[email protected]> | ||
;; Phil Hagelberg <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
;;; cider-find.el --- Functionality for finding things -*- lexical-binding: t -*- | ||
|
||
;; Copyright © 2013-2024 Bozhidar Batsov, Artur Malabarba and CIDER contributors | ||
;; Copyright © 2013-2025 Bozhidar Batsov, Artur Malabarba and CIDER contributors | ||
;; | ||
;; Author: Bozhidar Batsov <[email protected]> | ||
;; Artur Malabarba <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
;;; cider-format.el --- Code and EDN formatting functionality -*- lexical-binding: t -*- | ||
|
||
;; Copyright © 2013-2024 Bozhidar Batsov, Artur Malabarba and CIDER contributors | ||
;; Copyright © 2013-2025 Bozhidar Batsov, Artur Malabarba and CIDER contributors | ||
;; | ||
;; Author: Bozhidar Batsov <[email protected]> | ||
;; Artur Malabarba <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
;;; cider-inspector.el --- Object inspector -*- lexical-binding: t -*- | ||
|
||
;; Copyright © 2013-2024 Vital Reactor, LLC | ||
;; Copyright © 2014-2024 Bozhidar Batsov and CIDER contributors | ||
;; Copyright © 2013-2025 Vital Reactor, LLC | ||
;; Copyright © 2014-2025 Bozhidar Batsov and CIDER contributors | ||
|
||
;; Author: Ian Eslick <[email protected]> | ||
;; Bozhidar Batsov <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
;;; cider-jar.el --- Jar functionality for Clojure -*- lexical-binding: t -*- | ||
|
||
;; Copyright © 2022-2024 Arne Brasseur | ||
;; Copyright © 2022-2025 Arne Brasseur | ||
;; | ||
;; Author: Arne Brasseur <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
;;; cider-log.el --- Log inspection functionality for Clojure -*- lexical-binding: t -*- | ||
|
||
;; Copyright © 2023-2024 Bozhidar Batsov and CIDER contributors | ||
;; Copyright © 2023-2025 Bozhidar Batsov and CIDER contributors | ||
|
||
;; Author: r0man <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
;;; cider-macroexpansion.el --- Macro expansion support -*- lexical-binding: t -*- | ||
|
||
;; Copyright © 2012-2024 Tim King, Phil Hagelberg, Bozhidar Batsov | ||
;; Copyright © 2013-2024 Bozhidar Batsov, Artur Malabarba and CIDER contributors | ||
;; Copyright © 2012-2025 Tim King, Phil Hagelberg, Bozhidar Batsov | ||
;; Copyright © 2013-2025 Bozhidar Batsov, Artur Malabarba and CIDER contributors | ||
;; | ||
;; Author: Tim King <[email protected]> | ||
;; Phil Hagelberg <[email protected]> | ||
|
Oops, something went wrong.