From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Augustin_Ch=c3=a9neau_=28BTuin=29?= Newsgroups: gmane.emacs.devel Subject: Re: Builder, a build system integration for Emacs Date: Tue, 23 May 2023 20:46:58 +0200 Message-ID: <6b01a5ba-e60b-9ecc-8e94-5bef156c83b3@mailo.com> References: <95980ffc-86e7-ad54-4a20-539d8c6ea5d0@mailo.com> <87jzwzh2bm.fsf@posteo.net> <83cz2rpa73.fsf@gnu.org> 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="27753"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 23 20:48:04 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 1q1X3E-00070s-0V for ged-emacs-devel@m.gmane-mx.org; Tue, 23 May 2023 20:48:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1X2K-0005fb-6C; Tue, 23 May 2023 14:47:08 -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 1q1X2H-0005b4-KG for emacs-devel@gnu.org; Tue, 23 May 2023 14:47:07 -0400 Original-Received: from msg-1.mailo.com ([213.182.54.11]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q1X2F-00089t-JJ for emacs-devel@gnu.org; Tue, 23 May 2023 14:47:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1684867619; bh=36xgwjcnvwPbTqt2GYQ4ldV6WE6f7heXXa9p7ZG3qAs=; h=X-EA-Auth:Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=l+GSxS+K2w3qmL64UvyJyRtDTFPk9udrQHIH0nt0Jv8GyZ5RpK9cZrsFG35y0FkDD dBWEGLkHCXUr8fXflbm5y2qw7uPgXbjr1oRgqbEPjdd8Ph7d8IoKiX8qkRkIZvXqmI 6DC+nEuKgcZJ7UqynCSmt4nfJcSsqCvzXewgnbLg= Original-Received: by b221-1.in.mailobj.net [192.168.90.21] with ESMTP via ip-20.mailobj.net [213.182.54.20] Tue, 23 May 2023 20:46:59 +0200 (CEST) X-EA-Auth: Tpc0K5T41IVm2MTGAbWWz6gb2BykjbJzTGgZBnjlX0WkUXssTseuYDSI+Mnn5XubY6gJdd+2ZDnv77fxzfsidnFXnB09rUwo Content-Language: fr, en-US In-Reply-To: <83cz2rpa73.fsf@gnu.org> Received-SPF: pass client-ip=213.182.54.11; envelope-from=btuin@mailo.com; helo=msg-1.mailo.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.089, RCVD_IN_MSPIKE_H2=-0.001, 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:306284 Archived-At: Le 23/05/2023 à 13:18, Eli Zaretskii a écrit : >> From: Philip Kaludercic >> Cc: BTuin , emacs-devel@gnu.org >> Date: Tue, 23 May 2023 08:36:13 +0000 >> >> Richard Stallman writes: >> >>> Isn't "use build systems" what M-x compile does? >>> Assuming that each bui;d system provides a shell command to invoke it, >>> M-x compile can run that command and build the package. >> >> The issue is not what M-x compile, but that with a lot of modern >> programming languages the build systems are complex but automatable, to >> a point that it would be nice if Emacs could detect the necessary >> information to invoke the right command or sequence of commands. > > You mean, to guess a good value for compile-command? > I realize that my initial message may have not been clear, my apologies. 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. I hope it's easier to understand!