Skip to content

Commit e71c2aa

Browse files
yuhan0bbatsov
authored andcommitted
Fix bugs in #3185
1 parent 1390fca commit e71c2aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cider-eval.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ That's set by commands like `cider-eval-last-sexp-in-context'.")
10251025
"Return context for `cider--eval-in-context' by extracting all parent let bindings."
10261026
(save-excursion
10271027
(let ((res ""))
1028-
(condition-case er
1028+
(condition-case nil
10291029
(while t
10301030
(backward-up-list)
10311031
(when (looking-at (rx "(" (or "when-let" "if-let" "let") (opt "*")
@@ -1045,7 +1045,7 @@ When GUESS is non-nil, attempt to extract the context from parent let-bindings."
10451045
(let* ((code (string-trim-right
10461046
(buffer-substring-no-properties (car bounds) (cadr bounds))))
10471047
(eval-context
1048-
(minibuffer-with-setup-hook (when guess #'beginning-of-buffer)
1048+
(minibuffer-with-setup-hook (if guess #'beginning-of-buffer #'ignore)
10491049
(read-string "Evaluation context (let-style): "
10501050
(if guess (cider--guess-eval-context)
10511051
cider-previous-eval-context))))

0 commit comments

Comments
 (0)