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 21:59:00 +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="35657"; 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:05:42 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 1kfr7d-00099d-SN for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 22:05:41 +0100 Original-Received: from localhost ([::1]:57290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfr7X-0005jp-9B for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 16:05:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfr1o-0003yZ-0L for help-gnu-emacs@gnu.org; Thu, 19 Nov 2020 15:59:40 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:50773) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfr1g-0000w3-VK for help-gnu-emacs@gnu.org; Thu, 19 Nov 2020 15:59:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1605819540; bh=szfuANCbthdIc7z/d27+XoVsQnZBPKk1oeiC+hAjAns=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=N9QMh49PQgDr6oi3glYAV6E6irJaVl73YsFvO2WkdAGqHgSXDB5ZLqGXUUCDL8hvh pVsw4g7UAls9Lz4LTCGjnNXS8ECGmmgtkrw9rR8Msw/XFg28L6xedBEJ6vY3mKZKf9 ywRHdEMrtYGhlU9eA6Zl/qQH+fKZlZnDDl4BcyLY= 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 21:59:00 +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:i44+0UxWR5+v6jH9cW4JI3sw1l3Xl7/MaTSvoXrr6bvBYNRTEhGtTGvo5wv+WzZwFhqwP AaNcJSZiBQO5clpWh4YSyC550RYRhOifObGre7uZ5po4iDQXfkkiVU+/2D0yBcui9AgN75AWYJZN OMUcUMl6cSbkp6zB/qb2k0iC3EVwzkJAZLxryGX8lHxeKMoDR8AeXc+8yFKhhqnw2G+k7u7UZCMc 6i+gXvrIupVH+OI6IvNs19hks1p3chf+Mhj4mTIFzIfmc3Nnmn1B7n7EEGcKFfDG2wi/AoFSSqEl FU= X-UI-Out-Filterresults: notjunk:1;V03:K0:LgQnD72OsM0=:w3VdgaTXEUCwVax2wFq7RE OLRxrgSi5OfXsLrXcw5Hy44rPTIdbzbNt9ed2oHJfIigJqCMO3GomSo59PM5belTT2IJDYrPx /YTYB7s9T94/hWHueeUXcszdMNyTC56dr935vSxVeZrxu9tW0tuN4hmb23r3aPvybIs3M5nXh 7Z1eQWLlSUX+Y7SdDsC2uAtenerv4psBPkAKqqXkrTJ5gH4iTc9yo9kh24vAbXlsEP+iYaPZr bWk3pd2RD5U6dFzbyEVL1wmPLnqh9h5QWim7tU9Ql/X5Qg/QIcbp30/G/3qDXjon0PqlekZKo BthGxNoXJxRDaHhsobcY5TXX7C6mROxQ9w9SxusPuXl7DKDtF/cRGGt1aDjT9wVdYDB7ZmWyB ejNPbKCLRrG5HUqNtZs2f00AwfVn2FZOw+IJdPJW5d0JUUGNaSLZITMPvkFiJjfDbxzAu3a1z jtdVQeSh1boHoF/Mpu4ufekbweyc7sr3oZBSd3VVfihRJGuV7X2Th8B4mnxR8Gh88MU9Dkq80 DwmISbTgYcdSv0dWZsOZ7XwCmMFSGiItQW5qAdkc3xYd61x2ht5QMH/EIKD6/VCCPhuBGXcT8 66R6zmX/rox5I= Received-SPF: pass client-ip=212.227.15.18; 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:125409 Archived-At: This diary thing cropped up because I want to use Org-Capture to Select a date for "Scheduled: %^t\n". ("Tc" "Project Gunga Din" entry (file+headline "~/02agenda/rapid-capture.org" "Project") "* Gunga Din\n ** %^{Value |Augment|Include|Clarify|Organise}\n Title: %?\n Brief:\n Detail:\n # Traverse Calendar with S-, S-, S-, S-. Scheduled: %^t\n Entered: %T\n Link: %a\n") > Sent: Thursday, November 19, 2020 at 9:50 PM > From: "Michael Heerdegen" > To: "Christopher Dimech" > Cc: help-gnu-emacs@gnu.org, "Jean Louis" > 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. > > Michael. > >