From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#41408: Add a project-compile command Date: Wed, 20 May 2020 00:55:15 +0300 Message-ID: References: <87blmjbx5b.fsf@warpmail.net> <878shnvgcz.fsf@bulbul> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="123429"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Cc: 41408@debbugs.gnu.org To: "Philip K." Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 19 23:56:12 2020 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 1jbADa-000Vxh-6J for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 May 2020 23:56:10 +0200 Original-Received: from localhost ([::1]:34086 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jbADY-0007La-UC for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 May 2020 17:56:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40750) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbADS-0007LS-HX for bug-gnu-emacs@gnu.org; Tue, 19 May 2020 17:56:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39737) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jbADS-0003Tk-8b for bug-gnu-emacs@gnu.org; Tue, 19 May 2020 17:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jbADS-0000zd-5n for bug-gnu-emacs@gnu.org; Tue, 19 May 2020 17:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 May 2020 21:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41408 X-GNU-PR-Package: emacs Original-Received: via spool by 41408-submit@debbugs.gnu.org id=B41408.15899253253772 (code B ref 41408); Tue, 19 May 2020 21:56:02 +0000 Original-Received: (at 41408) by debbugs.gnu.org; 19 May 2020 21:55:25 +0000 Original-Received: from localhost ([127.0.0.1]:51283 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbACr-0000ym-Bz for submit@debbugs.gnu.org; Tue, 19 May 2020 17:55:25 -0400 Original-Received: from mail-wm1-f68.google.com ([209.85.128.68]:40009) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbACp-0000yY-Va for 41408@debbugs.gnu.org; Tue, 19 May 2020 17:55:24 -0400 Original-Received: by mail-wm1-f68.google.com with SMTP id n18so831431wmj.5 for <41408@debbugs.gnu.org>; Tue, 19 May 2020 14:55:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=A6NGe83yRHhOJ1d3JiUTBHM3zmqx9L0dqOi1RX0C6os=; b=BrYAZQg33u7faOVUe/EcEbXNXVF1xboq9rz1Sy1b0rW+8is7OKFDY7i9BOe0/vcWYJ bxvySjeB1CgOlBHWFgKVmtcPZn0dSVeXUmizGWial8OMLWVLd52ya5J00DLML4aTi5KS csUbsLlat/QsKZwoDqbd/spsXti5Da8w0xM7Oal4LQRt3gDvSuifn7s474eIyHOXimAF PfA6xr/kin8VarlBQC8r8N0Dlq8BBIXgNQwyEkRS2j1kRrKrHEsRU05KTb8fMa42C94H c7dkYRDIxnT6bMeptOtW9Yj5UZVzjTo+9B43w7EKVtyVhkOLQPEq9/WT7g2HVCiu3R1Y 9YDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; 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=A6NGe83yRHhOJ1d3JiUTBHM3zmqx9L0dqOi1RX0C6os=; b=Bh4sGH2C3IdCyLk61l1uVcNQDZstAl8pD9Q69ZNei2xX7YhwsoKCfggnvRWaFa71aN r6FFeozLamkcF4Ydg34Dl8rzOoWvTB5WTW9ljuwVGRD3nLlyCJiw3jnXLdaFDH22CSyt 0eaV6UVAqFNPgS5LLK60jzVc+YRKh2VpRJ4BQEtZVhW0j1EpqzTKR1nnS50yoDZbtCM2 fv6cjzgrj3YQy9VYIgpGRbZmBq8EMQG+yeHgSFK9prInms9ywJzeC6z2umjT3zF7IMSz oiP6UnE2FeefSvTiHFBKOSbDetkHACBsgh59kkPdq+XPIn5m6rbB5N+8L1K+QvT+lF5K IZ7g== X-Gm-Message-State: AOAM530h8h474jmrpXwPZ11IapGhJTo7EKO+H5VBQBdkP+jGQC5gxPV7 84YG+2nVqnsD3kVp5k82Y87bY1Vj X-Google-Smtp-Source: ABdhPJwBAZPy0COLy2xKs+VP1EvjlWe6yX3asAJmNPv8K3nbiDkUdHcBQu3RFpLqXatMWPIoGBLZpg== X-Received: by 2002:a1c:dc02:: with SMTP id t2mr1444731wmg.8.1589925317620; Tue, 19 May 2020 14:55:17 -0700 (PDT) Original-Received: from [192.168.0.3] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id 37sm765011wrk.61.2020.05.19.14.55.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 May 2020 14:55:16 -0700 (PDT) In-Reply-To: <878shnvgcz.fsf@bulbul> 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:180616 Archived-At: On 19.05.2020 23:07, Philip K. wrote: >>> The TODOs mention a `project-build' command, and from my interpretation, >>> this is a slimmed down version (hence the other name, but also because >>> it just called compile in a different environment). Regarding the "build" command, I had a bigger idea with a set of abstractions and per-project customizations. But so far nobody's needed that, it seems. >> Is this a command you'd be using yourself? If so, we'll add it happily. > > I wrote it because I needed it, otherwise I wouldn't have suggested it, > hoping others to do. That's what's important. > And I assume others do, since projectile has a > similar command (projectile-compile-project). Projectile has a great many commands, we'll probably refrain from adding them all. >> I'm just asking because it's indeed bare-bones, and I basically never >> use 'M-x compile' directly. > > Hmm, I regularly use compile/recompile, but maybe that's my mistake. If > you don't mind me asking, how do you invoke compile or related > functions? Someone could give some pointers, but don't mind me: I usually work with Ruby, where the main "compilation" is running the tests. And we do that (to take advantage of compilation-mode) via a certain abstraction that builds up the list of arguments, and uses a mode derived from compilation-mode. > If I'm doing it the "wrong way", maybe it might not be worth > applying this patch. If you find it helpful, then most likely there will be others that do. So please don't worry about that.