emacs-wiki-discuss
[Top][All Lists]
Advanced

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

Re: [emacs-wiki-discuss] Re: Nesting Sections in Muse.


From: Jim Ottaway
Subject: Re: [emacs-wiki-discuss] Re: Nesting Sections in Muse.
Date: Fri, 28 Oct 2005 21:57:36 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>>>>> Magnus Henoch <address@hidden> writes:

> Jim Ottaway <address@hidden> writes:
>> What I would really like is a defstruct implemented outside of the cl
>> package, so that one could use it freely [the cl package is anathema
>> to some].  It would make lots of code like (nth 5 thing-list) and
>> (cadddr thing-list) much easier to read. 

> defstruct is a macro, so byte-compiled code that uses it doesn't
> depend on cl at run time.  Just use this line:

> (eval-when-compile (require 'cl))

> and even purists are happy (they have to byte-compile your code, of
> course).

Good point. 

-- 
Jim Ottaway




reply via email to

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