From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#43103: 28.0.50; Default ElDoc composition strategy in Elisp mode (eldoc-documentation-strategy) Date: Sat, 29 Aug 2020 18:58:11 +0300 Message-ID: <83wo1hxx4c.fsf@gnu.org> References: <87h7sla2gc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16823"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43103@debbugs.gnu.org, larsi@gnus.org, monnier@iro.umontreal.ca To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 29 17:59:10 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 1kC3G2-0004GH-7C for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Aug 2020 17:59:10 +0200 Original-Received: from localhost ([::1]:42474 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kC3G1-0006Fi-3K for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Aug 2020 11:59:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kC3Fu-0006FE-I0 for bug-gnu-emacs@gnu.org; Sat, 29 Aug 2020 11:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37377) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kC3Fu-0002De-75 for bug-gnu-emacs@gnu.org; Sat, 29 Aug 2020 11:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kC3Fu-0003FN-5J for bug-gnu-emacs@gnu.org; Sat, 29 Aug 2020 11:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Aug 2020 15:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43103 X-GNU-PR-Package: emacs Original-Received: via spool by 43103-submit@debbugs.gnu.org id=B43103.159871670712438 (code B ref 43103); Sat, 29 Aug 2020 15:59:02 +0000 Original-Received: (at 43103) by debbugs.gnu.org; 29 Aug 2020 15:58:27 +0000 Original-Received: from localhost ([127.0.0.1]:48923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kC3FL-0003EY-2c for submit@debbugs.gnu.org; Sat, 29 Aug 2020 11:58:27 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kC3FJ-0003EM-VT for 43103@debbugs.gnu.org; Sat, 29 Aug 2020 11:58:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54731) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kC3FE-0002A9-1i; Sat, 29 Aug 2020 11:58:20 -0400 Original-Received: from [176.228.60.248] (port=4018 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kC3FC-0006JP-LQ; Sat, 29 Aug 2020 11:58:19 -0400 In-Reply-To: <87h7sla2gc.fsf@gmail.com> (message from =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= on Sat, 29 Aug 2020 16:36:51 +0100) 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:186650 Archived-At: > From: João Távora > Date: Sat, 29 Aug 2020 16:36:51 +0100 > > I've recently moved `flymake-eldoc-function` from first to the last spot > in the list. If I hadn't done that, the default behaviour when writing > a sexp such as, say: > > (my-dear-function [point here]) > > would be to foremost greet the user with the Flymake error message about > insufficient args being supplied to the `my-dear-function` call about to > be written, rather than what those args are supposed to be. Obviously > this defeats the purpose of having ElDoc serve as a code-writing aid. > > But now take this other situation and suppose there is an error in the > "foo" where point is on: > > (my-dear-function 'fo[point here]o 42 'bar) > > Having the sexp written with a suitable number of arguments but with > some Flymake mistake will now fail to notify us of those mistakes, since > the signature information takes priority. This is similar, if not the > same, as the aforementioned bug#32243. > > Earlier, there was no obvious solution to this, especially if one > insisted on using only a one-line-tall echo area at the maximum. Now, > after Mark Oteiza's introduction of `eldoc-documentation-functions`, > there are ways to configure suitable behaviours. In particular there is > `eldoc-documentation-strategy` (formerly `eldoc-documentation-function`, > singular), which tells how to coordinate ElDoc information from multiple > sources. > > This variable's value defaults to `eldoc-documentation-default` > globally. I suggest we default it to `eldoc-documentation-compose` in > Elisp mode, so the three functions occupying > `eldoc-documentation-functions` can be in play at the same time. This > is because the information conveyed by them can be generally be useful > at the same time. How will the proposed change modify the behavior in the use case with which you started this message?