clojure-emacs / clojure-emacs/cider
cider-defun-at-point doesn't work correctly with #_ prefixed forms
Open
bug
pinned
- Dominant language
- Emacs Lisp
- Stars
- 3.7k
- Forks
- 651
- Avg merge
- 11h 6m
- Merged PRs (30d)
- 33
Description
Partially related to #2375.
`cider-defun-at-point` goes completely nuts when invoked from forms prefixed by `#_` (or any other data reader for that matter). Here's an example (█ stands for cursor):
```clj
#_(foo█)
#_(bar)
```
`(cider-defun-at-point)` here returns `"#_"`! Basically, it returns any form that follows the #_-prefixed form we are in; and that *might* be the desired behavior – but certainly not returning `#_`.
Contributor guide
Assessment
This issue has not been assessed yet.