From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Should native compilation be enabled by default? Date: Tue, 05 Mar 2024 18:37:54 +0200 Message-ID: <86le6wljml.fsf@gnu.org> References: <86sf19p0hw.fsf@gnu.org> <86y1awlvb1.fsf@gnu.org> <26087.13415.591491.17967@retriever.mtv.corp.google.com> <86msrcllrc.fsf@gnu.org> <26087.16979.320201.148528@retriever.mtv.corp.google.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17461"; mail-complaints-to="usenet@ciao.gmane.io" Cc: raman@google.com, rms@gnu.org, emacs-devel@gnu.org To: "T.V Raman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 05 17:38:28 2024 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 1rhXoA-0004NZ-JC for ged-emacs-devel@m.gmane-mx.org; Tue, 05 Mar 2024 17:38:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rhXnp-0007JP-Vc; Tue, 05 Mar 2024 11:38:05 -0500 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 1rhXnn-0007Iv-TT for emacs-devel@gnu.org; Tue, 05 Mar 2024 11:38:04 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rhXnn-0008P8-8Z; Tue, 05 Mar 2024 11:38:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=B0RYscDacZ4WTuDda8HhXQyg5xnG7qBwNjylIyK9xOw=; b=AhJbh0Uf5RUw 32UZmWidsGBnU+ig63NSpYYtZdo9YUEAVTzEo1fZcWDXzjMT+ymKXCi6c6u8t7c4yacZC2aM5dlHZ osNHNckIZ/K0GCk0eUtn7GFSoAGAiaLeq+/4GpLb7ExFWcylPbAEp9unsFoX7yeXxulO8HJAafYpG PSCs24vut9Y/IZiViyi2AmOVRLa5capAqkOzn2+aA5HJONqDsj8CHQ6d898FFZqF+m3E4R1D9oiN7 IjodD2k5Hc+MB470H4EObXKF6PpxiUB7Un3Dkf4mQgs3S73nRp3grwGK6iYD9d5gObIhnCZsqPPSw Kx4L4UN+4BHy30+bLCJB3A==; In-Reply-To: <26087.16979.320201.148528@retriever.mtv.corp.google.com> (raman@google.com) 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:316837 Archived-At: > From: "T.V Raman" > Date: Tue, 5 Mar 2024 08:03:31 -0800 > Cc: raman@google.com, > rms@gnu.org, > emacs-devel@gnu.org > > > First I am hearing of that ar, glad it is there. So now you could try using that instead of disabling native compilation globally. > So for the average user, who adds things to that list? Some examples > in the docs -- especially illustrating how to use it to "fix broken > packages" might improve things. What do you mean? That variable is a user option, documented as follows: "List of regexps to exclude matching files from deferred native compilation. Files whose names match any regexp are excluded from native compilation." So it is a list of regular expressions intended for _users_ to customize; the default is nil. The regular expressions should match the file names which you don't want Emacs to natively compile. I think this is simple and clear enough to not require any elaborate examples. The reasons why the user would like to avoid compiling some files are beside the point -- it could be because the files are broken and unmaintained, but it could also be for any number of other reasons.