@@ -475,18 +475,11 @@ ENDP and DELIMITER."
475
475
(declare-function paredit-close-curly " ext:paredit" t t )
476
476
(declare-function paredit-convolute-sexp " ext:paredit" )
477
477
478
- (defun clojure--replace-let-bindings-and-indent (orig-fun &rest args )
479
- " Advise ORIG-FUN to replace let bindings.
480
-
481
- Sexps are replace by their bound name if a let form was
482
- convoluted.
483
-
484
- ORIG-FUN should be `paredit-convolute-sexp' .
485
-
486
- ARGS are passed to ORIG-FUN, as with all advice."
478
+ (defun clojure--replace-let-bindings-and-indent ()
479
+ " Replace let bindings and indent."
487
480
(save-excursion
488
481
(backward-sexp )
489
- (when (looking-back clojure--let-regexp)
482
+ (when (looking-back clojure--let-regexp nil )
490
483
(clojure--replace-sexps-with-bindings-and-indent))))
491
484
492
485
(defun clojure-paredit-setup (&optional keymap )
@@ -2075,9 +2068,8 @@ many times."
2075
2068
(condition-case nil
2076
2069
(save-match-data
2077
2070
(let ((original-position (point ))
2078
- clojure-comment-start clojure-comment- end)
2071
+ clojure-comment-end)
2079
2072
(beginning-of-defun )
2080
- (setq clojure-comment-start (point ))
2081
2073
(end-of-defun )
2082
2074
(setq clojure-comment-end (point ))
2083
2075
(beginning-of-defun )
@@ -2132,8 +2124,7 @@ list of (fn args) to pass to `apply''"
2132
2124
Point must be between the opening paren and the ->> symbol."
2133
2125
(forward-sexp )
2134
2126
(save-excursion
2135
- (let ((beg (point ))
2136
- (contents (clojure-delete-and-extract-sexp)))
2127
+ (let ((contents (clojure-delete-and-extract-sexp)))
2137
2128
(when (looking-at " *\n " )
2138
2129
(join-line 'following ))
2139
2130
(clojure--ensure-parens-around-function-names)
@@ -2473,7 +2464,7 @@ See: https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-cycle-if"
2473
2464
(condition-case nil
2474
2465
(backward-up-list )
2475
2466
(scan-error (user-error " `clojure-cycle-not' must be invoked inside a list" )))
2476
- (if (looking-back " (not " )
2467
+ (if (looking-back " (not " nil )
2477
2468
(progn
2478
2469
(delete-char -5 )
2479
2470
(forward-sexp )
@@ -2709,7 +2700,7 @@ into the let form."
2709
2700
With a numeric prefix argument slurp the next N s-expressions into the let form."
2710
2701
(interactive " p" )
2711
2702
(unless n (setq n 1 ))
2712
- (dotimes (k n)
2703
+ (dotimes (_ n)
2713
2704
(save-excursion (clojure--let-forward-slurp-sexp-internal))))
2714
2705
2715
2706
;;;### autoload
0 commit comments