clojure-emacs / orchard

A fertile ground for Clojure tooling
Eclipse Public License 1.0
326 stars 54 forks source link

`info` returns the wrong docstring for cljs `spec/def` #182

Closed vemv closed 1 year ago

vemv commented 1 year ago

spec/def is a macro.

For this cljs request, the docstring for the special form def is returned instead of spec/def's.

(-->
  id         "51"
  op         "eldoc"
  session    "acfd603d-57fc-41a6-bb79-38c192d18fa2"
  time-stamp "2023-08-29 13:41:49.282307000"
  ns         #("icd.scroll.letters" 0 18 (fontified t cider-locals nil cider-block-dynamic-font-lock t face font-lock-type-face))
  sym        "spec/def"
)
(<--
  id         "51"
  session    "acfd603d-57fc-41a6-bb79-38c192d18fa2"
  time-stamp "2023-08-29 13:41:49.284298000"
  docstring  "Creates and interns a global var with the name
  of symbol in the current namespace (*ns*) or locates such a var if
  it already exists.  If init is supplied, it is evaluated, and the
  root binding of the var is set to the resulting value.  If init is
  not supplied, the root binding of the var is unaffected."
  eldoc      (("def" "symbol" "doc-string?" "init?"))
  name       "def"
  ns         "cljs.core"
  status     ("done")
  type       "special-form"
)