clojure-emacs / clj-refactor.el

A CIDER extension that provides powerful commands for refactoring Clojure code.
GNU General Public License v3.0
773 stars 111 forks source link

WIP: Fix cljr-magic-requires :prompt #471

Closed llacom closed 2 years ago

llacom commented 4 years ago

WIP: tests/changelog to be done

Fix cljr-magic-requires when it equals to :prompt:

If (> (length (cl-second aliases)) 1) is true, then the user was already prompted by (cljr--prompt-user-for "Require " (cl-second aliases)), in which case we want it to evaluate to true to short-circuit the or.

Before submitting a PR make sure the following things have been done (and denote this by checking the relevant checkboxes):

Thanks!

vemv commented 2 years ago

Feel free to give it a shot again at some point!