Skip to content

Commit 7055feb

Browse files
committed
Improve a bit of code
1 parent 89baf87 commit 7055feb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clojure-mode.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2622,9 +2622,9 @@ lists up."
26222622
With a numberic prefix argument slurp the previous N s-expression
26232623
into the let form."
26242624
(interactive "p")
2625-
(unless n (setq n 1))
2626-
(dotimes (_ n)
2627-
(save-excursion (clojure--let-backward-slurp-sexp-internal))))
2625+
(let ((n (or n 1)))
2626+
(dotimes (_ n)
2627+
(save-excursion (clojure--let-backward-slurp-sexp-internal)))))
26282628

26292629
(defun clojure--let-forward-slurp-sexp-internal ()
26302630
"Slurp the next s-expression after the let form into the let form."

0 commit comments

Comments
 (0)