From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: New Flymake rewrite in emacs-26 Date: Tue, 10 Oct 2017 13:20:33 -0400 Message-ID: References: <8760bwz5qf.fsf@gmail.com> <83infw1dkz.fsf@gnu.org> <87efqbb35x.fsf@gmail.com> <831smbqe70.fsf@gnu.org> <87tvz79h0s.fsf@gmail.com> <83wp43ov7s.fsf@gnu.org> <87bmlf9dh3.fsf@gmail.com> <83tvz7ot1o.fsf@gnu.org> <87y3oj7x60.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 1507656891 657 195.159.176.226 (10 Oct 2017 17:34:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 10 Oct 2017 17:34:51 +0000 (UTC) Cc: Lele Gaifax , Emacs developers , Mark Oteiza , Stefan Monnier , Eli Zaretskii , Leo Liu To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 10 19:34:44 2017 Return-path: Envelope-to: ged-emacs-devel@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 1e1yQT-00072B-1r for ged-emacs-devel@m.gmane.org; Tue, 10 Oct 2017 19:34:41 +0200 Original-Received: from localhost ([::1]:36289 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1yQY-00014g-PG for ged-emacs-devel@m.gmane.org; Tue, 10 Oct 2017 13:34:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1yCu-0006iG-7V for emacs-devel@gnu.org; Tue, 10 Oct 2017 13:20:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1yCt-0002X0-Dl for emacs-devel@gnu.org; Tue, 10 Oct 2017 13:20:40 -0400 Original-Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:48285) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e1yCs-0002Vd-0p; Tue, 10 Oct 2017 13:20:38 -0400 Original-Received: by mail-wm0-x22f.google.com with SMTP id i124so7109203wmf.3; Tue, 10 Oct 2017 10:20:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=bt2ZpchksL16H7Xvi1bXNC1EvCpY1rgy2RQCsRfyZLo=; b=ZXVahLjZGTDn+gi6ySRbD4ZyyK248mb2wxHww7GgCbQ7sLjC1bQz/RXbJIWjgxjuUE 8xesfXDHdXkjtzmfcIHe9zkiaTU602O9gMAF4EUO/aXi+rGUmWlLHWAAEDOWCIj+C9TP twU23qGpRiomW7VHpohZsEw9S5kQrkf/b4CUpTyRKoEcfy2r2VReXIeo02/mXNOHzx9b KJ/fKiJITGONDjBBHU7J+g7ECZX2esjuiLT5xAnyY1zSRw1P02RXqW+1tRwrpGZbpCYM g3qqOs8RwPOuyu/8knNyVWlnKdWb3yoiEj1n2S7b9CPRKfbtCj4RaFIi20TbJoA/jiBl FT/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=bt2ZpchksL16H7Xvi1bXNC1EvCpY1rgy2RQCsRfyZLo=; b=DS+ncfEmpC6vJRpBbscdQYZ4PjTouP4PtybRRE8oLdhAQmEdlNpfBgbOJzrkgDwqzU QxpFOyQ4dxJxYi5RovLkd2OhZMCeevc/oJYRaeZ+cafhaia2DPo9s/aJht6zVtFeiAdy 339sWao8ApmbQEw7GU/J5Ctwt5hC2lKwXwduCYV3ouLgv8ruPXdtaIjouK9n7FM1rYg1 csnVkIxIMQuXtioAB4OuX4G9GLoUQrRsMy0mXuFCqmQ7uSgDpnRNpCmatQsjGCuG0sZw tMUrbrQNElA+ecNrCQm7LIquo+GfhA9lubj9vMsX7VsY0wymznrAUURn6P3nmhtuikkm lwog== X-Gm-Message-State: AMCzsaVPDuFU/lPFxk4x5544+kAfxPFt3E9SKPsCgLBSfib8MbYxZoIc wKs9AeqbtvuumYdU0lp2RpmkEJkn2SHqX734m48= X-Google-Smtp-Source: AOwi7QA+58G1FSC8sPvdxLlTOmC6a93rcd0CKpgN3/ZWvJk9ODwze/gqEB+m/GK739jzxNyDRKnYbxVyGcohEO91xQY= X-Received: by 10.223.129.99 with SMTP id 90mr4983520wrm.243.1507656035733; Tue, 10 Oct 2017 10:20:35 -0700 (PDT) Original-Received: by 10.223.146.193 with HTTP; Tue, 10 Oct 2017 10:20:33 -0700 (PDT) In-Reply-To: <87y3oj7x60.fsf@gmail.com> X-Google-Sender-Auth: txcc0mGpZ-env6Tv01PzMrB8TZc X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::22f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:219351 Archived-At: On Tue, Oct 10, 2017 at 1:03 PM, Jo=C3=A3o T=C3=A1vora wrote: > Eli Zaretskii writes: > >> Most of the flags we use are for flagging dubious or erroneous code, >> they should not matter, I think. > > I think it=E2=80=99s useful to have Flymake synchronized with these flags= , so > that you are notified visually of these problems ahead of a "real" > compilation. FWIW this is what the Emacs Lisp backend already does for > Emacs Lisp sources. > >> What compiler flags must be set for Flycheck to work reasonably well >> with a program's sources? I guess the -I flags, but what else? > > For "reasonable" operation, it=E2=80=99s mostly the -I flags, and maybe s= ome > essential -D flags (In Emacs=E2=80=99s case -Demacs, I think). > >> (I have never used Flymake, so my questions are ones of a layman in I've also hardly ever used flymake, so this may be nonsense, but maybe you could run 'make --just-print foo.o' to get the exact shell commands for compiling foo.c. This would bypass any need to know details of compilation beyond figuring out the target name from the source.