From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Emacs Calendar - Removing holidays Date: Thu, 19 Nov 2020 21:50:42 +0100 Message-ID: <87o8jtyst9.fsf@web.de> References: <878sax1feb.fsf@web.de> <87361518cw.fsf@web.de> <87y2ixyw1p.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13348"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org, Jean Louis To: Christopher Dimech Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 19 21:52:03 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfquQ-0003KR-Ot for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 21:52:02 +0100 Original-Received: from localhost ([::1]:40482 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfquP-0006cC-Ax for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 15:52:01 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36670) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfqti-0006aF-Vx for help-gnu-emacs@gnu.org; Thu, 19 Nov 2020 15:51:19 -0500 Original-Received: from mout.web.de ([212.227.15.3]:33771) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfqth-0006SM-0F for help-gnu-emacs@gnu.org; Thu, 19 Nov 2020 15:51:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1605819043; bh=6aZIfsOXfHbmR2M93BxB1MNywZ74V+eMgOPvlRpnuT4=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=EaAWIlxYu0OpclkDS1FAUO3BGYjIaJBFoCOAW8PortU3H24ShkuMQhBnODUrd61Kj pbBpdGHG5sZqfLnoRYT23wDLWQBKJKIx53eBtuDMcIHzdy/I/9dyszJ91TrrxFcmLK CL82nJlB+chZrEW8tK+u7emOF1yTY71TdZkQw0hU= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([94.218.219.247]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0Lr59f-1k1p6u2pmt-00edyd; Thu, 19 Nov 2020 21:50:43 +0100 In-Reply-To: (Christopher Dimech's message of "Thu, 19 Nov 2020 21:17:05 +0100") X-Provags-ID: V03:K1:FtKxc+vNsZwhSunU0OoxvBX7GzSWkjtnRhw/8jel8pQn+pm4Z0I KLJk368E3vVVv5iY/irMmPqN2IMz4D0z+vuQvQJngbaMUGlaCks2HIGckMWZQzQOt5cjeim b9BEZ2j5YCLuoNaU3L6ztPu6Lmu1hQIenqyktIXxMXNXNgoZ3koBNE6Y6Ogx3iRjdVPpW9X BDgiU5yI4squ8Q/z69xKQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:3keIIUDzwcY=:cT3KRTlo8hhDGqBo6qOUMq KpjJUPqWyMaE36zKlxNvUn0jTp/k51if62wLpEdwCNt05maXfc/Ap2Sp253W1LeaulkweUWJh V3fXsDS8udYiCIjAPY+PP9endlc+DE8OaxJ1hEW4vEeqgkibZUUcyzEzpwcgEIL0UuTf+3Xfd rMyH60TThj74j9n+9f5CVmie2SYRux3EIoqnZp3Rt3Aqa5ca62uAcrcK49NWji+km2Ea5jXSF Zg+VxEftkL/iy/VSsp03klDEY34/rADNjQtEUCfFykQCQR12tTeQAfb9rEg7cSOSUz0xwlJtb rnsO6QIQ4exiAIvQDGhndnchpW064LJy6xD8NYENde2la0BE/M4PMetU9aSNvkiMZi8SdknDA mbyy1L9iw16dhfWA0kOdwrvS2UnBep48tSf2/Z51b1n1cfT67wDke22VISSy769po61cu6Wa3 DqWjR9LkINT6tQwxZgjyRnXSsMLwcYYx48sZVna7g6aNc5atPL1wbStFC44+0HO7C6tlNnIG+ XeQkh7cNpJ+7UJwcbt/CfYOlPlVkLTdTMIkipFqVW88PT9iaQCiaCPc6DibhMplk1+W7J8VDb 5ATeRvZWT5GCKd0NXfeEOLXT6nYZvRQXPhh9Q4BRVSUc0Sig5vZTbWcU+WSNJQdfjIVrMbotA 7aMDiWPmLCzEz3eADRJg64fEJsbNBLuu995gXycaGhByWZfvhP1i9ZNDwW8Blgwy/lQmGusI6 XeY3RbV7df3C6crqYqtet7QrA181YHUsEtYkrlZwIwest9QGCY4hrI0Tt1a8ztbZ4AdTv1GT Received-SPF: pass client-ip=212.227.15.3; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:125408 Archived-At: Christopher Dimech writes: > Correct. But then I have additional dates I want marked anh have put them > as holidays, but cannot get the christian, hebrew etc to stop showing. I think I see now why your attempts failed. Emacs consults the variable `calendar-holidays' - and only that, when marking holidays. When that variable is initialized, the bindings of all the holiday-... variables are appended. That means that changing any of these variables later does not have an effect. So what you want is to change or customize `calendar-holidays' I think, e.g. by appending only some those holiday-... var values, or specifying your own stuff etc. The variable should be bound to a list of holiday style diary expressions, that's the only requirement. You could also add the lunar phases there, but I don't think that would allow you to change the color of the highlighting, you are limited to one highlighting style. Let me add: the code of calendar and diary is old, written in a style that is ok but nobody would write it like that today. And it has not been touched that much in the last years, probably because we also have org-mode now (and the agenda views, which offer a super set of calendar features). That means that the behavior is sometimes a bit more 70s like than that of newer stuff. I'm a fan of diary symbolic expressions. They allow you to specify anything that Lisp allows, quite powerful. org-mode also supports using them in time stamps or so. Michael.