clojure-emacs / clj-refactor.el

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

Prefer `find-file-noselect` to `with-temp-file` #503

Closed vemv closed 2 years ago

vemv commented 2 years ago

with-temp-file causes (buffer-file-name) to return nil which is the root cause of #139.

Additionally, now cljr--update-file does not leave files open (unless they were alrady open), improving performance / UX.

Fixes https://github.com/clojure-emacs/clj-refactor.el/issues/139

vemv commented 2 years ago

This worked nicely in my machine.

Anyone else has the chance to try it out / review? @expez maybe?

vemv commented 2 years ago

Cheers ☕️☕️