From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arash Esbati Newsgroups: gmane.emacs.bugs Subject: bug#72313: 31.0.50; Warning about cl-member possibly being undefined when using cl-pushnew Date: Sat, 27 Jul 2024 17:29:43 +0200 Message-ID: References: <874j8bx5gr.fsf@gnu.org> <875xsrjoi9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22486"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: monnier@iro.umontreal.ca, tsdh@gnu.org To: 72313@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 27 17:30:11 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 1sXjN5-0005fJ-BY for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Jul 2024 17:30:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXjMq-0005lj-Qn; Sat, 27 Jul 2024 11:29:56 -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 1sXjMn-0005lD-GW for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2024 11:29:53 -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 1sXjMn-0005HC-24 for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2024 11:29:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=Ki4t4hpX16YD1VFO8XzATmzDqU+FpRv/fJ8o1ngp/Y8=; b=g8DbFrfmr8gennLiDV965nwH9/tRvZcyHc/2kmeNlj9HFVHgd9eVKpJYgbwWEp5oe7OzhxZb4MkIj4QDqC0iG/kCBiK3EA7xNSLnC0PvndZ9sKLSEq6QuIZFS2ZlkrFM/CneDy87nEZ7WntCd/VhV1FTm9HPaRTg1G4FOKoV2r4XqpBsCWttbORRia/Avo6nCT8NK8YWdSPmt+FHNIcQPNkxxCtSd6keW29zdF4Ft4GXTLEUgpwKDa9ppaNtE9bEhIh3lepH0rxmMRag632Uvs76asYJ7X/0k+eWxonzCk6t9I8s8g4JqrNaqjro+Od6dtDTxAXmaIGRY0UT0W3iRw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sXjMx-0002iX-2J for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2024 11:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Jul 2024 15:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72313 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: 72313@debbugs.gnu.org, Stefan Monnier , Tassilo Horn Original-Received: via spool by submit@debbugs.gnu.org id=B.172209420110408 (code B ref -1); Sat, 27 Jul 2024 15:30:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Jul 2024 15:30:01 +0000 Original-Received: from localhost ([127.0.0.1]:42133 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXjMv-0002hX-Cz for submit@debbugs.gnu.org; Sat, 27 Jul 2024 11:30:01 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:33476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXjMt-0002gw-OV for submit@debbugs.gnu.org; Sat, 27 Jul 2024 11:30:00 -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 1sXjMi-0005kw-GZ for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2024 11:29:48 -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 1sXjMi-0005GO-5F; Sat, 27 Jul 2024 11:29:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=Ki4t4hpX16YD1VFO8XzATmzDqU+FpRv/fJ8o1ngp/Y8=; b=TXROWNR9ygtGYJNnqS0D zBVvTk8f8dCyzXPEfu9ZuPEylbfeOGGjJidIFe15xh7KslonWYX2kRrdUWdwzOh5wFJ3a/LWyxsJA 3H0+EjHRrAwa7X1ow1RmVY0/4UyJ4oTPzkBP3q8QBx2MYawHffowYQyQnw3ljo2CPgPqyv/kqasWA tTTL4hNVgHnxhaPIzQ4QiMoOR8pMF5LJS88N/xIZPhT/pIgzi4KsZa2Kd5No2RWoIkHANEqhT6Acl WpiQXRryhv+Tnl9EKQtqikxTOh+ZgCnf5NRvocawTwhyLFDJZSug6ONN2eey85BLyFh/9PY4F0Gxr w9kaWbntzDB5YQ==; In-Reply-To: (Stefan Monnier via's message of "Sat, 27 Jul 2024 03:49:57 -0400") 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:289435 Archived-At: 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. How about this approach then? --8<---------------cut here---------------start------------->8--- diff --git a/tex-info.el b/tex-info.el index dc69762e..0f77e057 100644 --- a/tex-info.el +++ b/tex-info.el @@ -25,7 +25,8 @@ ;;; Code: (eval-when-compile - (require 'cl-lib)) + (require 'cl-lib) + (declare-function cl-member "cl-seq")) (require 'tex) --8<---------------cut here---------------end--------------->8--- Best, Arash