unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: bxf4@yahoo.com
Subject: diary sexp question
Date: Mon, 12 Dec 2005 17:19:26 -0800	[thread overview]
Message-ID: <m264ptg5ep.fsf@frost.myhome.westell.com> (raw)

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

             reply	other threads:[~2005-12-13  1:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-13  1:19 bxf4 [this message]
2005-12-13  2:31 ` diary sexp question Edward M. Reingold
2005-12-14  7:27   ` bxf4
2005-12-14 21:00     ` Edward M. Reingold
2005-12-15  8:13       ` bxf4
2005-12-15  8:46         ` bxf4
2005-12-15 19:30         ` Edward M. Reingold

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m264ptg5ep.fsf@frost.myhome.westell.com \
    --to=bxf4@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).