We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There appear to be several issues with the implementation of cljr--promote-function-literal (the #() -> fn case of cljr-promote-function)
cljr--promote-function-literal
#() -> fn
#(foo %)
(comment #(foo % (bar %2)) ) ;; => (comment (fn [a] (foo a (bar a2))) )
(comment #(str "%%" %) )
I've proposed an alternative implementation of this feature in clojure-emacs/clojure-mode#601.
The cljr-promote-function command could delegate to it in the #()->fn case, replacing the current implementation while keeping the fn->defn logic.
cljr-promote-function
#()->fn
fn->defn
3.0.0alpha13
;; CIDER 1.2.0snapshot, nREPL 0.8.3 ;; Clojure 1.10.3, Java 13.0.2
28.1
macOS
The text was updated successfully, but these errors were encountered:
Fine by me. PR welcome!
Sorry, something went wrong.
No branches or pull requests
Expected/Actual behavior
There appear to be several issues with the implementation of
cljr--promote-function-literal
(the#() -> fn
case of cljr-promote-function)#(foo %)
I've proposed an alternative implementation of this feature in clojure-emacs/clojure-mode#601.
The
cljr-promote-function
command could delegate to it in the#()->fn
case, replacing the current implementation while keeping thefn->defn
logic.Environment & Version information
clj-refactor.el version information
3.0.0alpha13
CIDER version information
Leiningen or Boot version
Emacs version
28.1
Operating system
macOS
The text was updated successfully, but these errors were encountered: