From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#43609: 28.0.50; eldoc-documentation-function Date: Tue, 29 Sep 2020 17:09:31 +0200 Message-ID: <74e25bf7-e7ad-a0e7-3fe5-36ea6afbace5@gmx.at> References: <2e610c3f-6e5f-c7dd-af2e-aeb5e20d8664@gmx.at> <89a118cf-65e1-5e9f-0884-577a52ca115e@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30691"; mail-complaints-to="usenet@ciao.gmane.io" To: Dmitry Gutov , 43609@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 29 17:10:54 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kNHHI-0007ov-QK for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Sep 2020 17:10:52 +0200 Original-Received: from localhost ([::1]:42952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNHHH-0006Tn-LP for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Sep 2020 11:10:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNHGU-0006Tc-AN for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2020 11:10:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45384) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kNHGU-0006y9-0r for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2020 11:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kNHGT-0002Nw-Pn for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2020 11:10:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Sep 2020 15:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43609 X-GNU-PR-Package: emacs Original-Received: via spool by 43609-submit@debbugs.gnu.org id=B43609.16013921819137 (code B ref 43609); Tue, 29 Sep 2020 15:10:01 +0000 Original-Received: (at 43609) by debbugs.gnu.org; 29 Sep 2020 15:09:41 +0000 Original-Received: from localhost ([127.0.0.1]:56930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNHG9-0002NJ-D3 for submit@debbugs.gnu.org; Tue, 29 Sep 2020 11:09:41 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:40421) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNHG7-0002N3-G6 for 43609@debbugs.gnu.org; Tue, 29 Sep 2020 11:09:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1601392173; bh=g/67/bNsroWy34skvJmuXWCUU3vZ4l5UsKAIu6iuwrM=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=FG7bws0ysIxH4MGF6fwBjp2/luhqPGuDQQ2sIkpIAT9sxML33XofTjmDVuAlkJurq VKrFuQykzLd6XRCGFTrCXLejE4txaut7SlnmeQHzsrjInDa5EeV2VMnI124ExsYBbB zVqStY7IRHGIczoxtrbGZ9+IQmMvXZjbRkoCER68= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([46.125.249.51]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MQMyf-1k0xBc0fJJ-00MK06; Tue, 29 Sep 2020 17:09:33 +0200 In-Reply-To: Content-Language: en-US X-Provags-ID: V03:K1:ViRwmV3BQ5hs85jpYhJwCKa+VLjtsE68zh9ZjOnq3EYdnIWmbrE 5awe1gTBOa51PYavSayOh55HXOTER92je7H85X6JyGkTKwVMyX/BdrKQkMwHu2VFmwSLqbb QKEOacao97hQfYG971hfuPLP9d18JIXfB6RC+tGSGMGncs8QbHDsi6U4egFGPL5HnSJyh3t tnXbWhhRmCLkXY51JIcFQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:+DF1w9LkjO4=:zbUNmDMPYj7TfHdvQvv25h DOH1ovWehh7albh8fPNcYcVZzEukrzeDtsQrejwf8fihZI/AZTs/rXOB+uWhKFOCU7IEokvv4 q0sDsDsl7LoLgaAtVEZfpPpqF2ExqbpEjG6vaSSqg6FwCDweVU6QCdLQVEc4T/icXNezjXraD OMsVt6EFdCU7AgIcMRBX6+IMZ+7XP8zT5olbBj44JYoudzrCWgJ7/xkJ82zDo6fJkF+7c5dNm yKlNohgt3Ot3S3H8QpyU8k2Ld+ifMLx6XYasezMfG9sCZepOJZIQrqoHZBr2/5NljyYCGCJ3f NvxeAXK2ez9O/+UiP54D+8zWNhOZuzko6CvWbb1w0pTf8Veuk0tYlX2PFn1+TWhaLO/71N8ae 07l1u3oweKg8Jv4GFX1Xx9x77dji93/sN96LjDFcFLyczl6KWl/jg/Y6eFvfsVRIqM0zBz86b TY9szmVcKUYopY6MMzquzwWEpPpuYACZyrFVu1zWsxOPJxMBavgO5tUGvQUzAQEpnmK7pLYWN 1JQJAac4xWS1zfsoKXBGLQNAODVH/PcUZpZW1pfKRtk3hNf6Z3QKMZg1IfY+FZM8IkSmbYQpP 1TCSSb6lFb6gnv7E1Bb40MWS2LmTVk3TWpeN/k8HDc1kTR8CowNqA60owTMLCzuXAXTdZ49kJ Sm8LUe2X/X3vPULcWVMAaMxJuShH1VlY6q9hVmiuGlFGa8wx3bggNdfahbyU4WQabhdsPJiLE ksMq1QmIFr8X9wmMB+eb0c4JXaePoj1ia7Iskpk0PdqgQaPBL5zky4N0aVfBsWF5sJzaxQ/a X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:189273 Archived-At: > 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