From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: Emacs Calendar - Removing holidays Date: Thu, 19 Nov 2020 22:11:18 +0100 Message-ID: References: <878sax1feb.fsf@web.de> <87361518cw.fsf@web.de> <87y2ixyw1p.fsf@web.de> <87o8jtyst9.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16055"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org, Jean Louis To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 19 22:19:26 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 1kfrKw-00044E-Cd for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 22:19:26 +0100 Original-Received: from localhost ([::1]:57144 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfrKv-0000kY-6A for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 16:19:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42914) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfrDd-000723-BT for help-gnu-emacs@gnu.org; Thu, 19 Nov 2020 16:11:54 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:54589) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfrDb-0005ND-8E for help-gnu-emacs@gnu.org; Thu, 19 Nov 2020 16:11:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1605820278; bh=qSry0OxO2qoul6rfM3/MFgS4eKKIyxmYGlf07m2TeLU=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=KY9U+vS3k7roGOVfvImpj+9cp8p8RDVA9f735wnIdINy5fBVTY5iVtn2dpNgZc3ZA 3uRvQ2Vb1agcVTya3Z/yXE1iAqdNQO346FEOgIbuW6CelIJhgn2v6nUHiEAAs3asbD IMqxpEFncBgfsMeaI/5Myvdj2exNOJuCeG5fHhnY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs14.server.lan [172.19.170.182]) (via HTTP); Thu, 19 Nov 2020 22:11:18 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <87o8jtyst9.fsf@web.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:4fxfSiaiLXbmri6EyL83vnHmN5nspupApWptCc34OUBzLywgNf9oR15SQJBjn2tHimsJ3 feu/TXkZadE8yffB12WyHg2xQgkzDFjzJKwzzjAAddHPua8hYkVI+qh67CUOTDkVZWcv3R6j/VF2 qUeda6pNrpPOdtFp6gs25JLNrm/V9RNOlq+InJjbrz5EbUGWN+d/5UHcGimqbChzswgfneNRMZBi p4nFic/YD4cu2/qj2wmYa1rclzo2Rk8z5akxCeiL64657Yu0tFwtuD3QcjUnwCwm2He/zbmqOa26 iI= X-UI-Out-Filterresults: notjunk:1;V03:K0:AfHv56CTaGI=:5tKqd8Qwh4wsk1aM8ghe6i 2d2Z8JxpulSFJFKapB0vhlW2l5W7UC2KL4WP19fHUCz+AW3LDe8i5sKmFh6mimVojVZKgEbW2 9Mton0q4yi4PWeaYy2sh2rHhwjtJIIqi6ns0RAzIqbXTcug8AUx5hyFqdIlGZ+qXCfZq2atKC NN/xYthbCFwoDmT3jo98AJd7st+eIUC/ens2KvDpTojTnwHBbgTZMsL4Wn8G1RzLNbgOiO90Z XT2mfyic5p6G8azqGBMX6rxk6OMf3Kcwfm9mMQo/DkaZBvtm1iZ+wZDOst3TFiTL2d7tTeVx0 j6YYeGlo2IH/lckt5udRQ49M2ecgymSovqNEahttkRrrN+CAImMNWfgH8RWtdp34Xp85IOIMZ sRak7SbjavnLLPPW9tkvOZJs8WrKoXuy3Av+Lms1Ki3kHE59wdguF+t4F7OjHJHyutWO2Ix55 esLwfFvshGz8LiSl7abXDBWnMGbUBSj2ao+l5vvr01txNOKWYL4I9IWTa1HRMt15l4om9JDco b9+BcnlM4wKNgV26um7qe+XeZ+TZQZQWIsDyiOh5irkm+gYADj+89aYF/TOEiqTzsDtTV/tTY wLcyJfYO881zE= Received-SPF: pass client-ip=212.227.17.20; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-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:125410 Archived-At: > Sent: Thursday, November 19, 2020 at 9:50 PM > From: "Michael Heerdegen" > To: "Christopher Dimech" > Cc: "Jean Louis" , help-gnu-emacs@gnu.org > Subject: Re: Emacs Calendar - Removing holidays > > 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. Could you give some examples of "diary symbolic expressions" and how they would be useful for setting work dates. I am particularly interested in marking dates that are available for deadlines, meetings. And another for those already set with deadlines, meetings, etc. > Michael. >