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
Document popup size and content #166
Comments
Good ideas, just tricky to do. The documentation is strictly what Rope (or Jedi) return for the respective method call, so ideally, this would be a fix in upstream in Rope and/or Jedi. Likewise, the popup is done purely by autocomplete, so a fix would need to happen there. The documentation popup might be doable with http://www.emacswiki.org/emacs/PosTip but I'm not sure how this integrates with auto-complete. |
About the popup dimension and the buffer size, there is a pull request in popup.el about this issue. I tried to bring it up with a comment. For PosTip: thanks for pointing out, I'll take a look. For the documentation (w.r.t. the screenshot): if you just type in the python code |
For Rope, the documentation for the completions are from |
Ok, got it. Note that I'm not very into the emacs/rope/jedi/elpy "internals", so the next questions may sound silly but... please, forgive me. :-) So, the first question is: why is documentation supplied by Rope? Shouldn't be jedi (that I use as the backend) to supply the documentation and the completion suggestions? Could you point me the code where the completion popup is filled (or it's not something elpy dependent) so that I can take a look? Thanks. |
Well, if you use Jedi, it's supplied by Jedi. Sorry for the confusion, rope's the default usually :-) For completions, elpy calls the method |
No, I was totally wrong!!! Ok, I think I should slow down a little. Question number zero: what kind of Jedi config shall I place in my |
|
I made some tests and I came to this conclusion. The only issue I couldn't fix is how to have the arguments in bold one by one in the minibuffer while typing a method invocation in elpy while using jedi.el as the backend. Any suggestion? Thanks. |
You can certainly study a workaround :-) Highlighting method arguments would likely have to be done in Emacs Lisp, and it's tricky to parse Python from Lisp. If you find a better option, I'd be very interested. |
I'll try to study a workaround for the Rope backup and I've already suggested Jedi.el author to change the tooltip content. About the arguments highlighting: it should come for free with jedi.el, as it supply this utility on its own... |
Due to lack of activity, I assume this has been resolved or abandoned. Please do not hesitate to open a new issue (or even a pull request) with further information or ideas, though! |
(Emacs 24.3 on Ubuntu 12.04, elpy installed from Marmalade)
The text was updated successfully, but these errors were encountered: