help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (require 'cl) problem


From: David Kastrup
Subject: Re: (require 'cl) problem
Date: Fri, 24 Sep 2004 08:47:21 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux)

Pascal Bourguignon <spam@mouse-potato.com> writes:

> "It's me FKtPp ;)" <m_pupil@163.com> writes:
>
>> Jesper Harder <harder@myrealbox.com> writes:
>> 
>> > "It's me FKtPp ;)" <m_pupil@163.com> writes:
>> > 
>> > > |      However, there is no problem with using the `cl' package at
>> > > |      compile time, for the sake of macros.
>> >                                        ^^^^^^
>> > > But when i test this piece of code (byte-compile and restart emacs
>> > > and load the elc) it always tell me the symbol oddp didn't
>> > > defined. why ?
>> > 
>> > The magic word is "macros".  `oddp' is a function not a macro.
>> 
>> Then, if I want load this function, but don't want to (require
>> 'cl). what should I do?
>
> Concentrate and pray very strongly until a miracle occurs and oddp
> becomes defined without loading the file cl.el where it's declared.

(defsubst oddp (x) (/= 0 (mod x 2)))

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

[Prev in Thread] Current Thread [Next in Thread]