From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#31921: 26.1.50; Add a convenient way to get flymake error at point Date: Mon, 25 Jun 2018 12:33:16 +0100 Message-ID: <87wounksn7.fsf@gmail.com> References: <877emsitex.fsf@gmail.com> <8736xenw7i.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1529926399 30439 195.159.176.226 (25 Jun 2018 11:33:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 25 Jun 2018 11:33:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 31921@debbugs.gnu.org, 31921-done@debbugs.gnu.org To: Carlos Pita Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 25 13:33:15 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fXPkB-0007ot-43 for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Jun 2018 13:33:15 +0200 Original-Received: from localhost ([::1]:45616 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fXPmI-0007Hr-FO for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Jun 2018 07:35:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fXPkz-0006Sz-OP for bug-gnu-emacs@gnu.org; Mon, 25 Jun 2018 07:34:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fXPkw-0003Jm-Ii for bug-gnu-emacs@gnu.org; Mon, 25 Jun 2018 07:34:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54675) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fXPkw-0003IF-D8 for bug-gnu-emacs@gnu.org; Mon, 25 Jun 2018 07:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fXPkw-0006Uk-7L for bug-gnu-emacs@gnu.org; Mon, 25 Jun 2018 07:34:02 -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: Mon, 25 Jun 2018 11:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31921 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31921-submit@debbugs.gnu.org id=B31921.152992640924920 (code B ref 31921); Mon, 25 Jun 2018 11:34:02 +0000 Original-Received: (at 31921) by debbugs.gnu.org; 25 Jun 2018 11:33:29 +0000 Original-Received: from localhost ([127.0.0.1]:34339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fXPkO-0006Tn-O5 for submit@debbugs.gnu.org; Mon, 25 Jun 2018 07:33:28 -0400 Original-Received: from mail-wm0-f45.google.com ([74.125.82.45]:33398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fXPkN-0006TU-6L; Mon, 25 Jun 2018 07:33:27 -0400 Original-Received: by mail-wm0-f45.google.com with SMTP id z6-v6so12229735wma.0; Mon, 25 Jun 2018 04:33:27 -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=buoaiY6pI4USMV68bdtJPOjMXJEAjdMINKgbf+1Cwfg=; b=Paq/LSgKzlyWblKGSuXgX/UohfgYfODcNpJBi2frUQQQWiS39L0GnSltGTowkswzPl hXt4ERnV/aGqU3YoY/1ZEGVL1e42zJYU1FjeIp/CTkCPJGi/oxC+jIlywcPa8Qk6Pytl M5torQ3sOf9Jjw5JJCWpRJnoy/OgS1kGzJJUbH8IUAGUOt9GWvFoLYrzE4EvUwtjbn54 XQF5G1ZdRA2rQaSBJuI9DcY+RzBZNYBy3opOau4ey5oxbRTkbQQQ6Q7CY+6w1J7Z2sH4 i+C6OR+ZusM59RXGkZpiNy7gWBfBq8sv135lqd378PSq078e3OLg1DKDLSIkFOsY4TcC be+A== 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=buoaiY6pI4USMV68bdtJPOjMXJEAjdMINKgbf+1Cwfg=; b=Bl6MG7oZmsSa6pNwUhCylixhB0VV/PmlT3xsDmLGFuw9xi9h83h/l4QFOfNqt6zile B8AFSPM+Ru9wdOBGBh73A/ASvvwADfb2aLGu/k1M+dikyt11i9reYs2EML/CKXWEEXZm 8Jv99tCY0X2puHQMlq1QPFC82H9pUf5Yx3EJ2UFCbn+hqaYKYZQPyrGU56bAkDTps+1m Rnw8tehm/SEqsw1H5ad3+t3nIOLIhn7GrbCIDthX6pHMSravElMWGsi21xddQSC96p8b jkC0HbcqQZkuDwDypVIuPXXoDRZJFbEsnMBe508e5ULXYNA2b4rtWm7Q880jfcXBe+hw kjPQ== X-Gm-Message-State: APt69E1yHqAtmAjssOFCpHzz/G0aQWcY6iWsLeaWPTUr5Za6eCc4k/Xo QDwl5bjvtpt6HMeQWuwMGsEmCj/6 X-Google-Smtp-Source: AAOMgpcLulpEeID18doxFo1kPtaTEVBzke+iSDKTNVsukYMEcM+q4aF8UINFOiZPajbnRz+8wNujZA== X-Received: by 2002:a1c:c604:: with SMTP id w4-v6mr668738wmf.135.1529926401290; Mon, 25 Jun 2018 04:33:21 -0700 (PDT) Original-Received: from lolita.yourcompany.com (188.139.62.94.rev.vodafone.pt. [94.62.139.188]) by smtp.gmail.com with ESMTPSA id 72-v6sm15410442wrb.22.2018.06.25.04.33.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 25 Jun 2018 04:33:20 -0700 (PDT) In-Reply-To: (Carlos Pita's message of "Sat, 23 Jun 2018 14:53:55 -0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:147807 Archived-At: Carlos Pita writes: >>> So feel free to close this, but please add something wrt this in the >>> docstring or the info manual. >> >> In that case, it's better not to close it. I've already read this >> complaint/request elsewhere. > > I don't know if `C-h .` was intended by design or is the result of > serendipity but it feels like the right solution to me Neither I think, it's a side effect of good design and following conventions. I pushed the docchange to master as 15f4cdd873. >> So, if others are reading this, what do you think of making eldoc >> display the diagnostic at point instead of (along with?) whatever it was >> already displaying in the echo area? > > Many major modes already use eldoc to show information about the > symbol at point and the echo area is rather disputed by eldoc, > company, etc. I would avoid automatically messaging the error at point > to prevent excessive message switching. But it could be a > customization toggle. Yeah, I'd go with Dmitry's suggestion in https://github.com/joaotavora/eglot/issues/8#issuecomment-399698728 where he demonstrates that you can customize this by using: (custom-set-variables '(help-at-pt-timer-delay 0.1) '(help-at-pt-display-when-idle '(flymake-diagnostic))) Though, in my testing, this always defers to eldoc (which is probably the intended behavior). Jo=C3=A3o