[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(require 'cl) problem
From: |
It's me FKtPp ;) |
Subject: |
(require 'cl) problem |
Date: |
24 Sep 2004 00:24:51 +0800 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
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?