From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Andrii Kolomoiets Newsgroups: gmane.emacs.bugs Subject: bug#41531: 28.0.50; proper Eldoc async support Date: Thu, 11 Jun 2020 14:11:39 +0300 Message-ID: References: <87eeqwm101.fsf@gmail.com> <87img5lqty.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="14360"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) Cc: 41531@debbugs.gnu.org, theothornhill@pm.me, mvoteiza@udel.edu, Stefan Monnier , Dmitry Gutov , Fredrik Bergroth 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 Thu Jun 11 13:12:13 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 1jjL80-0003bX-KQ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Jun 2020 13:12:12 +0200 Original-Received: from localhost ([::1]:46542 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjL7y-0006gE-5f for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Jun 2020 07:12:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41162) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjL7q-0006fD-5P for bug-gnu-emacs@gnu.org; Thu, 11 Jun 2020 07:12:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52814) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jjL7p-0003Fm-Sh for bug-gnu-emacs@gnu.org; Thu, 11 Jun 2020 07:12:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jjL7p-0004fQ-Mv for bug-gnu-emacs@gnu.org; Thu, 11 Jun 2020 07:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrii Kolomoiets Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Jun 2020 11:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41531 X-GNU-PR-Package: emacs Original-Received: via spool by 41531-submit@debbugs.gnu.org id=B41531.159187390917919 (code B ref 41531); Thu, 11 Jun 2020 11:12:01 +0000 Original-Received: (at 41531) by debbugs.gnu.org; 11 Jun 2020 11:11:49 +0000 Original-Received: from localhost ([127.0.0.1]:36127 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjL7d-0004ex-Je for submit@debbugs.gnu.org; Thu, 11 Jun 2020 07:11:49 -0400 Original-Received: from mail-lj1-f193.google.com ([209.85.208.193]:37526) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjL7b-0004ej-Ra for 41531@debbugs.gnu.org; Thu, 11 Jun 2020 07:11:48 -0400 Original-Received: by mail-lj1-f193.google.com with SMTP id e4so6433729ljn.4 for <41531@debbugs.gnu.org>; Thu, 11 Jun 2020 04:11:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=sYeVq2pd5RoGtD/W8xpKWgT7IBEGsOZb6ldNsVlJjwc=; b=PLfIEIu+wt1cvMgwp6LEYaTnz3G9fNCFpyiaDtCGPw944w4RR+nm9tMVlob/3dsBa7 e/Qa79TLDM753DxsXMTagcQ71Zi4HZGwg+T/eCfOhgrOYe/rcfzl7gxGKYiMQK2Bd4Lq /+TN5B+xS8Uy05brqbwOKn+RshSniDTW8ziZmau22kxGF6mRqRfrHBa6qQan4UgVY4P+ KlumQUlDLj3rUDKVI7zk7WdlwIG3TmtTEwNtx0t6KAWbm1+4zyJHVtTxsA6LGwAINOq9 v5nzL6ks+BXSxQWBaO50CKJLD1qCPDrrdexosz47FHFsOIe8wRaPWzxncazIORo5V0pU ZYDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=sYeVq2pd5RoGtD/W8xpKWgT7IBEGsOZb6ldNsVlJjwc=; b=K8PwXrhQWQ1Bmxt0FWcfroZD6B0TDZGCohLJb+CC4HEDdYRO+UHGtKn5pX6kcf26dY 4LMTbyBxizmKeJ6AOIeg9uaPy2OTe6mp6655Fv3dTbpXCaKblwA5MPmARKRNSgVgNGWe x0MUSrvm7JaQuGrmOmcmG5hBLbGNE9K8wH7C5aGr+V4lPRxIdAbqMCvlDUAPP+lz7wp5 9JkbM9AJQhneVSbffYbYo9bF+9ik1cIA+e1ovRn1jYq4jbIkHuO2t+/SwSpsyA6wWkvP 95TPRfvbEQIxfzUajsdblLri8EWAn7z7mcnQUDeIcs1JVaB7y6jC1FsOnpeHgIUqZyjo FiLg== X-Gm-Message-State: AOAM532Mw4z6C1PAtS2cZ4PsVYCe42oSj3aIVgP2Ah+ev4cbhHvh6hov L1BwqB+AyeJ78bc8iXAQkgk= X-Google-Smtp-Source: ABdhPJxxWns3JHqzJjxIfimu3i5ZH74F34gvc3/Ub3MH/Xf1mcQLgd12b6ZXgJPi6tOFbrfTOuIFNQ== X-Received: by 2002:a2e:b5b9:: with SMTP id f25mr4281775ljn.50.1591873901681; Thu, 11 Jun 2020 04:11:41 -0700 (PDT) Original-Received: from muffinmac.local ([91.206.110.148]) by smtp.gmail.com with ESMTPSA id f74sm716399lfd.68.2020.06.11.04.11.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jun 2020 04:11:41 -0700 (PDT) In-Reply-To: <87img5lqty.fsf@gmail.com> ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Fri, 05 Jun 2020 12:00:57 +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:181849 Archived-At: Sorry for the late reply. Jo=C3=A3o T=C3=A1vora writes: >> 1. Display only first line of the hover info. Again :-) > > You should be able to do this with either > > (setq eldoc-echo-area-use-multiline-p 1) > > or > > (setq eldoc-echo-area-use-multiline-p nil) > > Did you try this? If so, what exactly didn't work for you when you > did? This way the signature info is truncated. For the function with many parameters the info of the last parameters is not visible.=20 >> 2. The hover info is sometimes displayed right before the signature info >> making the echo area to "blink". I suppose this must be fixed on Eglot >> side by not requesting both the hover and the signature infos at the >> same time. > > Not something to be fixed in Eglot, definitely, it's not its fault or > responsibility: it just reports whatever it has. According to specification, server may send `triggerCharacters` in the `SignatureHelpOptions`: the characters that trigger signature help automatically. Maybe Eglot should not always request the signature info. Though I like the current implementation. >> 3. That IMO useless "...truncated, see *help* buffer" message is moved >> to Eldoc. Do we really need to show this message every time? > > I see. Maybe not _every time_ but at least _once_, I'd say. Once per > Eldoc session (but what is an Eldoc session)? Once per x truncated > messages? Customization variable? (I hate those, but maybe). > > Or maybe never show it? Yep. Just like no additional message like "Press C-h v for the full documentation" is shown hovering the variable in the `emacs-lisp-mode`.