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

^::foo/ does not trigger cljr-slash

Open
#437 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Emacs Lisp
Stars
785
Forks
110
PR merge metrics
No merged PRs in 30d

Description

I'd expect typing `^::str/` to insert a `clojure.string` require, but currently it doesn't.

Probably in:

https://github.com/clojure-emacs/clj-refactor.el/blob/cd6b6fb30fc5a429ff209d20af2f2f304937fe99/clj-refactor.el#L1927

One should add something like:

```diff
(1- (point)))
+ (string-remove-prefix "^::")
(string-remove-prefix "::"))))
```

Cheers - V

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.