From unknown Fri Aug 15 14:47:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12539: 24.2.50; Byte compiler warns about cl-lib functions Resent-From: Michael Welsh Duggan Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Sep 2012 04:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12539 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 12539@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.134889115814925 (code B ref -1); Sat, 29 Sep 2012 04:00:03 +0000 Received: (at submit) by debbugs.gnu.org; 29 Sep 2012 03:59:18 +0000 Received: from localhost ([127.0.0.1]:33012 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1THoD0-0003sg-6l for submit@debbugs.gnu.org; Fri, 28 Sep 2012 23:59:18 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45854) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1THoCx-0003sY-Ef for submit@debbugs.gnu.org; Fri, 28 Sep 2012 23:59:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1THoCj-0001jf-9N for submit@debbugs.gnu.org; Fri, 28 Sep 2012 23:59:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:42804) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THoCj-0001jb-6M for submit@debbugs.gnu.org; Fri, 28 Sep 2012 23:59:01 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60919) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THoCi-0005Wr-Dk for bug-gnu-emacs@gnu.org; Fri, 28 Sep 2012 23:59:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1THoCh-0001iT-Ds for bug-gnu-emacs@gnu.org; Fri, 28 Sep 2012 23:59:00 -0400 Received: from md5i.com ([75.151.244.229]:48196 helo=maru.md5i.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THoCh-0001i8-8l for bug-gnu-emacs@gnu.org; Fri, 28 Sep 2012 23:58:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=md5i.com; s=dkim; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From; bh=XH2pO9Aqyx+Xf7HBymwQ20hDa8VqW3BsmnG190rhl5I=; b=kQLjRKVrVyjgl6+f/S4J405UQktRGsttPr0+1MP/LSl5PPKsIULHzwPS77PEOqu5eKMlxPwecjzz27nMLEKwJmD4DX9zviY0letd2chC+hgwXsyIOdx5hfLAH8JTfAM7; Received: from md5i by maru.md5i.com with local (Exim 4.80) (envelope-from ) id 1THoCb-00060b-2c for bug-gnu-emacs@gnu.org; Fri, 28 Sep 2012 23:58:53 -0400 From: Michael Welsh Duggan Date: Fri, 28 Sep 2012 23:58:53 -0400 Message-ID: <87y5jtzdhe.fsf@maru.md5i.com> User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Start emacs and create an elisp file: emacs -Q C-x C-f /tmp/foo.el Write the following into the file: (require 'cl-lib) (defun foo (x) (cl-remove-if (lambda (x) (markerp (car-safe x))) x)) Save it, and byte compile it: C-x C-s M-x byte-compile-file RET RET You will then get a warning: In foo: foo.el:4:53:Warning: function `cl-remove-if' from cl package called at runtime I believe this warning is not supposed to be there when using the cl-lib (as opposed to cl) package. In GNU Emacs 24.2.50.1 (i686-pc-linux-gnu, X toolkit) of 2012-09-07 on maru Bzr revision: 109910 cyd@gnu.org-20120907040700-bupuig48oke3ynqm Windowing system distributor `The X.Org Foundation', version 11.0.11203902 Configured using: `configure '--without-gconf' '--without-gsettings' '--without-toolkit-scroll-bars' '--with-x-toolkit=lucid' 'CFLAGS=-O0 -ggdb' '--enable-asserts' '--with-wide-int' '--enable-maintainer-mode'' Important settings: value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t -- Michael Welsh Duggan (md5i@md5i.com) From unknown Fri Aug 15 14:47:08 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Michael Welsh Duggan Subject: bug#12539: closed (Re: bug#12539: 24.2.50; Byte compiler warns about cl-lib functions) Message-ID: References: <87y5jtzdhe.fsf@maru.md5i.com> X-Gnu-PR-Message: they-closed 12539 X-Gnu-PR-Package: emacs Reply-To: 12539@debbugs.gnu.org Date: Sat, 29 Sep 2012 18:05:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1348941902-31036-1" This is a multi-part message in MIME format... ------------=_1348941902-31036-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #12539: 24.2.50; Byte compiler warns about cl-lib functions which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 12539@debbugs.gnu.org. --=20 12539: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D12539 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1348941902-31036-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 12539-done) by debbugs.gnu.org; 29 Sep 2012 18:04:39 +0000 Received: from localhost ([127.0.0.1]:33864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TI1P4-000840-73 for submit@debbugs.gnu.org; Sat, 29 Sep 2012 14:04:38 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:45436) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TI1P2-00083r-BE for 12539-done@debbugs.gnu.org; Sat, 29 Sep 2012 14:04:37 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TI1Oj-0004iM-Sj; Sat, 29 Sep 2012 14:04:17 -0400 From: Glenn Morris To: 12539-done@debbugs.gnu.org Subject: Re: bug#12539: 24.2.50; Byte compiler warns about cl-lib functions References: <87y5jtzdhe.fsf@maru.md5i.com> X-Spook: class struggle eavesdropping Armani spy Clinton X-Ran: E0&g,u[g`Db0xsk1ktRv)j|^|.yZydox6LKF27cnxB:eL{Awc@hbw+o>u[^FmG8fc+mGfD X-Hue: yellow X-Debbugs-No-Ack: yes X-Attribution: GM Date: Sat, 29 Sep 2012 14:04:17 -0400 In-Reply-To: <87y5jtzdhe.fsf@maru.md5i.com> (Michael Welsh Duggan's message of "Fri, 28 Sep 2012 23:58:53 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -7.7 (-------) X-Debbugs-Envelope-To: 12539-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -7.7 (-------) Michael Welsh Duggan wrote: > You will then get a warning: > > In foo: > foo.el:4:53:Warning: function `cl-remove-if' from cl package called at runtime Fixed as of yesterday. ------------=_1348941902-31036-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 29 Sep 2012 03:59:18 +0000 Received: from localhost ([127.0.0.1]:33012 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1THoD0-0003sg-6l for submit@debbugs.gnu.org; Fri, 28 Sep 2012 23:59:18 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45854) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1THoCx-0003sY-Ef for submit@debbugs.gnu.org; Fri, 28 Sep 2012 23:59:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1THoCj-0001jf-9N for submit@debbugs.gnu.org; Fri, 28 Sep 2012 23:59:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:42804) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THoCj-0001jb-6M for submit@debbugs.gnu.org; Fri, 28 Sep 2012 23:59:01 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60919) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THoCi-0005Wr-Dk for bug-gnu-emacs@gnu.org; Fri, 28 Sep 2012 23:59:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1THoCh-0001iT-Ds for bug-gnu-emacs@gnu.org; Fri, 28 Sep 2012 23:59:00 -0400 Received: from md5i.com ([75.151.244.229]:48196 helo=maru.md5i.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THoCh-0001i8-8l for bug-gnu-emacs@gnu.org; Fri, 28 Sep 2012 23:58:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=md5i.com; s=dkim; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From; bh=XH2pO9Aqyx+Xf7HBymwQ20hDa8VqW3BsmnG190rhl5I=; b=kQLjRKVrVyjgl6+f/S4J405UQktRGsttPr0+1MP/LSl5PPKsIULHzwPS77PEOqu5eKMlxPwecjzz27nMLEKwJmD4DX9zviY0letd2chC+hgwXsyIOdx5hfLAH8JTfAM7; Received: from md5i by maru.md5i.com with local (Exim 4.80) (envelope-from ) id 1THoCb-00060b-2c for bug-gnu-emacs@gnu.org; Fri, 28 Sep 2012 23:58:53 -0400 From: Michael Welsh Duggan To: bug-gnu-emacs@gnu.org Subject: 24.2.50; Byte compiler warns about cl-lib functions Date: Fri, 28 Sep 2012 23:58:53 -0400 Message-ID: <87y5jtzdhe.fsf@maru.md5i.com> User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Start emacs and create an elisp file: emacs -Q C-x C-f /tmp/foo.el Write the following into the file: (require 'cl-lib) (defun foo (x) (cl-remove-if (lambda (x) (markerp (car-safe x))) x)) Save it, and byte compile it: C-x C-s M-x byte-compile-file RET RET You will then get a warning: In foo: foo.el:4:53:Warning: function `cl-remove-if' from cl package called at runtime I believe this warning is not supposed to be there when using the cl-lib (as opposed to cl) package. In GNU Emacs 24.2.50.1 (i686-pc-linux-gnu, X toolkit) of 2012-09-07 on maru Bzr revision: 109910 cyd@gnu.org-20120907040700-bupuig48oke3ynqm Windowing system distributor `The X.Org Foundation', version 11.0.11203902 Configured using: `configure '--without-gconf' '--without-gsettings' '--without-toolkit-scroll-bars' '--with-x-toolkit=lucid' 'CFLAGS=-O0 -ggdb' '--enable-asserts' '--with-wide-int' '--enable-maintainer-mode'' Important settings: value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t -- Michael Welsh Duggan (md5i@md5i.com) ------------=_1348941902-31036-1--