From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#62816: 30.0.50; ElDoc blinks echo area when eldoc-documentation-compose is used Date: Sat, 15 Apr 2023 04:03:16 +0300 Message-ID: <38c5efc6-2b28-b09d-eef6-e9e8c97d7bbd@gutov.dev> References: <87leivsusz.fsf@gmail.com> <87ttxj2wpm.fsf@gmail.com> <2e04fa32-d52e-73ac-dabb-7ed5396dce0a@gutov.dev> <87jzyf2u8n.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31193"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Cc: 62816@debbugs.gnu.org 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 Apr 15 03:04:27 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 1pnUL3-0007oo-Pc for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Apr 2023 03:04:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pnUKi-0000iJ-7i; Fri, 14 Apr 2023 21:04: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 1pnUKg-0000i3-PD for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2023 21:04:03 -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 1pnUKg-000395-HK for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2023 21:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pnUKg-0001oG-1M for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2023 21:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Apr 2023 01:04: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.16815206086855 (code B ref 62816); Sat, 15 Apr 2023 01:04:01 +0000 Original-Received: (at 62816) by debbugs.gnu.org; 15 Apr 2023 01:03:28 +0000 Original-Received: from localhost ([127.0.0.1]:47954 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pnUK8-0001mS-Ea for submit@debbugs.gnu.org; Fri, 14 Apr 2023 21:03:28 -0400 Original-Received: from new1-smtp.messagingengine.com ([66.111.4.221]:52215) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pnUK6-0001lv-Ex for 62816@debbugs.gnu.org; Fri, 14 Apr 2023 21:03:27 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 3ED005823B9; Fri, 14 Apr 2023 21:03:19 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 14 Apr 2023 21:03:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1681520599; x=1681524199; bh=gWKQvy+l7PcbO0A0zrhRVCmAo/pe2URSY2d UTuVLQIA=; b=NjyvMufhIer5v8HYWVnu6qDJ0rE/4MNDbGO9Npx6MCE8qVa2ZT9 nFO+AS1RWQMNQg53qja+5ipckVtTvsAPDir9BsazhofOzJYZJUvlm20DMgWOUieB YRxQqmp98ac9mZh0ieCL2X6bxoyNCSMzn9LaZ7Nc4KpxLburPA99Q3Z0NISglYIC I0Kvut2e9fxcvlCa/TK1UI5c4o2/4G+FlTxdogMANYGplMMklfm18ZGooE5ZWm+D EDfOe5uTSJmpCEjlxyXZXPCPkA6ivSGpKw/DgOAHFXDgJWrEbxFZcvHZFuq0JrWo XWWBLfMMltsBhzLz4h/Ux0yfPCLMLfcd0JA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1681520599; x=1681524199; bh=gWKQvy+l7PcbO0A0zrhRVCmAo/pe2URSY2d UTuVLQIA=; b=JnJVLWht1Cm7bsfK90p4KMra/QRcBl8W8dQc1qYUZGfPjFJZVy7 zAxk8/GjV2U8VyL+A2niHVLCEEV0CDum05qoCJYbnppajdaozk6JLI3qsiXcSTqs r/UIw0GDnuRv0L52u2Oqi/smaBM+kqtD+w1UsCoULs13cK572FButI03FjUCkUMK /xlJJty3xF6qRTH23U/aKJlWMty9z+aXIii6aIx2SrkXiCKD96gRG2PQZCSYvovp KTr/2KzXA99+h/YcptsPKCHYttg7L7HwN1acM0BWMwa8/414FzQYT2290sfXhG/D vL7CjltIx/+J9wr7TYdDNL7gxFr8KQ4I0aA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdeluddggeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffhvfevfhgjtgfgsehtkeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhephfeftdejleetffelhfffteefgfeggfejgfdtudeuvedttdetvdelffekvdeg udetnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 14 Apr 2023 21:03:17 -0400 (EDT) Content-Language: en-US In-Reply-To: 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:259990 Archived-At: On 14/04/2023 03:22, Dmitry Gutov wrote: >>>> Another option is just to temporarily disable eldoc during the duration >>>> of the Company completion session. >>> >>> Right. >>> >>> And yet another solution would be to detect that Eldoc will be used, >>> and try to plug into its documentation functions to display the meta >>> thingy alongside the other info. >>> >>> That's at least 3 potential solutions now. >> >> I think you should do the "bookkeeping" one, at least a very simple >> version.  Just record in your concept of a "company session" if there >> was ever a non-nil :company-docsig sent from anywhere that required >> echoing.  Until there is, never clear on nil :company-docsig. >> Eventually, if there is something to echo, tough luck: display it and >> proceed as currently, clearing always on nil, risking flickering. >> Suspect this should fix 95% of the cases, certainly Eglot usages. > > Yeah, that should be the most conservative solution. Maybe I'll start > with it. I've pushed a halfway-there solution which still seems to satisfy both main scenarios (exemplified by Elisp and Eglot), so that seems addressed.