all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* (require 'cl) problem
@ 2004-09-23 16:24 It's me FKtPp ;)
  2004-09-23 18:08 ` Jesper Harder
  2004-09-23 20:49 ` Pascal Bourguignon
  0 siblings, 2 replies; 13+ messages in thread
From: It's me FKtPp ;) @ 2004-09-23 16:24 UTC (permalink / raw)



The Emacs Lisp Programing Standard said:
,----
| 
|    * Please don't require the `cl' package of Common Lisp extensions at
|      run time.  Use of this package is optional, and it is not part of
|      the standard Emacs namespace.  If your package loads `cl' at run
|      time, that could cause name clashes for users who don't use that
|      package.
| 
|      However, there is no problem with using the `cl' package at compile
|      time, for the sake of macros.  You do that like this:
| 
|           (eval-when-compile (require 'cl))
`----

But when i test this piece of code (byte-compile and restart emacs and
load the elc)

,----[ test.el ]
| ;; just want to test cl
| 
| ;;; Code:
| 
| (eval-when-compile (require 'cl))
| 
| (defun fktpp-test-case ()
|   "test cl library"
|   (interactive)
|   (message (if (oddp 22)
| 	       "yes it's odd"
| 	     "no it isn't")))
| 
| (provide 'test)
| ;;; test.el ends here
`----

it always tell me the symbol oddp didn't defined. why ? Is there any
thing illegal in my code?

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

end of thread, other threads:[~2004-09-24 17:27 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-23 16:24 (require 'cl) problem It's me FKtPp ;)
2004-09-23 18:08 ` Jesper Harder
2004-09-24  4:58   ` It's me FKtPp ;)
2004-09-24  6:40     ` Pascal Bourguignon
2004-09-24  6:47       ` David Kastrup
2004-09-24 10:00         ` It's me FKtPp ;)
2004-09-24 11:49           ` Pascal Bourguignon
2004-09-24  8:01     ` John Paul Wallington
2004-09-24 10:02       ` It's me FKtPp ;)
2004-09-24 11:53         ` Pascal Bourguignon
2004-09-24 13:16     ` Barry Margolin
2004-09-24 17:27     ` Stefan Monnier
2004-09-23 20:49 ` Pascal Bourguignon

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.