Comments (6)
I'd like to avoid doing something like this, @bbatsov:
(defun company-quickhelp--doc (selected)
(cl-letf (((symbol-function 'cider--var-choice) (lambda (_) (error "Ambiguous candidate!"))))
...))
Could we perhaps introduce *cider--tooling-context*
which tools can bind to t
before calling into CIDER
? In the case of the documentation buffer, an empty buffer, or one containing a short text stating that documentation isn't available before disambiguation would make sense.
from company-quickhelp.
Maybe you can bind completing-read-function
locally to one that just picks the first option?
from company-quickhelp.
Yeah, that's a good idea, and more general than the hack I put in my .emacs
while deliberating what to do about this.
My concern was that the popup would be misleading, and it would be better to fail gracefully and let the user know about the situation. But the popup already is misleading, the annotations are all out of whack in these situations, and the user might prefer seeing documentation for one of the candidates rather than an entirely unhelpful message about ambiguity.
from company-quickhelp.
You can also merge all possible candidates I guess.
On 18 April 2015 at 10:01, Lars Andersen [email protected] wrote:
Closed #8 #8 via
ef01c60
ef01c60
.—
Reply to this email directly or view it on GitHub
#8 (comment).
Best Regards,
Bozhidar Batsov
from company-quickhelp.
That might require some tricky inversion of control, though: then the amount of times this frontend would call doc-buffer
would be dependent on how much (and if at all) completing-read
was called during the first doc-buffer
call. Should be doable, though.
Could also be slow for certain methods.
from company-quickhelp.
Merge all candidates as in display all the docs? java docstrings--at least those in the standard library--are often the length of novels so that's going to get out of hand real quick :)
from company-quickhelp.
Related Issues (20)
- ESS no documentation available HOT 10
- Tooltip xpos offset too wide by 5 chars HOT 4
- Use the same documentation window as lsp-ui-doc HOT 1
- Error running timer ‘company-quickhelp--show’: (wrong-type-argument overlayp nil) HOT 4
- [Question] Can color variables be theme-dependent? HOT 7
- Maintain terminal support. HOT 2
- Support display using `eldoc-box` HOT 2
- Does not work along with company-complete HOT 11
- Warning: ‘focus-out-hook’ is an obsolete variable
- Error running timer when setting company-selection-default to nil HOT 1
- Question: Which face is this? HOT 2
- Integration with `counsel-company` HOT 2
- Company-quickhelp eats newlines HOT 8
- documentation popup delay seems off by factor of 10 HOT 3
- Quickhelp content showing as part of the completition candidate HOT 3
- Docs appear in minibuffer on hovering keyword HOT 1
- Company showing blank popups HOT 1
- popup mishandled by display-buffer-alist HOT 9
- text properties are ignored HOT 1
- Use popup instead when inside the terminal? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from company-quickhelp.