From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stuart McLean Newsgroups: gmane.emacs.help Subject: Re: adding holidays to calendar Date: Mon, 19 Nov 2007 02:53:21 -0800 Message-ID: <87sl321p7i.fsf@makhector.hypnokush.org> References: <87zlxmtjnk.fsf@makhector.hypnokush.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1195469625 18287 80.91.229.12 (19 Nov 2007 10:53:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Nov 2007 10:53:45 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Rene Borchers Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 19 11:53:49 2007 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 1Iu4G9-0003CW-AN for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Nov 2007 11:53:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iu4Fv-00080T-K5 for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Nov 2007 05:53:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iu4Ff-00080H-UO for help-gnu-emacs@gnu.org; Mon, 19 Nov 2007 05:53:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iu4Fa-0007yG-If for help-gnu-emacs@gnu.org; Mon, 19 Nov 2007 05:53:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iu4Fa-0007yB-CM for help-gnu-emacs@gnu.org; Mon, 19 Nov 2007 05:53:10 -0500 Original-Received: from rv-out-0910.google.com ([209.85.198.190]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iu4FZ-000522-Qs for help-gnu-emacs@gnu.org; Mon, 19 Nov 2007 05:53:10 -0500 Original-Received: by rv-out-0910.google.com with SMTP id c27so1300300rvf for ; Mon, 19 Nov 2007 02:53:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:to:cc:subject:references:from:date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=r3hBqjD9svEh3O5eSYW6tx+1i+lmt8pd9Cm14pywsOA=; b=UglItPb+P+msMwpOlNPnS3i3rwLMJ2549q4nbMhiJhnXiPcCxmoOtJNPz9wGOADfW2yCnaTs6l8kj0ZMMsgSPVPg4LEP+amHXtNPafV0CiZtRwQY4jEx2xiXNDfgdmlh7nYwt0YThb5XPemQoFShp0ozjfs3LoDye27tfnIIVxg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:to:cc:subject:references:from:date:in-reply-to:message-id:user-agent:mime-version:content-type; b=fxJEqx1dxBcZEj2hvj2TND3O1ABGLPV27s7SY11m077aujfaYGaBUcGBOTuWvuZlNkvkH7Z0Q/AxpXMefKrqcOILOPgSoeuIzZHgBZvETDEGiRPOMxJOqwtXH7S3PHpABV8X8j+jHVb2xfcCCkmi5aBEA02IFDQgkRiGTxjyNVQ= Original-Received: by 10.140.207.2 with SMTP id e2mr1944843rvg.1195469588326; Mon, 19 Nov 2007 02:53:08 -0800 (PST) Original-Received: from makhector.hypnokush.org ( [24.68.150.26]) by mx.google.com with ESMTPS id b5sm715286rva.2007.11.19.02.53.07 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Nov 2007 02:53:07 -0800 (PST) Original-Received: by makhector.hypnokush.org (Postfix, from userid 1000) id BD36910071; Mon, 19 Nov 2007 02:53:21 -0800 (PST) In-Reply-To: (Rene Borchers's message of "18 Nov 2007 12\:42\:22 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:49339 Archived-At: > Hi, > > I am having problems adding holidays using the variable > `other-holidays'. I have tried setting this in customize, using (as an > example) Canadian Thanksgiving. In `other-holidays' using the > customize interface I put: > > ((holiday-float 10 1 2 "Canadian Thanksgiving")) and save. I evaluate > .emacs (which loads the custom file at the end) and test by entering > the calendar buffer and typing `h' on the 2nd Monday in October. It > comes up with "Columbus Day" so I assume that the regular holiday is > somehow clobbering the val of `other-holidays'? I still want to know > that it is Columbus day, however, so I don't want to remove that > holiday. > > If I unset the variable in customize, and set `other-holidays' in my > .emacs, then the custom file (loaded at the end of .emacs) seems to > clobber the setting with nil, but setting `other-holidays' after the > custom file is loaded still doesn't work. > > Does anyone have any idea what I might be doing wrong? > > Regards, > > Stuart >> Rene Borchers writes: >> >> Hi Stuart, >> >> This works for the Dutch local holidays >> >> (setq other-holidays >> '((holiday-fixed 8 28 "Gronings Ontzet") >> (holiday-fixed 4 30 "Koninginnedag") >> (holiday-fixed 5 14 "Valentijnsdag") >> (holiday-fixed 10 4 "Dierendag") >> ;; 2e zondag in mei >> (holiday-float 5 7 2 "Moederdag") >> ;; 3e zondag in juni >> (holiday-float 6 7 3 "Vaderdag") >> ;; 3e dinsdag in september >> (holiday-float 9 2 3 "Prinsjesdag") >> )) >> >> Rene Thanks for replying, Rene! If I steal some of the holidays from you, for example "Gronings Ontzet", they show up fine. There are no other holidays on that day. However, "Dierendag" seems to be clobbered by another holiday. I have Jewish, Islamic, and so on holidays set using `Customize', so I thought this might be the problem. However, unsetting these `all-hebrew-calendar-holidays' and so on does not seem to remove the holiday in question. As an example, "Dierendag" falls on 10 4. So does "Shemini Atzeret" which prevents (I guess) "Dierendag" from displaying. Unsetting `all-hebrew-calendar-holidays' does _not_ change this behaviour, i.e. `h' in a Calendar buffer still shows "Shemini Atzeret. I guess I must be missing something :-) but I'll have to dig further. Regards, Stuart