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

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

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


From: Magnus Henoch
Subject: [emacs-wiki-discuss] Re: Nesting Sections in Muse.
Date: Fri, 28 Oct 2005 18:53:02 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (berkeley-unix)

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).

Magnus





reply via email to

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