From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Byte-compilation of custom themes Date: Sun, 03 Jun 2018 18:11:29 +0300 Message-ID: <83po17dhwe.fsf@gnu.org> References: <87efmk2qk0.fsf@tcd.ie> <87vafjhu04.fsf@tcd.ie> <87po5po7ul.fsf@tcd.ie> <87o9hoxm0w.fsf@tcd.ie> <83fu2ynvda.fsf@gnu.org> <87zi169q9y.fsf@tcd.ie> <83a7t6nlmf.fsf@gnu.org> <877eo9kjnl.fsf@tcd.ie> <831sehnymt.fsf@gnu.org> <874lim2pyi.fsf@tcd.ie> <83d0x9e8iu.fsf@gnu.org> <87vab110mi.fsf@tcd.ie> <83y3fxc7c4.fsf@gnu.org> <87muwc9kv0.fsf@tcd.ie> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1528038571 6130 195.159.176.226 (3 Jun 2018 15:09:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 3 Jun 2018 15:09:31 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: "Basil L. Contovounesios" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 03 17:09:27 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPUdJ-0001S8-6V for ged-emacs-devel@m.gmane.org; Sun, 03 Jun 2018 17:09:25 +0200 Original-Received: from localhost ([::1]:35606 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPUfP-0005UN-HM for ged-emacs-devel@m.gmane.org; Sun, 03 Jun 2018 11:11:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPUfJ-0005UF-4C for emacs-devel@gnu.org; Sun, 03 Jun 2018 11:11:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPUfE-00051C-A2 for emacs-devel@gnu.org; Sun, 03 Jun 2018 11:11:29 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPUfE-00050z-7M; Sun, 03 Jun 2018 11:11:24 -0400 Original-Received: from [176.228.60.248] (port=4009 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fPUfD-0000C7-G3; Sun, 03 Jun 2018 11:11:23 -0400 In-reply-to: <87muwc9kv0.fsf@tcd.ie> (contovob@tcd.ie) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:225957 Archived-At: > From: "Basil L. Contovounesios" > Cc: , Eli Zaretskii > Date: Sun, 03 Jun 2018 12:21:07 +0100 > > You're right, emacs -Q followed by (fboundp 'cl-assert) returns nil. > > > I think the confusing comes from help-fns.el which does (require > > 'cl-lib), so if you do `C-h f cl-assert RET` it will indeed tell you > > it's autoloaded, but it's just because `C-h f` ended up requiring > > cl-lib. > > No, the confusion comes from looking at the source of cl-macs.el, in > which cl-assert is given an ;;;###autoload cookie. I see now that there > are some comments in cl-lib.el that suggest loading cl-loaddefs.el > involves some trickery, so I guess I don't get to eat the cake here. > > In that case, I don't see how Eli's suggestion to predicate the > cl-assert call on (featurep 'cl-lib) will help, as feauturep is not > going to load the library for us. ??? I meant the following obvious trick: (if (featurep 'cl-lib) (cl-assert ....)) Am I missing something?