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: Tue, 13 Dec 2005 23:27:07 -0800 Organization: University of Washington Message-ID: References: <85fyoxk9ri.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 1134603526 7610 80.91.229.2 (14 Dec 2005 23:38:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Dec 2005 23:38:46 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 15 00:38:44 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EmgCP-0001Yk-11 for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Dec 2005 00:38:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EmgCk-0006Rf-FN for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Dec 2005 18:38:38 -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: 32 Original-NNTP-Posting-Host: pool-71-112-234-75.sttlwa.dsl-w.verizon.net Original-X-Trace: gnus01.u.washington.edu 1134545316 32269 71.112.234.75 (14 Dec 2005 07:28:36 GMT) Original-X-Complaints-To: help@cac.washington.edu Original-NNTP-Posting-Date: Wed, 14 Dec 2005 07:28:36 +0000 (UTC) User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (darwin) Cancel-Lock: sha1:u4Edw/HaAAIAC5vyp1UoBRF+5zU= Original-Xref: shelby.stanford.edu gnu.emacs.help:136315 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:31939 Archived-At: reingold@emr.cs.iit.edu (Edward M. Reingold) writes: > If you can be more specific about what you are trying to do, I can be of more > help. Hello and thank you for your response. I've only had time to read your functions once, but I'll try to look at them more closely soon. Here are concrete examples of what I'm trying to do. (Sorry for the lack of specificity in the previous message.) - I'll be teaching a course in the Winter quarter. The course meets every Tue., Wed., Thurs., and Fri. from 1:30 to 2:20. On Tues. and Thurs. I'm in one building, and on Wed. and Fri. another. I'd like the entries to only show up during the quarter, and I'd like to get the building correct each day. I don't want to just say that "Tues. I teach in Building 1" because it shows up every Tues. forever. I was thinking something like this: if today is in date_range and if today is Tues or Thurs then 1:30--2:20 teach Bldg 1 else if today is Wed or Fri then 1:30--2:20 teach Bldg 7 - Another example is a weekly seminar that only meets during the quarter. if today is in date_range and if today is Friday then 12:00 brown-bag seminar This is where I was trying to go with my attempt at doctoring the examples in the info file. Thank you again. I'll try to look at your functions tomorrow.