From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#14831: cl-member warnings during bootstrap Date: Tue, 16 Jul 2013 04:57:42 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1373965089 19852 80.91.229.3 (16 Jul 2013 08:58:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Jul 2013 08:58:09 +0000 (UTC) Cc: Juanma Barranquero , 14831@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 16 10:58:08 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uz15D-0007km-S6 for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Jul 2013 10:58:07 +0200 Original-Received: from localhost ([::1]:37898 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz15D-0000ay-Du for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Jul 2013 04:58:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz159-0000YE-FP for bug-gnu-emacs@gnu.org; Tue, 16 Jul 2013 04:58:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uz158-0005Tx-GJ for bug-gnu-emacs@gnu.org; Tue, 16 Jul 2013 04:58:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35055) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz158-0005Ts-D0 for bug-gnu-emacs@gnu.org; Tue, 16 Jul 2013 04:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Uz158-0002XS-7t for bug-gnu-emacs@gnu.org; Tue, 16 Jul 2013 04:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Jul 2013 08:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14831 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14831-submit@debbugs.gnu.org id=B14831.13739650719726 (code B ref 14831); Tue, 16 Jul 2013 08:58:02 +0000 Original-Received: (at 14831) by debbugs.gnu.org; 16 Jul 2013 08:57:51 +0000 Original-Received: from localhost ([127.0.0.1]:57601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Uz14w-0002Wn-TY for submit@debbugs.gnu.org; Tue, 16 Jul 2013 04:57:51 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:59105) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Uz14v-0002Wb-5I for 14831@debbugs.gnu.org; Tue, 16 Jul 2013 04:57:49 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r6G8vh42007570; Tue, 16 Jul 2013 04:57:45 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id BAA29AE0F1; Tue, 16 Jul 2013 04:57:42 -0400 (EDT) In-Reply-To: (Glenn Morris's message of "Mon, 15 Jul 2013 21:37:44 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4640=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4640> : streams <1001263> : uri <1478048> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:76389 Archived-At: >> I'd like to understand exactly where those `cl-member's come from. >> I suspect the missing part is the (put 'cl-member 'compiler-macro >> #'cl--compiler-macro-member) which is normally in cl-loaddefs.el. >> >> Those residual cl-member calls may actually be a real problem, so maybe >> this is not just a minor cosmetic fix. > Deleting cl-loadefs.el and batch byte-compiling a file with sole contents: > (defvar foo-bar nil) > (add-to-list 'foo-bar 1) > produces byte-code containing cl-member. Makes no sense to me... Aha! So it's the compiler-macro of add-to-list which turns an add-to-list call into a cl-pushnew call, which is then macro-expanded to something that uses cl-member, which should be turned into a plain `member' by `cl--compiler-macro-member'. So it can be fixed by changing the compiler-macro of add-to-list not to use cl-pushnew. Stefan