[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#43609: 28.0.50; eldoc-documentation-function
From: |
martin rudalics |
Subject: |
bug#43609: 28.0.50; eldoc-documentation-function |
Date: |
Tue, 29 Sep 2020 17:09:31 +0200 |
> Hooks is a list of functions. They get called to fetch the doc
> information. And now there is some logic called "strategies" that
> combines the results.
So 'eldoc-documentation-functions' just holds a list of functions I
could call in order to get the documentation of the object at point?
How does the notion of a "hook" enter here?
> No, the hook functions are written already. They are basically a list
> of functions that were previously the values of
> eldoc-documentation-function. Except it's now a list. *And* they use
> an asynchronous convention where the first argument they receive is a
> callback.
Is there a way to drop that callback? I just want an immediate answer.
> It should work if your package learns to make use of the new
> eldoc-documentation-functions hook. Or eldoc-documentation-strategy,
> which calls them.
'eldoc-documentation-strategy' is a variable so it's probably the
function that is the value of that variable and it should suffice to use
'eldoc-documentation-default'. But this failed here before.
martin
bug#43609: 28.0.50; eldoc-documentation-function, João Távora, 2020/09/30