From: Alexis <flexibeast@gmail.com>
To: emacs-orgmode@gnu.org
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: [O] org-calendar-holiday and local holidays
Date: Mon, 02 Mar 2015 11:33:39 +1100 [thread overview]
Message-ID: <871tl8s0f0.fsf@gmail.com> (raw)
In-Reply-To: <87pp8sz70q.fsf@hornet.workgroup>
[Crossposted to the help-gnu-emacs list, for possible advice on
whether or not this involves a bug in GNU Emacs.]
On 2015-03-02T09:29:09+1100, Melleus said:
M> I'm afraid to ask. But... Anyway. Does
%%(org-calendar-holiday) M> know about holiday-local-holidays?
I'm not programmer, sorry. I've M> set up those local holidays
but cannot see them in my agenda.
You can examine the definition of an ELisp function by:
1. typing C-h f whilst on a function;
2. typing RET to take you to the documentation for that function;
3. typing TAB then RET to take you to the function definition.
Starting with point on `org-calendar-holiday`, we find that:
- `org-calendar-holiday` calls (if available)
`calendar-check-holidays` or (otherwise)
`check-calendar-holidays`;
- `calendar-check-holidays` calls `calendar-holiday-list`;
- `calendar-holiday-list` makes use of the `calendar-holidays`
variable.
We can examine the documentation for the `calendar-holidays`
variable by moving point onto and typing C-h v RET. On my setup
(manually compiled Emacs 24.4.1 on Debian Wheezy(+updates) x86_64
together with Org 20150223), the documentation suggests that
`calendar-holidays` makes use of the `holiday-local-holidays`
variable; and the documentation for `holiday-local-holidays`
merely refers us back to the documentation for
`calendar-holidays`.
When i scroll down to look at the current value of
`calendar-holidays`, however, i see that neither the current value
nor the original value makes any reference to the
`holiday-local-holidays` variable. And indeed, when i examine my
agenda for next Monday, which is a local holiday i've specified in
`holiday-local-holidays`, i can't see that local holiday. To fix
this, i use M-: to evaluate:
(setq calendar-holidays (append calendar-holidays
holiday-local-holidays))
after which the local holiday next Monday appears in my Org
agenda.
Given the documentation for the `calendar-holidays` variable, the
fact that i need to manually add the value of the
`holiday-local-holidays` variable to `calendar-holidays` seems to
me like it might be a coding or documentation bug in Emacs .... ?
Alexis.
next parent reply other threads:[~2015-03-02 0:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87pp8sz70q.fsf@hornet.workgroup>
2015-03-02 0:33 ` Alexis [this message]
2015-03-02 15:26 ` org-calendar-holiday and local holidays Jorge A. Alfaro-Murillo
2015-03-02 22:23 ` [O] " Alexis
2015-03-02 17:32 ` Melleus
2015-03-02 21:58 ` Jorge A. Alfaro-Murillo
2015-03-02 22:54 ` [O] " Alexis
2015-03-02 23:53 ` Jorge A. Alfaro-Murillo
2015-03-03 13:43 ` Melleus
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=871tl8s0f0.fsf@gmail.com \
--to=flexibeast@gmail.com \
--cc=emacs-orgmode@gnu.org \
--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.
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).