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 20:59:42 -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> <87a80y8s3s.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 1507683606 17732 195.159.176.226 (11 Oct 2017 01:00:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 11 Oct 2017 01:00:06 +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 Wed Oct 11 02:59:57 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 1e25NH-0002hM-KB for ged-emacs-devel@m.gmane.org; Wed, 11 Oct 2017 02:59:51 +0200 Original-Received: from localhost ([::1]:38036 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e25NO-000418-Rz for ged-emacs-devel@m.gmane.org; Tue, 10 Oct 2017 20:59:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e25NC-000413-0e for emacs-devel@gnu.org; Tue, 10 Oct 2017 20:59:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e25NB-0002bm-B1 for emacs-devel@gnu.org; Tue, 10 Oct 2017 20:59:46 -0400 Original-Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:45868) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e25N9-0002b2-Rc; Tue, 10 Oct 2017 20:59:44 -0400 Original-Received: by mail-wm0-x235.google.com with SMTP id q124so1480978wmb.0; Tue, 10 Oct 2017 17:59:43 -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=kLg7H5X1eUkSOBfrFtxwgKXHJWutoKlOnBeZLoFATls=; b=Pf5sa/+jyFSKqPa0j9coEade9eEKJZ5Yi+SGVzeWZWFu4v5/U0t/o+wx8gQKmSxrj3 MmhJA+iRAk8gpIyiuMlLEL1pRNwVgVY8RhJQjhPl1HaV8f5DtyW2CozeZ2nB3V2/8hsS dJRxQ6L4OZN8y4VBAV4/boQtF5FdwavBNQY7GOIAsHMRwnatEaDCB1jCPMu7HveetNJK 8gKo6FYgudsvNoTEeZoEKnkdGmXm3Larp4WdKgJNGKEk4eWP0JVF8JqMtmlgMSNEriW3 fmJRsOLQKklwIYvObIiBChQfzZqDESGNiitxXUa6nmdligd0Yi5dXhaS4Sk3ToRFixbN Pl5w== 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=kLg7H5X1eUkSOBfrFtxwgKXHJWutoKlOnBeZLoFATls=; b=mPPTeuWm5q/wDcXwc6R+vlOJCZHQiYycHefWxcFL477tH7NWfq0SQmjM3cRWJRlreN jAj1S5xu1o2h12i071NFD3j27WkVBD9y1kLhNyn75ISi3TwHKcVXEtxqGc+Ni4JWZnO0 7hTrXuC8CPuwaP2zf/0+H33Vxu3wbhTMb+4J1Zl3U2+glIVKwr4/S80KNhRul2VcAxro EoY6AQ/p7MD2aq1pD7xeHgHLPjFG5iWkIpoUtsegeK3DWoCErKC2x3cXHv2vo7CTUZk+ IwZnnzAzn6FbypcPV9tiuYEqI2Y+CNQVsqj6eD8V4/8/3SFJWLY9zKUcU6oVITAsY6b7 n3Dg== X-Gm-Message-State: AMCzsaXCXxjq6mVbIXgOo/FKKY8wx8IjnkGv4MsS3Lo9Slomo1OkkM82 yk9WS+sHqGAHfZcVvNGJxeHD0IwMUnKUcoWG9Zg= X-Google-Smtp-Source: AOwi7QDbGzzAY4geE9eRHUvYCS56C1lMYR+494Yr4BfcMqYUGvIvPpjWmGHCUwne2FuWzTVCloDon3QeYpPHm2qV/ok= X-Received: by 10.28.133.2 with SMTP id h2mr11342615wmd.67.1507683582593; Tue, 10 Oct 2017 17:59:42 -0700 (PDT) Original-Received: by 10.223.146.193 with HTTP; Tue, 10 Oct 2017 17:59:42 -0700 (PDT) In-Reply-To: <87a80y8s3s.fsf@gmail.com> X-Google-Sender-Auth: yiCpxGH8GedJvurNgbGOF0Vfv8o X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::235 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:219365 Archived-At: On Tue, Oct 10, 2017 at 8:07 PM, Jo=C3=A3o T=C3=A1vora wrote: > Unfortunately, not all flags make sense for flymake, like the -M family > of flags. Oh, huh. I hadn't thought of that. Do the -M flags do any harm though? > Ideally, i=E2=80=99d need a way to parse this big string of flags back > into, say, an alist, and cherry pick the -I, -D, and -W flags from that > set. But I=E2=80=99m afraid split-string will insufficiently deal with es= caped > spaces in the output. There was some talk of extracting the eshell code into a separate function that could provide "real" shell parsing. The downside of this approach is that it would take some work (eshell code is generally kind of hairy), and it will probably never be 100% since the actual Makefile isn't using eshell to parse. Another possibility is to put an echoing command in front and exploit the shell's parsing directly, e.g., printf '%s\0' gcc -c -Demacs -I. -I. -I../lib -I../ ... should give you some output that you can split-string on NUL without worry. Instead of printf, which may not be available, you could use emacs.