emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: jorge.alfaro-murillo@yale.edu (Jorge A. Alfaro-Murillo)
To: emacs-orgmode@gnu.org
Cc: help-gnu-emacs@gnu.org
Subject: Re: org-calendar-holiday and local holidays
Date: Mon, 02 Mar 2015 10:26:37 -0500	[thread overview]
Message-ID: <87y4nfzahe.fsf@yale.edu> (raw)
In-Reply-To: 871tl8s0f0.fsf@gmail.com

Alexis writes:

> 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.

You do not need to add that, calendar-holidays appends 
holiday-local-holidays when holidays.el is loaded, just restart 
emacs. 

> 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 
> .... ?

It is also not a documentation bug, at least in my emacs 
(25.0.50.1) the documentation of calendar-holidays says clearly:

"Note that these variables [`holiday-other-holidays', 
`holiday-general-holidays', `holiday-local-holidays', 
`holiday-christian-holidays', `holiday-hebrew-holidays', 
`holiday-islamic-holidays', `holiday-bahai-holidays', 
`holiday-oriental-holidays' and `holiday-solar-holidays'] have no 
effect on `calendar-holidays' after it has been set (e.g. after 
the calendar is loaded). In that case, customize 
`calendar-holidays' directly."

Best,

-- 
Jorge.

  reply	other threads:[~2015-03-02 15:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-01 22:29 org-calendar-holiday and local holidays Melleus
2015-03-02  0:33 ` Alexis
2015-03-02 15:26   ` Jorge A. Alfaro-Murillo [this message]
2015-03-02 22:23     ` Alexis
2015-03-02 17:32   ` Melleus
2015-03-02 21:58     ` Jorge A. Alfaro-Murillo
2015-03-02 22:54       ` Alexis
2015-03-02 23:53         ` Jorge A. Alfaro-Murillo
2015-03-03 13:43       ` Melleus
2015-03-02  1:40 ` Nick Dokos
2015-03-02 15:34 ` Jorge A. Alfaro-Murillo
2015-03-02 17:30   ` 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.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y4nfzahe.fsf@yale.edu \
    --to=jorge.alfaro-murillo@yale.edu \
    --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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).