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

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

Conditional evaluation?


From: Elena
Subject: Conditional evaluation?
Date: Mon, 27 Jul 2009 01:09:46 -0700 (PDT)
User-agent: G2/1.0

Hi,

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

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

Thanks.


reply via email to

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