From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Builder, a build system integration for Emacs Date: Wed, 24 May 2023 09:32:57 +0300 Organization: LINKOV.NET Message-ID: <86zg5uxp0i.fsf@mail.linkov.net> References: <95980ffc-86e7-ad54-4a20-539d8c6ea5d0@mailo.com> <87jzwzh2bm.fsf@posteo.net> <83cz2rpa73.fsf@gnu.org> <6b01a5ba-e60b-9ecc-8e94-5bef156c83b3@mailo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22231"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: emacs-devel@gnu.org To: =?iso-8859-1?Q?Augustin_Ch=E9neau_=28BTuin=29?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 24 08:34:31 2023 Return-path: Envelope-to: ged-emacs-devel@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 1q1i4t-0005dd-5a for ged-emacs-devel@m.gmane-mx.org; Wed, 24 May 2023 08:34:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1i3o-0007kF-VQ; Wed, 24 May 2023 02:33:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q1i3m-0007ja-MG for emacs-devel@gnu.org; Wed, 24 May 2023 02:33:22 -0400 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q1i3l-0007hM-7M for emacs-devel@gnu.org; Wed, 24 May 2023 02:33:22 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 3F9DD1BF207; Wed, 24 May 2023 06:33:18 +0000 (UTC) In-Reply-To: <6b01a5ba-e60b-9ecc-8e94-5bef156c83b3@mailo.com> ("Augustin =?iso-8859-1?Q?Ch=E9neau?= (BTuin)"'s message of "Tue, 23 May 2023 20:46:58 +0200") Received-SPF: pass client-ip=217.70.183.201; envelope-from=juri@linkov.net; helo=relay8-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:306289 Archived-At: > This is exactly what Builder does: if you want to compile, it will detect > which build systems are present in the project and provide you choices of > commands to execute. You can see that as an autocomplete for M-x compile. > > After asking you to chose the command, it will actually pass the string to > the function `compile'. So it doesn't re-implement anything. > It's just a layer over `compile', to remove repetitive tasks. > > I know you can customize `compile-command', but you can only have one value > by project, you need to set it for each project and you can't switch > between values. It doesn't help you if you want to switch to debug or > another target, or to run tests, or if you have multiple build systems on > your project. Like 'tex-compile-commands', a new variable 'compile-commands' could support a list of default commands. You can fill it with default values, then the user can select one of them by using completion.