From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Bootstrap/autoload policy (was Re: regular expressions that match nothing) Date: Wed, 22 May 2019 15:08:40 -0400 Message-ID: References: <7a6b23f52418b093a4cf7a6db4306cf425533249.camel@acm.org> <87a7fnzd3u.fsf@web.de> <128EBFB8-78FF-47C3-8F28-C1EF91BFC4BB@acm.org> <8FEB203F-9A51-4AD7-8FD4-DE566CA281FC@acm.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="73317"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Mattias =?windows-1252?Q?Engdeg=E5rd?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 22 21:37:07 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hTX2w-000Is8-NA for ged-emacs-devel@m.gmane.org; Wed, 22 May 2019 21:37:07 +0200 Original-Received: from localhost ([127.0.0.1]:50288 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hTX2v-0001UP-O6 for ged-emacs-devel@m.gmane.org; Wed, 22 May 2019 15:37:05 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hTWbV-00046q-CS for emacs-devel@gnu.org; Wed, 22 May 2019 15:08:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hTWbU-0008Ik-Gl for emacs-devel@gnu.org; Wed, 22 May 2019 15:08:45 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:39872) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hTWbU-0008IL-AJ for emacs-devel@gnu.org; Wed, 22 May 2019 15:08:44 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 880E181164; Wed, 22 May 2019 15:08:42 -0400 (EDT) Original-Received: from mail02.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 4E9D7806B0; Wed, 22 May 2019 15:08:41 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1558552121; bh=W+yb3azSfRptIsLqUIlQ6b//hFIGB/LvMUSHRAy+uxM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=fa6fyh4K+hNFgX6Ac6/jVLJxQxrt0UWMGrsOlLwjXc5C4akTp3fY4xXOYiVh1fSZ2 hHCv+AJlNQxrsNMq22q0/Ws8tUZiwjyQPoEbxFjd9jiEUF4wSPuFkRKPXkHeNW7TKd KIK6+ClUj6U0CEB/qRKefWhF74bACdvn8iCabBa2MWDY2imzCUDlaYRKnZs5zcxM4V WZ038SYSBKz3duBAf6/oqhr+V2o/UqUJQ+eKNQcYDUreCUUE5X8/DKkBFH2bR8HSnp usYNJxfC7Fu46STDpHN8A/VUISaQWlH/s3NAM/e7XfaumHjr1CBj2ngHKiuufe9xWL sIuO7Vm7qUOYg== Original-Received: from alfajor (unknown [216.154.3.168]) by mail02.iro.umontreal.ca (Postfix) with ESMTPSA id 2015A1206B4; Wed, 22 May 2019 15:08:41 -0400 (EDT) In-Reply-To: <8FEB203F-9A51-4AD7-8FD4-DE566CA281FC@acm.org> ("Mattias \=\?windows-1252\?Q\?Engdeg\=E5rd\=22's\?\= message of "Wed, 22 May 2019 18:40:21 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 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:236910 Archived-At: >> Ah, I think I know what's going on. See this part of cl-lib.el: >> >> (unless (load "cl-loaddefs" 'noerror 'quiet) >> ;; When bootstrapping, cl-loaddefs hasn't been built yet! >> (require 'cl-macs) >> (require 'cl-seq)) >> >> Adding `cl-extra` here would likely fix your problem > No, now the bootstrap just fails earlier: Welcome to the world of the bootstrap. > I think the (require 'cl-extra) better stay in rx.el until this mess > has been sorted out. Or refrain from using rx's `or` from bytecomp.el, or refrain from calling byte-compile from cl-generic.el during the bootstrap, or ... >> (of course, using >> (memq nil (mapcar ...)) is a perfectly fine alternative as well). > That's what I always have been using, but given that cl-every and cl-some > are easier to read, understand, and write, and generally faster, I've sort > of changed tack. Either way is fine by me (w.r.t speed, cl-every is usually slower per iteration, so whether it's overall faster or slower depends on how far down the list it has to get before it finds a nil). > Maybe we should add `every' and `some' as builtins? I prefer not to have an opinion on this ;-) Stefan