Subject: bug#12539: closed (Re: bug#12539: 24.2.50; Byte compiler warns about cl-lib functions)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 29 Sep 2012 18:05:02 +0000

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 [email-masked].

-- 
12539: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12539
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#12539: 24.2.50; Byte compiler warns about cl-lib functions
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Sat, 29 Sep 2012 14:04:17 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

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.

Subject: 24.2.50; Byte compiler warns about cl-lib functions
From: Michael Welsh Duggan <[email-masked]>
To: [email-masked]
Date: Fri, 28 Sep 2012 23:58:53 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

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 [email-masked]
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
([email-masked])