Skip to content

Commit ff44b5b

Browse files
[nrepl-client] Fix nrepl--eval-request sending duplicate info
Addresses #3831.
1 parent b9e48ec commit ff44b5b

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
## master (unreleased)
44

5+
### New features
6+
7+
### Changes
8+
9+
### Bugs fixed
10+
11+
- [#3832](https://github.com/clojure-emacs/cider/issues/3832): Fix nrepl--eval-request sending duplicate info.
12+
513
## 1.19.0 (2025-07-10)
614

715
### New features

nrepl-client.el

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,16 +1025,15 @@ Register CALLBACK as the response handler."
10251025
NS provides context for the request.
10261026
If LINE and COLUMN are non-nil and current buffer is a file buffer, \"line\",
10271027
\"column\" and \"file\" are added to the message."
1028-
(nconc (and ns `("ns" ,ns))
1029-
`("op" "eval"
1030-
"code" ,(substring-no-properties input))
1031-
(when cider-enlighten-mode
1032-
'("enlighten" "true"))
1033-
(let ((file (or (buffer-file-name) (buffer-name))))
1034-
(when (and line column file)
1035-
`("file" ,file
1036-
"line" ,line
1037-
"column" ,column)))))
1028+
`("op" "eval"
1029+
"code" ,(substring-no-properties input)
1030+
,@(when ns `("ns" ,ns))
1031+
,@(when cider-enlighten-mode '("enlighten" "true"))
1032+
,@(let ((file (or (buffer-file-name) (buffer-name))))
1033+
(when (and line column file)
1034+
`("file" ,file
1035+
"line" ,line
1036+
"column" ,column)))))
10381037

10391038
(defun nrepl-request:eval (input callback connection &optional ns line column additional-params tooling)
10401039
"Send the request INPUT and register the CALLBACK as the response handler.

0 commit comments

Comments
 (0)