Skip to content

Commit cbd40f7

Browse files
chpillbbatsov
authored andcommitted
Fix cider-interactive-eval-override invocation
1 parent 47e2902 commit cbd40f7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
### Bugs fixed
3131

3232
- [#3600](https://github.com/clojure-emacs/cider/pull/3600): Fix scittle jack-in when using `cider-jack-in-clj`.
33+
- [#3663](https://github.com/clojure-emacs/cider/issues/3663): Fix `cider-interactive-eval-override` invocation.
3334

3435
## 1.13.1 (2024-02-01)
3536

cider-eval.el

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,11 @@ arguments and only proceed with evaluation if it returns nil."
12291229
(delete-overlay ov))))
12301230
(unless (and cider-interactive-eval-override
12311231
(functionp cider-interactive-eval-override)
1232-
(funcall cider-interactive-eval-override form callback bounds))
1232+
(condition-case _
1233+
(funcall cider-interactive-eval-override form callback bounds additional-params)
1234+
(wrong-number-of-arguments
1235+
;; fallback for backward compatibility
1236+
(funcall cider-interactive-eval-override form callback bounds))))
12331237
(cider-map-repls :auto
12341238
(lambda (connection)
12351239
(cider--prep-interactive-eval form connection)

0 commit comments

Comments
 (0)