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

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

Re: Conditional evaluation?


From: Pascal J. Bourguignon
Subject: Re: Conditional evaluation?
Date: Mon, 27 Jul 2009 10:33:33 +0200
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.3 (darwin)

Elena <egarrulo@gmail.com> writes:
> whenever I'm testing a new chunk of Emacs Lisp, I'd like to
> conditionally include/exclude it without resorting to "comment-
> region". Is using "when" correct?
>
>     (when nil ;; use t to enable evaluation
>         (require 'some-package)
>         ;; etc.
>     )

Yes, it works well.


> Or do I need an alternative form to make code evaluate at top level?

There's no #+,  #-, #| reader syntax in emacs lisp, and no way to add
one (easily).


-- 
__Pascal Bourguignon__


reply via email to

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