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#50244: 28.0.50; Support project-wide diagnostics reports in flymake.el Date: Tue, 14 Sep 2021 02:35:51 +0300 Message-ID: References: <87bl5hm5qj.fsf@gmail.com> <87y283536t.fsf@gmail.com> <41cd4854-d162-bc6c-900e-96a4245e2c59@yandex.ru> <7c6bb19d-24fa-0875-a25e-8b0739901e0f@yandex.ru> <874kao42pr.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="12378"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 Cc: 50244@debbugs.gnu.org, Philipp Stephani , Theodor Thornhill 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 Tue Sep 14 01:37:12 2021 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 1mPvVe-00036w-Pm for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 Sep 2021 01:37:10 +0200 Original-Received: from localhost ([::1]:41228 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mPvVd-0004Ty-45 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Sep 2021 19:37:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48846) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPvVW-0004Tq-Jc for bug-gnu-emacs@gnu.org; Mon, 13 Sep 2021 19:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35522) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mPvVW-0007lz-9F for bug-gnu-emacs@gnu.org; Mon, 13 Sep 2021 19:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mPvVV-00057j-UP for bug-gnu-emacs@gnu.org; Mon, 13 Sep 2021 19:37: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: Mon, 13 Sep 2021 23:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50244 X-GNU-PR-Package: emacs Original-Received: via spool by 50244-submit@debbugs.gnu.org id=B50244.163157616519631 (code B ref 50244); Mon, 13 Sep 2021 23:37:01 +0000 Original-Received: (at 50244) by debbugs.gnu.org; 13 Sep 2021 23:36:05 +0000 Original-Received: from localhost ([127.0.0.1]:47068 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mPvUb-00056Y-Cj for submit@debbugs.gnu.org; Mon, 13 Sep 2021 19:36:05 -0400 Original-Received: from mail-wr1-f42.google.com ([209.85.221.42]:43737) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mPvUW-000560-G1 for 50244@debbugs.gnu.org; Mon, 13 Sep 2021 19:36:04 -0400 Original-Received: by mail-wr1-f42.google.com with SMTP id b6so17124267wrh.10 for <50244@debbugs.gnu.org>; Mon, 13 Sep 2021 16:36:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=zy5/phSSSOn3LXS6MRQldBiATl097BVbBDcyLbOeNes=; b=CG3CyFNDXw9EuzOS+Fi136fF/6eM8/dWK50K9mT+zT1s+KGXZQ+Gb29Wbm9gxkZj9x mqzxppCTIeRXpldmhn5UfII1vAZbXzFOtiVBo4lx5jyHtsSbts87d09bkHFulnY2whDr mTS9TNpDsq2lEdVw5hl/jjp0YurdLuvF4I1ot9qAyoHh26DNhKPjO+V4nEykDSluztvP eV/y1FAQQFPASjomF7/tFcpEstgP6sIyKt5SMJfO+ns/Kh0RNj9Rbs0RNFgqKngldlXB jHDbIcHfUycJJLxnVenWx7TSB3ppDp5ERm+YdTsNtVO+yRa3Eh1eQ5pqxGjrfaxIDqGX +qwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=zy5/phSSSOn3LXS6MRQldBiATl097BVbBDcyLbOeNes=; b=q4aLKFsxahtuEKDaI6lTKZ53RY4qi5zsO4KjLgBoI9X3e84Bnq+6JmBSwFjg9U31Tb zz/kLGvYaOAv/SGHULirBSACM9I/GLoVnVMZ/MpDCG0PSJMEnkN/DTk4XU/GWfIpRvtv aIlK3j+KkM4lGWXNLCAU/eRIM78pxGjfp7oPog21fn4H7aty944j9N3Y0MzHcv2qnJ6t VaCi/6g6ot+416WXLVsiB3ZciqIO9xW7bvM/DGtpsLwnzO6xdjT9qs5ag8f/hktKeNea Ivr6P4bxktuc2KI7Daz3RPcNOvNSsIxMNeLFCQ60knpeS3gdNDPSCQDsfFDIPDXMRdWm HIbA== X-Gm-Message-State: AOAM531as8Uq1IbedemVVQocA2L16C6Fjr2TnISNWOf3xMzJIIQWvY0E 7bGqcpvk0IPGtgbv0483ABc= X-Google-Smtp-Source: ABdhPJzV4kVU5u+T6xUkBmcs1ZsV80e2lbf8/3xRbxHbb4QKf+7fb8RN9S/y4G2zMzEMzNZw8SN1Sg== X-Received: by 2002:a05:6000:1379:: with SMTP id q25mr15154100wrz.280.1631576154459; Mon, 13 Sep 2021 16:35:54 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id w9sm7830715wmc.19.2021.09.13.16.35.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 13 Sep 2021 16:35:54 -0700 (PDT) In-Reply-To: <874kao42pr.fsf@gmail.com> Content-Language: en-US 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" Xref: news.gmane.io gmane.emacs.bugs:214271 Archived-At: On 13.09.2021 23:53, João Távora wrote: >> Anyway, I asked about this because because the use of global variable >> (flymake-list-only-diagnostics) seems like it would make supporting >> multiple projects at the same time more difficult. > > I can't guess what you are hinting at, sorry. You can call M-x > flymake-show-project-diagnostics in two or more projects, of course, and > you'll get separate listings. I don't know if that counts as > "supporting multiple projects at the same time". If a backend reports diagnostics through flymake-list-only-diagnostics, woudln't one of those values be overridden when two backends offer reports? > Again, I don't understand your suggestion, but if you can propose it in > the form of code it would be much better, since there would be no > ambiguity. A word of caution though: making these things work correctly > in tandem with domestic diagnostics, new file visits and buffer killings > was relatively hard. I tried many different approaches and settled on > these two ("foreign" and "list-only"). Of course if you can clearly > describe a use case where they are unsuitable, a third style may be > invented. But I would first exhaust the possibilities in these two. I was thinking of a way to get by with only two types: "domestic" and "foreign", without adding a third one. No code, sorry. > In the meantime, please say if version-bumping project.el is OK. That > is the only thing holding up the merge. Already replied to that on 13.09.2021, 23:11: yes, sure, go ahead.