all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#12539: 24.2.50; Byte compiler warns about cl-lib functions
@ 2012-09-29  3:58 Michael Welsh Duggan
  2012-09-29 18:04 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Welsh Duggan @ 2012-09-29  3:58 UTC (permalink / raw)
  To: 12539

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)





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#12539: 24.2.50; Byte compiler warns about cl-lib functions
  2012-09-29  3:58 bug#12539: 24.2.50; Byte compiler warns about cl-lib functions Michael Welsh Duggan
@ 2012-09-29 18:04 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2012-09-29 18:04 UTC (permalink / raw)
  To: 12539-done

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.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-29 18:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-29  3:58 bug#12539: 24.2.50; Byte compiler warns about cl-lib functions Michael Welsh Duggan
2012-09-29 18:04 ` Glenn Morris

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.