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: diary sexp question Date: Mon, 12 Dec 2005 17:19:26 -0800 Organization: University of Washington Message-ID: 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 1134437155 31595 80.91.229.2 (13 Dec 2005 01:25:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Dec 2005 01:25:55 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 13 02:25:53 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Elyv3-0000aC-Nw for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Dec 2005 02:25:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ElyvZ-00005e-Ng for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Dec 2005 20:26:01 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!logbridge.uoregon.edu!arclight.uoregon.edu!news.u.washington.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Original-NNTP-Posting-Host: pool-71-113-13-26.sttlwa.dsl-w.verizon.net Original-X-Trace: gnus01.u.washington.edu 1134436827 22629 71.113.13.26 (13 Dec 2005 01:20:27 GMT) Original-X-Complaints-To: help@cac.washington.edu Original-NNTP-Posting-Date: Tue, 13 Dec 2005 01:20:27 +0000 (UTC) User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (darwin) Cancel-Lock: sha1:orXrCyAvnpDdrQWHAa+ogu7zL9U= Original-Xref: shelby.stanford.edu gnu.emacs.help:136304 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:31922 Archived-At: Hello, First, I'm not very knowledgeable about emacs lisp, but I'm working on it. I'm trying to create some weekly meetings (class times) in my diary and I'd like them to appear every TWThF through the end of the quarter. I started with code from the info manual and tried to get the entry to show up on particular days of the week, without limiting to a certain time period. It didn't work, though. &%%(let (dayname (calendar-day-of-week date)) (or (memq dayname '(2 4)) (memq dayname '(3 5)))) 13:30--14:20 Psych 315 I was also trying to put the entry on particular days of the month, but I don't think that was working either. &%%(let (day (car (cdr date))) (or (= day 22) (= day 25))) print success I'd like a sexp that took the following arguments: - weekdays - times - range of dates for the appointments I'd appreciate anyone pointing me in the right direction, or just giving me the sexp (since I bet it's pretty easy for people who know how they work). Thank you for your time and help. -- Brian P. Flaherty Department of Psychology University of Washington Contact and other information at: http://faculty.washington.edu/bxf4/index.shtml