From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#62816: 30.0.50; ElDoc blinks echo area when eldoc-documentation-compose is used Date: Fri, 14 Apr 2023 00:23:17 +0100 Message-ID: <87ttxj2wpm.fsf@gmail.com> References: <87leivsusz.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="blaine.gmane.org:116.202.254.214"; logging-data="27199"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 62816@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 14 01:22:28 2023 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 1pn6Gq-0006sX-2d for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Apr 2023 01:22:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pn6GS-0006zA-0l; Thu, 13 Apr 2023 19:22:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pn6GQ-0006yy-D3 for bug-gnu-emacs@gnu.org; Thu, 13 Apr 2023 19:22:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pn6GQ-0004pU-4q for bug-gnu-emacs@gnu.org; Thu, 13 Apr 2023 19:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pn6GP-0006em-L7 for bug-gnu-emacs@gnu.org; Thu, 13 Apr 2023 19:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Apr 2023 23:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62816 X-GNU-PR-Package: emacs Original-Received: via spool by 62816-submit@debbugs.gnu.org id=B62816.168142809225553 (code B ref 62816); Thu, 13 Apr 2023 23:22:01 +0000 Original-Received: (at 62816) by debbugs.gnu.org; 13 Apr 2023 23:21:32 +0000 Original-Received: from localhost ([127.0.0.1]:45031 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pn6Fn-0006dw-A4 for submit@debbugs.gnu.org; Thu, 13 Apr 2023 19:21:32 -0400 Original-Received: from mail-wm1-f42.google.com ([209.85.128.42]:54965) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pn6Fi-0006df-8l for 62816@debbugs.gnu.org; Thu, 13 Apr 2023 19:21:21 -0400 Original-Received: by mail-wm1-f42.google.com with SMTP id q5so9432380wmo.4 for <62816@debbugs.gnu.org>; Thu, 13 Apr 2023 16:21:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681428072; x=1684020072; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=J524clMWrmXGwyT5N9iibxAMp2DYfFASViypa8l9I0k=; b=E0hIabf0igWePwBOx4dYaur6p9WPrAYz9I3qURIfoEf7Bv34YzbqQjt9zdkHAeWBxN qTpvx45uZUXjMy+qGZvGZv4oWTfJ5D1YaYtob14FM5610Tgy3XxvKS9/+H/BljGqReZs YZOG4PqVUQiN2miW/qBkT2Yd2isaDfijGcSvYxPc5lhvXoqQIEFHVQ07VM0mXWesbG8p TCcfHyQSxLEwbvrGFgVh/ZvmoZ3DCthMklQtqIbOIgrXhWn7xRZ4AEFgNDqJ5joWEJ7y UX9iMeBA3bKJZ0RqvWh5OsBifLe1ciVBGRqEWTWgh5b8kGg2ZlAF7kneaSBxVRIXJGyH juVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681428072; x=1684020072; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=J524clMWrmXGwyT5N9iibxAMp2DYfFASViypa8l9I0k=; b=aLwnAuhDmiVIGR6pX1wlCUkpsp/TtdSZAwwmHFYfCWZjtZdwH7pZ1lsJA30GTfwLVz 48mRGMW/uJHBO0E/qhWcHeiO/xhQXfv4qgBcIHHyBGl9iIqY/XaryEOF2DJpFL1T3oH1 3qWsxk6aU6MQ6NJAZLugFyUbxzDvA2mrT84adsPru/ZfwWKTqzJQiSzNEgZeNLFghh8E I6Vnene9EgnA3ub8U68DCCbxIJjJQRVmqSoC41jAwh7XUjgj3YF0yQhICHbTpnjCnHHC O8PPJQ4052dWS26IBtNvgyH+7hbrHnEmWyJS3PueqKqFXUA+glesf3LDPM+41kdy1V+I EhvQ== X-Gm-Message-State: AAQBX9cSeJ5luNdprSoLOj07nBPsDzf4sGc1UjDVquk5JwZ7Cixz3jBO xdXmHZKBC0r6dLa10wYJlC/ageWRYC0= X-Google-Smtp-Source: AKy350YoWWhgMQUq0EueqNE2ZF8U3n7ueV6OnANebu5rb4NcOm44M4fV1/0Hx5/+bnUY+snhMdu9HQ== X-Received: by 2002:a7b:cd93:0:b0:3ed:320a:3721 with SMTP id y19-20020a7bcd93000000b003ed320a3721mr3095375wmj.22.1681428071941; Thu, 13 Apr 2023 16:21:11 -0700 (PDT) Original-Received: from krug ([87.196.73.56]) by smtp.gmail.com with ESMTPSA id f20-20020a1c6a14000000b003eae73f0fc1sm2938735wmc.18.2023.04.13.16.21.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Apr 2023 16:21:11 -0700 (PDT) In-Reply-To: (Dmitry Gutov's message of "Fri, 14 Apr 2023 01:58:19 +0300") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:259884 Archived-At: Dmitry Gutov writes: > I still see the problem with window jumping and blinking when typing > with company-mode enabled, though. You say: "I do use company and > multi-line echo areas liberally". Do you have some extra configuration > for company-frontends? Not that I know of. I just use a TTY frame. I don't see it. The echo area is frequently empty for me when selecting Eglot completions (in clangd, the server I most use nowadays). > Here's a screencast that demonstrates the problem: > https://a.uguu.se/csTMrzxc.webm Ugh, that indeed looks awful. We must fix it. > One way to fix that is > (push 'company-echo-metadata-frontend company-frontends) > but I wonder whether some better solution exists. I hope so. > OTOH, Eglot implements the attribute which this frontend plugs into > via :company-docsig, and it seems like both with LSP servers that I > just tried it returns nil. If the feature is generally unused, I could > understand if Eglot users all disable this frontend anyway. I don't think that's the best solution. Though you're right that only one server, pyright, uses this (it's some user's hack in eglot.el I let through: I don't even know what it does, i think it tells) But, perhaps to ask the obvious, why can't Company just detect when nil is passed to it via :company-docsig and not do any echoing in that situation? Isn't it Company doing the clearing we want to avoid? Another option is just to temporarily disable eldoc during the duration of the Company completion session.=20=20 I think Company could/should do both of these things, but I haven't studied the problem so I might be missing something. Jo=C3=A3o