From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Elena Newsgroups: gmane.emacs.help Subject: Conditional evaluation? Date: Mon, 27 Jul 2009 01:09:46 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1248684088 1176 80.91.229.12 (27 Jul 2009 08:41:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jul 2009 08:41:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 27 10:41:21 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MVLlo-0002Jf-3I for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Jul 2009 10:41:20 +0200 Original-Received: from localhost ([127.0.0.1]:41221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVLln-0007TT-5k for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Jul 2009 04:41:19 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!e27g2000yqm.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-NNTP-Posting-Host: 81.208.92.182 Original-X-Trace: posting.google.com 1248682186 14722 127.0.0.1 (27 Jul 2009 08:09:46 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 27 Jul 2009 08:09:46 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e27g2000yqm.googlegroups.com; posting-host=81.208.92.182; posting-account=AFCLjAoAAABJAOf_HjgEEEi3ty-lG5m2 User-Agent: G2/1.0 X-HTTP-Via: 1.1 sic.int.lisit.it:8080 (squid/2.5.STABLE3) X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:171234 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:66420 Archived-At: 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.