Received: (at 77480) by debbugs.gnu.org; 4 Apr 2025 06:47:40 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 04 02:47:40 2025 Received: from localhost ([127.0.0.1]:36843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u0aq4-0006UG-CN for submit <at> debbugs.gnu.org; Fri, 04 Apr 2025 02:47:40 -0400 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]:45489) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <n.oje.bar@HIDDEN>) id 1u0apy-0006Tx-LJ for 77480 <at> debbugs.gnu.org; Fri, 04 Apr 2025 02:47:38 -0400 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-ac2bb7ca40bso304323666b.3 for <77480 <at> debbugs.gnu.org>; Thu, 03 Apr 2025 23:47:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1743749248; x=1744354048; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Zjrw1SSePpwBosS3fbv5hvPPHn3GeG9b370XyMdVgoM=; b=iw6bA9vHGnOJU3Y60wmecc6dQWCXx1R8m6gF093oKV0OyspncBa8u6+macEemspY1M gJbl48xcFmpCPt6txFb1P3dVqY7OaXWCgW7KqmS7KhltmCthycfki+HPDqeXV9wHH8z6 xwO6OP4WE6sqjPHpfRvtTu9uSgcZpt8/1Ay5XJFkC89xfS7cKSoAJA9yI1SY0rS0Qv4B bMLnDfHE1v6m3vmacw0B3blVFw334kerCB6p84IuI8oRnad/pI2jHxEDFe5E5LTOtrU3 MLd7kuGUlxbskhWgpkk6e+6VELwWbV3p6ZcEokRWE6k5y4iqyn8YJRDR1w6ldnrVJxoI bKaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743749248; x=1744354048; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Zjrw1SSePpwBosS3fbv5hvPPHn3GeG9b370XyMdVgoM=; b=f2EMw7vvS62+JY/oMy6AkgPm8jHjg70jbGnvcWwSiY4DxAgqRPBvm/da3s/p3eMa5k 6QqouFO5MwCG0Rs7VRGJ0KzcHJVgHvC6NChLRp5l7QOwJv+svExUHs2i9VEbUO/SfAFH GyTbanjFqBkOca7DhJKuuGGHwg6+w1/bANc/y3nzHXvFGXszj02j2Oz5jPfJpEjbDora fjItyhfWDylCAkUzJoZyzw/OB7cahMvaN+FnAdOgxFSH4tcInhGZno9OTuUC+EbAHn5q CJUBHuOdA4LNl4EVLnqdoBZSItVNsEicmKCgvE6MhvELoRJFDsNuwrLcpvGhMpDyVbvj YJpg== X-Gm-Message-State: AOJu0Yx/pJKRe7xQuILQL4l1DHQ0mb+NeQLjAB5zkxr0Lb0ZgokPT50V +Xh/CjNjl6c4aATAcYnykO7fq52cPgiw67OEDygTHdhy7/JdSTCZSL8rCII4v8SGUWL/ainWr29 2ZwtxxYKViZ1pIn4FIaS6fBkr62Y= X-Gm-Gg: ASbGncvNifHnOpqADO87jvhW2ST6WixB9eygyqUGCEYEgjZCnl7s5VJ8M3olU68pu+z XHTVAIzn1o7MVwP/u0GxHOhiNhpZZfzYrwtCHj8MlDuLZ91Vvc8CjNAOYtv6Y18Cf+nqtGUPwLK lLpZA9iBR6SpCeqT+qXe2qpu9j1J1u94G6BpSzvwdmddxR9Ml5N2kM0KaEmx4= X-Google-Smtp-Source: AGHT+IGRC2mGjBnJ2+XiXTTInk9NQbFU+5TYat9jVc5e30hzxqHveeErstFTIwvo3xkNydk1C/blSsCXVwOUk4Gauxo= X-Received: by 2002:a17:907:3d8f:b0:abf:7a26:c47b with SMTP id a640c23a62f3a-ac7d1c379fdmr203945066b.39.1743749248247; Thu, 03 Apr 2025 23:47:28 -0700 (PDT) MIME-Version: 1.0 References: <87plhtellc.fsf@HIDDEN> <87ecy9odgx.fsf@HIDDEN> In-Reply-To: <87ecy9odgx.fsf@HIDDEN> From: =?UTF-8?Q?Nicol=C3=A1s_Ojeda_B=C3=A4r?= <n.oje.bar@HIDDEN> Date: Fri, 4 Apr 2025 08:47:02 +0200 X-Gm-Features: ATxdqUEKql6OGUMkuou3VIO0uxGzmWNGF_pXAQBd2ywU19Ata9MDwaW4GInyriI Message-ID: <CAPunWhC+m3c+9egftoXcbzq6YUrVVFbYohLro0D7-mbzKC_xsg@HIDDEN> Subject: Re: bug#77480: 31.0.50; Flymake: impossible to show multiline diagnostics in echo area To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77480 Cc: 77480 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Thu, Apr 3, 2025 at 10:28=E2=80=AFAM Jo=C3=A3o T=C3=A1vora <joaotavora@g= mail.com> wrote: > First, Flymake has two ways of showing > diagnostic in the echo area: > > 1 flymake-mode insinuates itself onto ElDoc > eldoc-documentation-functions, which you have correctly identified, > so you get at-point echo area updates as you navigate code. > > 2. interactive, on-demand Flymake commands such as > flymake-goto-next-error > > In approach number 1, Flymake is usually sharing a hotly contested > ElDoc-managed resource with many other outlets (since you use Eglot you > know what I'm talking about). I chose the "one line per backend" > default rule from years of dealing with many user reports about this > topic, as a means of keeping the maximum amount of users content. OK, thanks for the context. > In approach number 2, as far as I can see, you do suffer this > limitation, and the line is truncated. But this behaviour has been > around since the inception of modern flymake as I rewrote it circa 2017. Indeed, I had 2. in mind when I wrote my previous email. > Changing approach number 2 to honour the > `eldoc-echo-area-use-multiline-p` is very problematic for two reasons > (a): it's odd to use a variable not really connected to the mechanism it > uses to access that space, since it calls `message`directly. (b) it > would break a lot of workflows everywhere. OK, that's fair. > There are a good number of issues in the Eglot tracker showing how to > do this and how everyone has a slightly different view on the topic. Thanks for the pointer, I will take a look. I also tried Flycheck which by default does not truncate the diagnostics shown in the echo area. > So there is, in my view, no need for changes to ElDoc or Flymake in this > regard. OK, that's fair. > > Looking at the Git history, this behaviour seems to have changed or > > introduced recently, in commit 560950468588117b264a9f916fb578e0eb2a124a= . > > By the way, this was 2 years ago, hardly "recently". True! > Jo=C3=A3o Cheers, Nicolas
bug-gnu-emacs@HIDDEN
:bug#77480
; Package emacs
.
Full text available.Received: (at 77480) by debbugs.gnu.org; 3 Apr 2025 08:28:42 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 03 04:28:42 2025 Received: from localhost ([127.0.0.1]:60965 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u0FwH-0007CE-PV for submit <at> debbugs.gnu.org; Thu, 03 Apr 2025 04:28:42 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:47113) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>) id 1u0FwE-0007By-Qn for 77480 <at> debbugs.gnu.org; Thu, 03 Apr 2025 04:28:39 -0400 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-39149bccb69so541483f8f.2 for <77480 <at> debbugs.gnu.org>; Thu, 03 Apr 2025 01:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1743668912; x=1744273712; darn=debbugs.gnu.org; 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=9EC4msuIKE+WWUiyGLjaBuCRdIX8wqlzcsUTRHkzDt0=; b=No+5UdiohszZeZjLV2JehZI7loG9c/o5iOCmA7CXLFnXjRdXOaM7/nmthYHbk34ovS 2T9FkJKS0GkzAyVREcTx6y8O14tKEWcQCuT3tEt+TA36Ahd9hQBB3xJe2T956Vd9coIm 5r5Ef+5+LPMnIQyRDch+YcFna2P29COd5YIDDNT5knQn1szL3ETmCaKVSupyAYtaVJje TCkNpkktJi2jqk3yYrLqZFUQWOAZT+qSX/9yfm95GinwzO6D4srkzpSnL566ihpZFtyJ B7ONyRFxPcmIZWo3ZrtMrc7S2ttapZ+Vf8g+OC3zSuG/oHMr8AlgOw+NzhcTe04elh9E Llsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743668912; x=1744273712; 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=9EC4msuIKE+WWUiyGLjaBuCRdIX8wqlzcsUTRHkzDt0=; b=KNRzGlWNKkGgVLrefX/YYt6CI4KiVHj9kSw7sX1GFFz7IbCwpJzZbtxfrt2cAVfnJX brsS+pO67xjVIX9XcfdI9l6odLf0FP4KAL5rf+asJhNjweBsk7gQViB6Ch11gS58z7pd fNRId88A+jscM6Jp/8qWu8EXKwlbW+pvsHJeVvXrZFS55T3qaI0VczsQTPZsJqXCG8Mx HD+QhC0TOotyPoUpkbPoI76zubGPlMUbfciMcbhXFak5FQ/NaUvLvSFLO4sxVIuxDhRh molNv1HSeCXGOfD/jMyFJu8VDLo6MpnxbXUyAIWd4ZEpYrKr8MFnbiFSprXHviOFNpu5 0+7w== X-Gm-Message-State: AOJu0YxdboUZRZlgodj+4257XPcOiYbr1XAnxV0qCnQaQ15KM69h1m3q euRpAOGfvSb+x6l+AKvuD22a93VaPHPLvKOdpQJoUZzAxfpPBRG8BV/QDQ== X-Gm-Gg: ASbGnctb0wchEG+RhVrVGBSGHZAtF/uTDUs3DqXMjzQm3qyLUMB6JpQ/Sh9uMt/4d+o GUrcYMRVbtkdrQ3rUcdTB9BPhN0b13BcOfNMyTZ4UT5N8SPc3mNG7hiGRLYaidR1eZwL0P1hQGw hNk92rHks6jyqMnoGD2UQRMiJ35KDG6+vK/E1zFHGRYPJwkn+aiRmZ9S1xrre3axqXtZ2nC8mSp 2Ae3nypNWquVFpqYwQJzQB6+ifuejQVgR6lPtsp14z5TtR6m8dntvHUPM+ylsJ6NFJDfb01kdue +FetcgBCRVgLTMfNWEeUPIx4bE4w0PnTeQ== X-Google-Smtp-Source: AGHT+IHiS6Cx1jADAFmNS+dAylwTGYp2efFsAnXPNO8PowAtxe3abUDttiAUWngjgUZ5IyCzlMTzSQ== X-Received: by 2002:a05:6000:1887:b0:390:f9d0:5df with SMTP id ffacd0b85a97d-39c2980558emr4489801f8f.52.1743668911963; Thu, 03 Apr 2025 01:28:31 -0700 (PDT) Received: from krug ([87.196.73.56]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43ec16a3aefsm14803365e9.21.2025.04.03.01.28.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Apr 2025 01:28:30 -0700 (PDT) From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN> To: =?utf-8?Q?Nicol=C3=A1s?= Ojeda =?utf-8?Q?B=C3=A4r?= <n.oje.bar@HIDDEN> Subject: Re: bug#77480: 31.0.50; Flymake: impossible to show multiline diagnostics in echo area In-Reply-To: <87plhtellc.fsf@HIDDEN> References: <87plhtellc.fsf@HIDDEN> Date: Thu, 03 Apr 2025 09:29:02 +0100 Message-ID: <87ecy9odgx.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77480 Cc: 77480 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Nicol=C3=A1s Ojeda B=C3=A4r <n.oje.bar@HIDDEN> writes: > Dear Flymake maintainers (Cc: Jo=C3=A3o T=C3=A1vora), > > While using Eglot and its default Flymake integration, it seems > impossible to make Flymake display multi-line diagnostics in the echo > area: diagnostic messages are systematically truncated and only their > first line is shown. Certainly not impossible. First, Flymake has two ways of showing diagnostic in the echo area: 1 flymake-mode insinuates itself onto ElDoc eldoc-documentation-functions, which you have correctly identified, so you get at-point echo area updates as you navigate code. 2. interactive, on-demand Flymake commands such as flymake-goto-next-error=20 In approach number 1, Flymake is usually sharing a hotly contested ElDoc-managed resource with many other outlets (since you use Eglot you know what I'm talking about). I chose the "one line per backend" default rule from years of dealing with many user reports about this topic, as a means of keeping the maximum amount of users content. In approach number 2, as far as I can see, you do suffer this limitation, and the line is truncated. But this behaviour has been around since the inception of modern flymake as I rewrote it circa 2017. Changing approach number 2 to honour the `eldoc-echo-area-use-multiline-p` is very problematic for two reasons (a): it's odd to use a variable not really connected to the mechanism it uses to access that space, since it calls `message`directly. (b) it would break a lot of workflows everywhere. Perhaps I don't have to tell you that C++ diagnostics can usually span many hundred lines. So let's get to approach number 1, which is what I suppose you're using anyway. I call attention to the facts: * that C-h . always popups the *eldoc* buffer in a separate window, where you can usually see all diagnostics in full in a separate window. There are even extensions that keep this window around in some "child-frame" (search for "eldoc-box") * that you can customize approach number 1. See examples in the most up-to-date Eglot manual (linked in the Eglot home page). =20=20 https://joaotavora.github.io/eglot/#More-Customization-1 Basically, pay attention to the docstrings of eldoc-display-functions and eldoc-documentation-functions, then craft your own function to work just the way you want it. There are a good number of issues in the Eglot tracker showing how to do this and how everyone has a slightly different view on the topic. So there is, in my view, no need for changes to ElDoc or Flymake in this regard. > Looking at the Git history, this behaviour seems to have changed or > introduced recently, in commit 560950468588117b264a9f916fb578e0eb2a124a. By the way, this was 2 years ago, hardly "recently". Jo=C3=A3o
bug-gnu-emacs@HIDDEN
:bug#77480
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 3 Apr 2025 07:44:32 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 03 03:44:32 2025 Received: from localhost ([127.0.0.1]:60787 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u0FFX-0007R4-S9 for submit <at> debbugs.gnu.org; Thu, 03 Apr 2025 03:44:32 -0400 Received: from lists.gnu.org ([2001:470:142::17]:58544) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <n.oje.bar@HIDDEN>) id 1u0FFU-0007Qo-QL for submit <at> debbugs.gnu.org; Thu, 03 Apr 2025 03:44:29 -0400 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 <n.oje.bar@HIDDEN>) id 1u0FFN-0005Ud-3e for bug-gnu-emacs@HIDDEN; Thu, 03 Apr 2025 03:44:21 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <n.oje.bar@HIDDEN>) id 1u0FFL-0004MK-3H for bug-gnu-emacs@HIDDEN; Thu, 03 Apr 2025 03:44:20 -0400 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-43d07ca6a80so2541255e9.1 for <bug-gnu-emacs@HIDDEN>; Thu, 03 Apr 2025 00:44:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1743666255; x=1744271055; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=7AdqCcCIV25PGxYngbNb3xtH5Bgnljx/Uok/xS8EVZg=; b=kh7KNeoMGvrhiainjwwQceSBZHX9axsAuvPuklcvLxeq866/cy8OYi/EMBlVnwPYvH cz0yQbhIt3rieM5VwaO1Sv4HWhELPmzStGmnHclOVYPXKgUYrxnU//yABw+dGK9unTkc 5966kD/QNQExb98YzzOtgQDY+QygLj58eh7U3JJyl+EFVaTHUXA9fjOwIWNxe2zot4Am xTdN4KKWFZSDxd0g+o4D//G2ZvQESW+hwwj2gStGsrB/DS+IWMIzLLf4fiJIiglIpj/A 0y70tRzrCI2AyubyHEtGZioKa1B3hRODcyYGOeYX8TQh1yNS3BP+nHs5J+IplZAy3zdl Zg1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743666255; x=1744271055; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7AdqCcCIV25PGxYngbNb3xtH5Bgnljx/Uok/xS8EVZg=; b=LHf4teYB9BjV7aG2zJ4fSuy7tM7MSQwqu1b1PB6dEWxDwa8+3KacdPiMGK5IvjrOeS wIg1uBP/Rna9HMJ3NVo4ucH/f2RZ8gzcBnNjSwkB4zwo2XoY0cbaCdRg7jHt1IPemKAt 722KMhlNpv9TMH8JIwk3IuDYlpvEjiVSTV4qHMMgscJEgYSsxJP/FE8Ln65b+/wilmyv 1I2B0Pw4mnAfGjJYvsiWWZPcUtblgBilTfN7qWMQEeNzDDaWDi7Sfqx/AQxm6Mne99xE zvuBFEA+oe8ts4NFuukezSA4NnJAo44RyOyXtTOoIb07bgGcB39b1v91fR7kcpysZ8Yn YXqA== X-Gm-Message-State: AOJu0YxpwIWiBoM9ddfNt3PvWkvhcwLVN/BIjphsQvDMAkReAhpGCpJP ckpSbgUBUWcA/cY2MUPK8W53pIv3DAJ4ePYd3iimBV2xixkeEh/bRo8LDO/h X-Gm-Gg: ASbGncvH1cnKJlpOyNaTMkGKyk6GH3pK9taRYPuT/bCPP8hA5FZqiDnx4l5OX1aqY+r 56I1zWnXDp6GfzbzLgZsQCv+bp4kX3xEeI4BY1AteMI605OZD0atzFgkWMd/d4+wm3DxrhwClqM KKwqNlHBmyxd0fBSvODC5LnKqu/8JgZvG69bnXiWpHEGec6SiY3MU+sguL74G8JatjzpBsNiNtb qWyfm7VUaEh/yHnij1tPR+oakB4sSOqG+VQNFMNnPF2ica+16R+xWExXPFji23OUjBh87VNVtLM q+ymPZHetMU/OL3OO76d9juxz2CEYtZA7AkDO1RZRzhuDzCytTV3AUavREIKppge/9ueow== X-Google-Smtp-Source: AGHT+IGcPS67lXZWz16qPqikCCyYFSXV8dSGQhVDGTW6ru2lH8pzPe60En4kgWkuYFYK5K5xT/588w== X-Received: by 2002:a05:600c:4ec7:b0:43d:cc9:b0a3 with SMTP id 5b1f17b1804b1-43ec14d803dmr13052215e9.22.1743666254703; Thu, 03 Apr 2025 00:44:14 -0700 (PDT) Received: from LEXIFI-L6 (89.91.65.81.rev.sfr.net. [81.65.91.89]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43ec366b571sm10184565e9.40.2025.04.03.00.44.14 for <bug-gnu-emacs@HIDDEN> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Apr 2025 00:44:14 -0700 (PDT) From: =?utf-8?Q?Nicol=C3=A1s_Ojeda_B=C3=A4r?= <n.oje.bar@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 31.0.50; Flymake: impossible to show multiline diagnostics in echo area X-Debbugs-Cc: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN> Date: Thu, 03 Apr 2025 09:43:43 +0200 Message-ID: <87plhtellc.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=n.oje.bar@HIDDEN; helo=mail-wm1-x330.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.0 (/) Dear Flymake maintainers (Cc: Jo=C3=A3o T=C3=A1vora), While using Eglot and its default Flymake integration, it seems impossible to make Flymake display multi-line diagnostics in the echo area: diagnostic messages are systematically truncated and only their first line is shown. While this may work well with certain language and diagnostic styles (eg Lisp), it is wholly inadecuate for other types of languages where diagnostics are routinely multiline and the first line offers no useful information (because it is only part of sentence). This is the case of OCaml, which I am using. Furthermore, Flymake uses Eldoc to render diagnostics in the echo area, and there is a variable eldoc-echo-area-use-multiline-p that looks like it could be used to control this behaviour, but unfortunately Flymake does not honour it. Looking at the Git history, this behaviour seems to have changed or introduced recently, in commit 560950468588117b264a9f916fb578e0eb2a124a. Some possible approaches for improvement: - Do not have Flymake truncate the message and instead delegate to Eldoc (supposedly, via the eldoc-echo-area-use-multiline-p variable, but I have not been able to test this variable so am not 100% sure of what its expected semantics are). - Honour the variable eldoc-echo-area-use-multiline-p in the Flymake code (this seems strictly worse than the previous point as it would entail some code duplication). - Add a variable to Flymake to specify whether to truncate or not diagnostics shown in the echo area. This could be useful if we want a separate mechanism than Eldoc's to control how diagnostics are shown in the echo area. I am happy to prepare a patch if we can agree on a way forward. Thank you! Cheers, Nicolas
Nicolás Ojeda Bär <n.oje.bar@HIDDEN>
:joaotavora@HIDDEN, bug-gnu-emacs@HIDDEN
.
Full text available.joaotavora@HIDDEN, bug-gnu-emacs@HIDDEN
:bug#77480
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.