help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: diary sexp question


From: Edward M. Reingold
Subject: Re: diary sexp question
Date: 15 Dec 2005 13:30:15 -0600
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

>>>>> "b" == bxf4  <bxf4@yahoo.com> writes:


    b> If I do this,

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

    b> how can I form the union of those three diary-blocks?

You can put all of those defuns in one progn:

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

Then you can have a diary entry

&%%(or (fall-quarter) (winter-quarter) (spring-quarter)) Blah blah

-- 

Professor Edward M. Reingold                Email: reingold@iit.edu
Chairman, Department of Computer Science    Voice: (312) 567-3309
Illinois Institute of Technology            Assistant: (312) 567-5152
Stuart Building                             Fax:   (312) 567-5067
10 West 31st Street, Suite 236
Chicago, IL  60616-3729  U.S.A.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]