From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bxf4@yahoo.com Newsgroups: gmane.emacs.help Subject: Re: diary sexp question Date: Thu, 15 Dec 2005 00:46:36 -0800 Organization: University of Washington Message-ID: References: <85fyoxk9ri.fsf@emr.cs.iit.edu> <858xunjsws.fsf@emr.cs.iit.edu> Reply-To: bxf4@yahoo.com NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1134648488 26301 80.91.229.2 (15 Dec 2005 12:08:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Dec 2005 12:08:08 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 15 13:08:05 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Emrsy-0002xD-2b for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Dec 2005 13:07:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Emrd0-0005Dl-8L for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Dec 2005 06:50:31 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!news.u.washington.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Original-NNTP-Posting-Host: pool-71-112-236-46.sttlwa.dsl-w.verizon.net Original-X-Trace: gnus01.u.washington.edu 1134636409 31865 71.112.236.46 (15 Dec 2005 08:46:49 GMT) Original-X-Complaints-To: help@cac.washington.edu Original-NNTP-Posting-Date: Thu, 15 Dec 2005 08:46:49 +0000 (UTC) User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (darwin) Cancel-Lock: sha1:Ow+j6DReEFouBqaRLdsFJmN3xcA= Original-Xref: shelby.stanford.edu gnu.emacs.help:136323 Original-To: help-gnu-emacs@gnu.org 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:31951 Archived-At: bxf4@yahoo.com writes: > I was after something like this: > > &%%(let ((dayname (calendar-day-of-week date)) > (day (extract-calendar-day date))) > (and (memq dayname '(4)) > (or fall-quarter winter-quarter spring-quarter))) 15:30 faculty > meeting Well, after posting this, it occurred to me to try adding parentheses around the 'or' terms. It appears to have worked. &%%(let ((dayname (calendar-day-of-week date)) (day (extract-calendar-day date))) (and (memq dayname '(4)) (or (fall-quarter) (winter-quarter) (spring-quarter)))) 15:30 ...