clojure-emacs / clojure-emacs/clj-refactor.el

C-g doesn't abort `add-require`

Open
#296 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Emacs Lisp
Stars
785
Forks
110
PR merge metrics
No merged PRs in 30d

Description

The same is probably true of other commands. If I invoke `ar`, start typing a namespace name, and then change my mind, `C-g` doesn't behave as expected.

I would expect it to either (1) go back to what I had before the command started or (2) abort the command and leave the ns form as it is now.

Instead, when I hit `C-g`, it leaves the `ns` form as it is now and then continues with the command (which means that it cleans up and evaluates the ns form). Evaluating the ns form is particularly problematic because I'm guaranteed to have an unfinished namespace name in there.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.