From: Christopher Dimech <dimech@gmx.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: help-gnu-emacs@gnu.org, Jean Louis <bugs@gnu.support>
Subject: Re: Emacs Calendar - Removing holidays
Date: Thu, 19 Nov 2020 21:59:00 +0100 [thread overview]
Message-ID: <trinity-a0841178-8792-4c0f-9e73-e5369092a68a-1605819539970@3c-app-mailcom-bs14> (raw)
In-Reply-To: <87o8jtyst9.fsf@web.de>
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-<right>, S-<left>, S-<down>, S-<up>.
Scheduled: %^t\n Entered: %T\n Link: %a\n")
> Sent: Thursday, November 19, 2020 at 9:50 PM
> 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
>
> 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:59 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
2020-11-19 20:59 ` Christopher Dimech [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=trinity-a0841178-8792-4c0f-9e73-e5369092a68a-1605819539970@3c-app-mailcom-bs14 \
--to=dimech@gmx.com \
--cc=bugs@gnu.support \
--cc=help-gnu-emacs@gnu.org \
--cc=michael_heerdegen@web.de \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).