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#62029: 29.0.60; Allow users to customize eldoc buffer separator Date: Thu, 13 Apr 2023 03:20:19 +0300 Message-ID: <6c64f601-0c28-2993-e55a-042419e1623e@gutov.dev> References: <0C40D168-54D5-47E9-8BD8-77CFCD70B895@gmail.com> <87355vdufe.fsf@gmail.com> <87h6uacadx.fsf@gmail.com> <87h6u2y7uj.fsf@gmail.com> <871qkqmzit.fsf@gmail.com> <61fd5d66-ca0b-f67d-df70-7906c32596de@gutov.dev> <87v8i1jr5v.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="4222"; 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: 62029@debbugs.gnu.org, Yuan Fu 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 Apr 13 02:21:17 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 1pmkiC-0000u5-NA for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 13 Apr 2023 02:21:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmki2-00008V-Ut; Wed, 12 Apr 2023 20:21:06 -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 1pmkhy-00008N-GJ for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 20:21: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 1pmkhy-0000QE-6B for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 20:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pmkhx-0006VV-KL for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 20:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Apr 2023 00:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62029 X-GNU-PR-Package: emacs Original-Received: via spool by 62029-submit@debbugs.gnu.org id=B62029.168134523224968 (code B ref 62029); Thu, 13 Apr 2023 00:21:01 +0000 Original-Received: (at 62029) by debbugs.gnu.org; 13 Apr 2023 00:20:32 +0000 Original-Received: from localhost ([127.0.0.1]:42107 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmkhU-0006Ud-4E for submit@debbugs.gnu.org; Wed, 12 Apr 2023 20:20:32 -0400 Original-Received: from wnew4-smtp.messagingengine.com ([64.147.123.18]:38485) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmkhR-0006UM-Hv for 62029@debbugs.gnu.org; Wed, 12 Apr 2023 20:20:30 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailnew.west.internal (Postfix) with ESMTP id 69D832B06949; Wed, 12 Apr 2023 20:20:23 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 12 Apr 2023 20:20:23 -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= 1681345223; x=1681348823; bh=3P6mL+kqxH7F9vEF5p/6renfpcKBm6VsZs3 zASq9eLY=; b=PuBVYxLdRjX3WnoBlFr4PS/H3x4ZSFJ88/VwOUHgMxUMC4wd1TO cJnkZy7tQVDl1CfEXFd/yJrKf9QFe7sB4W2A7XO4VMOAQdjPDJCG2AKdgrnrl6A7 cFfb9isYEEcN+U3Ze+rBzc1F/YpZe+ym8vV01xVRGvGdJEXiqnjJQKKDWN3jLFxZ H8+YFUH587wLij1Yk2W9YR9c2Cy0m2IM8tSmK7Wu/jT1naVHyir6PnZkxNo3GnYA e4B3ZBWDp+bB0NNqO8QRUQyISrQ7iSZZHZvUc4J6B0ngEWEjR/bUHvk8sxyuJlSD g8lqLYuua1YuyxOqYwcyD+uC5KxxblPyudA== 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= 1681345223; x=1681348823; bh=3P6mL+kqxH7F9vEF5p/6renfpcKBm6VsZs3 zASq9eLY=; b=eQ1Ep8NHDx0EtAQ1icWeSLkGx8YE75m8BYfTCNPssKXPSjd4P1L Jbk4ddSq1ReCoGR1zAhUw+RqcxYnFzn+H7LtlRsF8P9auN5S2p36saXNl1Lt4myR 15TLQugQy6tYLc4eZKLlHyAOumAnujLB/YKmNicdu2suOa6GSAH2YYjdNFvUx4aR dOeSB9MKF4xm2j5PTSOn1XAmkxagPiAvX+IuFls9OX1D5MfbCxoNqbq+udyPH83D 8GRSb5lU+Uav4l9tlryIZ7ejRlzvQzcxTDOAIFxxlonlXUzIfVCaKIqwwjQjCclJ glCFGc1bFDvL/ldPQ+NGrmWgLj0G1oj39lw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdekjedgfeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhephfeiueegvdevieeujeelgfdvgefhiedvudegkeelgfelieefkeeiteefveej jedunecuffhomhgrihhnpegvlhdrughonecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 12 Apr 2023 20:20:21 -0400 (EDT) Content-Language: en-US In-Reply-To: <87v8i1jr5v.fsf@gmail.com> 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:259822 Archived-At: On 12/04/2023 14:06, João Távora wrote: >>> elisp-mode.el. Do you have something to say about that? Did you try >>> the patch I showed Yuan? >> I have applied it. What should I be looking at? > Right. That's a good sign it itself. Here, have some more patch: > > (setq-default eldoc-documentation-strategy 'eldoc-documentation-compose) > (add-hook 'emacs-lisp-mode-hook > (lambda () (setq-local eldoc-echo-area-use-multiline-p 1))) > > Then go on with elisp your life and maybe peek into M-x eldoc-doc-buffer > once in a while. What is the reason to have a special value for Elisp again? One obvious downside is that if the user customizes it to some different value (e.g. 2, limiting the height of the window below), it won't be honored by Elisp without some extra work on the part of the user. So if we want to do that, we'd need some strong argument for why Elisp is different from everyone else. And the thing with window jumping/blinking seems common enough across the modes. It's easiest to reproduce when just using Eglot with Company (for some reason or other, the blinking seems absent without the latter; but I only tested one simple scenario in one configuration). But in Elisp -- even if I just move the cursor with arrows or C-f/C-b, 1 times out of 2 the echo are window will blink. It's trivially reproduced even with 'emacs -Q': just add somewhere inside an Elisp buffer: (remove-hook asd) when flymake-mode is enabled and eldoc-documentation-strategy is 'eldoc-documentation-compose, and eldoc-echo-area-use-multiline-p is not 1, and move around 'asd' with C-f and C-b. Is that bug Elisp-specific? That would seem odd.