From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ross@rosslaird.info (Ross A. Laird) Newsgroups: gmane.emacs.help Subject: Re: Exception dates in diary? Date: Sat, 19 Jan 2008 12:33:37 -0800 Message-ID: <87lk6ld07y.fsf@rosslaird.info> References: <8763xq904o.fsf@rosslaird.info> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1200774851 556 80.91.229.12 (19 Jan 2008 20:34:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Jan 2008 20:34:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 19 21:34:30 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JGKOb-00026f-I7 for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Jan 2008 21:34:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JGKOC-0005QN-6E for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Jan 2008 15:34:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JGKNu-0005OL-NQ for help-gnu-emacs@gnu.org; Sat, 19 Jan 2008 15:33:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JGKNt-0005Na-PU for help-gnu-emacs@gnu.org; Sat, 19 Jan 2008 15:33:45 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JGKNt-0005NX-Jw for help-gnu-emacs@gnu.org; Sat, 19 Jan 2008 15:33:45 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JGKNt-0001b7-9r for help-gnu-emacs@gnu.org; Sat, 19 Jan 2008 15:33:45 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JGKNp-0002A3-Ms for help-gnu-emacs@gnu.org; Sat, 19 Jan 2008 20:33:41 +0000 Original-Received: from h24-207-46-42.dlt.dccnet.com ([24.207.46.42]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 19 Jan 2008 20:33:41 +0000 Original-Received: from ross by h24-207-46-42.dlt.dccnet.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 19 Jan 2008 20:33:41 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: h24-207-46-42.dlt.dccnet.com User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:vAE8i7Qc96iAY4Pd5sxBvM9jlRc= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:50829 Archived-At: Tom Tromey writes: >>>>>> "Ross" == Ross A Laird writes: > > Ross> %%(and (= 1 (calendar-day-of-week date)) > Ross> (diary-block 01 07 2008 03 10 2008)) 18:30-21:30 Class > > Ross> How do I modify this so that I can add the exception dates and have the > Ross> calendar not show a class on a holiday? > > Maybe add in (not (check-calendar-holidays date))? > I'm just going by (info "(emacs)Sexp Diary Entries") and a little > browsing of the calendar sources. Yes, I have seen this and other more complex options based on holiday dates. But I'm in Canada, and the holidays are sometimes different, so I need some way of specifying exact dates for exception. Also my calendar shows me some holidays I don't even recognize... Oh well, I suppose I can just do it manually. Thanks for the input. Ross > > Tom -- Ross A. Laird, PhD www.rosslaird.info