clojure-emacs / clojure-emacs/cider

cider-defun-at-point doesn't work correctly with #_ prefixed forms

Open
#2,682 6 comments 1 reaction 0 assignees View on GitHub
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

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.