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.bugs Subject: bug#72313: 31.0.50; Warning about cl-member possibly being undefined when using cl-pushnew Date: Sun, 28 Jul 2024 07:58:51 +0300 Message-ID: <86a5i2159w.fsf@gnu.org> References: <874j8bx5gr.fsf@gnu.org> <875xsrjoi9.fsf@gnu.org> <87v80qftk4.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15380"; mail-complaints-to="usenet@ciao.gmane.io" Cc: arash@gnu.org, 72313@debbugs.gnu.org, monnier@iro.umontreal.ca To: Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 28 07:00:48 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1sXw1Y-0003pm-9R for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Jul 2024 07:00:48 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXw1V-0008Bj-8C; Sun, 28 Jul 2024 01:00:45 -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 1sXw0e-0007zq-DJ for bug-gnu-emacs@gnu.org; Sun, 28 Jul 2024 00:59:52 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sXw0e-0006OK-4o for bug-gnu-emacs@gnu.org; Sun, 28 Jul 2024 00:59:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=NdGrYBYF0F156hKUTj+VFtn6SzkTNQgAgplSnC4nUEo=; b=MAM4GiiR2hazQSgbYRdhzv1VtnQOMy3s/D5W2d4oDjK0t+VYdHgd220qwWSA/QZ/64cJs98I4BES4r2vFZusVtmT5xf3W8aEcyy/dFmjr8grVcb+1UVOO1D6RAhNzeH1JqfQH0X+7/mOszDdXCRXqN8/xrd+OkETY+9HP399wpMGHPjEcUhsPxDWe1O9C7LXR5v0wwOeWtKq/2ps+tnNywia5A7VUN2eJ/ZEjKIbH4vEuSADKD7em4vkKZMMPPC+P7ViPM7x7pSV3flDkZJCeKJMNoksZqOq6Sbq/pZN31ytcyVsprlrKBVFWTk1HCwJtA+hV4qry9PbTS2kyanGXw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sXw0o-0004G6-W9 for bug-gnu-emacs@gnu.org; Sun, 28 Jul 2024 01:00:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Jul 2024 05:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72313 X-GNU-PR-Package: emacs Original-Received: via spool by 72313-submit@debbugs.gnu.org id=B72313.172214277016304 (code B ref 72313); Sun, 28 Jul 2024 05:00:02 +0000 Original-Received: (at 72313) by debbugs.gnu.org; 28 Jul 2024 04:59:30 +0000 Original-Received: from localhost ([127.0.0.1]:42606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXw0I-0004Eu-3t for submit@debbugs.gnu.org; Sun, 28 Jul 2024 00:59:30 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXw01-0004ES-Dy for 72313@debbugs.gnu.org; Sun, 28 Jul 2024 00:59:28 -0400 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 1sXvzk-0006GS-Vo; Sun, 28 Jul 2024 00:58:56 -0400 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=NdGrYBYF0F156hKUTj+VFtn6SzkTNQgAgplSnC4nUEo=; b=Tmacyv+3WXQZ ZBuu/ReOEm4HXRXxqCtV7zGKL5NzBqId+JTIT8b3xtnwm/8nRROKXrDcLPZFP211XMLirCSVdJ126 SVFrk5vtMpiRp+9ZueZutDXiENUxh5bbmfAYFO8FaqhRQ0d/2UHd0SASRaVoNgEtgMvlo4vd5y9QV UxdympCSh9rurVeBVf7KFw6hts74fVoupfiYuymtf41QhfOlS2mTQIMs2VIQfK6bMUzsHbTAwyfzG xCeU8OfY4XyjQBZ4uLVuocqqynp0QL92Me4iozgr82Th7gQyRx9B73EKAenHLjulwgmyDd6BYkjGJ MRuOeL7U0FkEPQ1T+6jzYQ==; In-Reply-To: <87v80qftk4.fsf@gnu.org> (message from Tassilo Horn on Sat, 27 Jul 2024 22:50:35 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:289455 Archived-At: > Cc: 72313@debbugs.gnu.org, monnier@iro.umontreal.ca > From: Tassilo Horn > Date: Sat, 27 Jul 2024 22:50:35 +0200 > > Arash Esbati writes: > > > Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of > > text editors" writes: > > > >>> So the conclusion is to simply (require 'cl-lib) instead of > >>> (eval-when-compile (require 'cl-lib))? But how can the > >>> byte-compiler conclude that cl-member might not be defined at > >>> runtime given that it's an autoloaded function? > >> > >> It's autoloaded from `cl-seq` when `cl-lib` is loaded. > >> It's not autoloaded at startup. > > What's that magic? > > emacs -Q > (featurep 'cl-lib) ;=> nil > (describe-function 'cl-member) ; prints the help string to *Messages* > (featurep 'cl-lib) ;=> t > > Do the help facilities load stuff on demand? Yes, of course. As the rest of Emacs, actually. In fact, only help.el is preloaded, the rest of Help facilities (help-mode, help-fns, apropos, etc.) are loaded on demand only.