@@ -475,18 +475,11 @@ ENDP and DELIMITER."
475475(declare-function paredit-close-curly " ext:paredit" t t )
476476(declare-function paredit-convolute-sexp " ext:paredit" )
477477
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."
487480 (save-excursion
488481 (backward-sexp )
489- (when (looking-back clojure--let-regexp)
482+ (when (looking-back clojure--let-regexp nil )
490483 (clojure--replace-sexps-with-bindings-and-indent))))
491484
492485(defun clojure-paredit-setup (&optional keymap )
@@ -2075,9 +2068,8 @@ many times."
20752068 (condition-case nil
20762069 (save-match-data
20772070 (let ((original-position (point ))
2078- clojure-comment-start clojure-comment- end)
2071+ clojure-comment-end)
20792072 (beginning-of-defun )
2080- (setq clojure-comment-start (point ))
20812073 (end-of-defun )
20822074 (setq clojure-comment-end (point ))
20832075 (beginning-of-defun )
@@ -2132,8 +2124,7 @@ list of (fn args) to pass to `apply''"
21322124Point must be between the opening paren and the ->> symbol."
21332125 (forward-sexp )
21342126 (save-excursion
2135- (let ((beg (point ))
2136- (contents (clojure-delete-and-extract-sexp)))
2127+ (let ((contents (clojure-delete-and-extract-sexp)))
21372128 (when (looking-at " *\n " )
21382129 (join-line 'following ))
21392130 (clojure--ensure-parens-around-function-names)
@@ -2473,7 +2464,7 @@ See: https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-cycle-if"
24732464 (condition-case nil
24742465 (backward-up-list )
24752466 (scan-error (user-error " `clojure-cycle-not' must be invoked inside a list" )))
2476- (if (looking-back " (not " )
2467+ (if (looking-back " (not " nil )
24772468 (progn
24782469 (delete-char -5 )
24792470 (forward-sexp )
@@ -2709,7 +2700,7 @@ into the let form."
27092700With a numeric prefix argument slurp the next N s-expressions into the let form."
27102701 (interactive " p" )
27112702 (unless n (setq n 1 ))
2712- (dotimes (k n)
2703+ (dotimes (_ n)
27132704 (save-excursion (clojure--let-forward-slurp-sexp-internal))))
27142705
27152706;;;### autoload
0 commit comments