unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: bxf4@yahoo.com
Subject: Re: diary sexp question
Date: Thu, 15 Dec 2005 00:13:23 -0800	[thread overview]
Message-ID: <m2u0da6an0.fsf@frost.local> (raw)
In-Reply-To: 858xunjsws.fsf@emr.cs.iit.edu

reingold@emr.cs.iit.edu (Edward M. Reingold) writes:

> I would use
>
> &%%(let ((dayname (calendar-day-of-week date))
>          (day (extract-calendar-day date)))
>      (and (memq dayname '(2 4))
>           (diary-block 1 23 2006 5 8 2006))) 1:30pm-2:20pm teach Bldg 1

Thank you very much for the functions.  They work quite well.

If I do this,

&%%(progn (defun fall-quarter () (diary-block 9 27 2006 12 8 2006)) nil)
&%%(progn (defun winter-quarter () (diary-block 1 3 2006 3 10 2006)) nil)
&%%(progn (defun spring-quarter () (diary-block 3 27 2006 6 2 2006)) nil)

how can I form the union of those three diary-blocks?  I tried 'or' and
'cons', but I'm sure I was doing it incorrectly.  I tried looking over
the emacslisp-intro and emacs-lisp reference, but 'or' is a pretty
common word.  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

Thank you again.  If I've worn out my welcome, please disregard this.
You've already helped me greatly.

  reply	other threads:[~2005-12-15  8:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-13  1:19 diary sexp question bxf4
2005-12-13  2:31 ` Edward M. Reingold
2005-12-14  7:27   ` bxf4
2005-12-14 21:00     ` Edward M. Reingold
2005-12-15  8:13       ` bxf4 [this message]
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=m2u0da6an0.fsf@frost.local \
    --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).