-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include special forms in apropos #410
Conversation
Fixes clojure-emacs#409. Some special forms (e.g. `if`) are included in apropos if the `search-ns` is nil or `clojure.core`. Included special forms are those those with documentation in `clojure.repl`, as well as `&`, `catch`, and `finally`, the first of which uses the documentation of `fn` and the others that of `try`.
See related PRs in cider-nrepl and CIDER: - clojure-emacs/cider-nrepl#410 - clojure-emacs/cider#2012
@bbatsov Seems like some of the tests are not passing, which I suspect is due to |
Probably @benedekfazekas |
will have a look |
(str/join "/" ((juxt (comp ns-name :ns) :name) | ||
(meta v)))) | ||
(if (special-symbol? v) | ||
(str (:name (info/resolve-special v))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So all these functions conflate symbols and vars now?
If that's the way, then I think instead of inserting (special-symbol? ...)
checks everywhere it's better to have all these internals in one place - (var-meta ..)
. Also IMO including one middleware into another is not ideal. All these small utilities could easily live in a separate utility namespace (precisely what has been done as an aside of #405 btw).
@xiongtx do you plan for more imediate changes? Could you please give me a day or so to merge #405 as any changes to info and apropos will likely introduce hard conflicts with that branch. Thanks.
|
Not sure. How and where is it conflating them? I guess my point is that those small utility functions are useful outside of info.clj and better have precise semantics. So |
had a quick look on the build failures. They don't seem to be mranderson problems. The fact that only some java/clojure version variations fail in the matrix in itself is a good indication that it is not the inlining where something goes wrong. hope this makes sense |
Fixes #409.
Some special forms (e.g.
if
) are included in apropos if thesearch-ns
is nil orclojure.core
.Included special forms are those those with documentation in
clojure.repl
,as well as
&
,catch
, andfinally
, the first of which uses thedocumentation of
fn
and the others that oftry
.Update:
With Lein 2.7.1, this passes:
Whereas this does not:
Maybe the
thomasa/mranderson
plugin needs to be updated?Before submitting a PR make sure the following things have been done:
Thanks!