From: Michael Heerdegen <michael_heerdegen@web.de>
To: Christopher Dimech <dimech@gmx.com>
Cc: help-gnu-emacs@gnu.org, Jean Louis <bugs@gnu.support>
Subject: Re: Emacs Calendar - Removing holidays
Date: Thu, 19 Nov 2020 21:50:42 +0100 [thread overview]
Message-ID: <87o8jtyst9.fsf@web.de> (raw)
In-Reply-To: <trinity-e6deae3c-9d85-45d3-b642-1de7b123fef2-1605817025876@3c-app-mailcom-bs14> (Christopher Dimech's message of "Thu, 19 Nov 2020 21:17:05 +0100")
Christopher Dimech <dimech@gmx.com> 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.
next prev parent reply other threads:[~2020-11-19 20:50 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-19 13:56 Emacs Calendar - Removing holidays Christopher Dimech
2020-11-19 14:02 ` Christopher Dimech
2020-11-19 14:09 ` Jean Louis
2020-11-19 15:21 ` Christopher Dimech
2020-11-19 15:32 ` Jean Louis
2020-11-19 15:37 ` Christopher Dimech
2020-11-19 15:43 ` Christopher Dimech
2020-11-19 16:05 ` Jean Louis
2020-11-19 16:38 ` Christopher Dimech
2020-11-19 16:26 ` Michael Heerdegen
2020-11-19 16:46 ` Christopher Dimech
2020-11-19 17:21 ` Christopher Dimech
2020-11-19 18:58 ` Michael Heerdegen
2020-11-19 19:06 ` Jean Louis
2020-11-19 19:40 ` Michael Heerdegen
2020-11-19 19:52 ` Jean Louis
2020-11-19 20:17 ` Christopher Dimech
2020-11-19 20:50 ` Michael Heerdegen [this message]
2020-11-19 20:59 ` Christopher Dimech
2020-11-19 21:11 ` Christopher Dimech
2020-11-21 19:47 ` Michael Heerdegen
2020-11-21 20:16 ` Christopher Dimech
2020-11-19 20:24 ` Michael Heerdegen
2020-11-19 20:36 ` Christopher Dimech
2020-11-19 19:52 ` Christopher Dimech
2020-11-19 20:09 ` Jean Louis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o8jtyst9.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=bugs@gnu.support \
--cc=dimech@gmx.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.