GNU bug report logs - #46883
28.0.50; calendar-holidays var setup errors

Previous Next

Package: emacs;

Reported by: Adam Faryna <adam <at> faryna.io>

Date: Wed, 3 Mar 2021 00:54:02 UTC

Severity: normal

Tags: moreinfo

Found in version 28.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: adam <at> faryna.io
To: Stephen Berman <stephen.berman <at> gmx.net>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 46883 <at> debbugs.gnu.org
Subject: bug#46883: 28.0.50; calendar-holidays var setup errors
Date: Fri, 05 Mar 2021 20:10:03 +0000
Thanks Steven, that was it. I ended up setting calendar-holidays this 
way:

(setq calendar-holidays (append calendar-holidays
                        japanese-holidays
                        polish-holidays
                        english-holidays
                        general-holidays
                        holiday-christian-holidays
                        holiday-solar-holidays))

Thanks a lot for your support guys!


On 2021-03-05 15:31, Stephen Berman wrote:
> On Fri, 05 Mar 2021 14:34:15 +0100 Lars Ingebrigtsen <larsi <at> gnus.org> 
> wrote:
> 
>> adam <at> faryna.io writes:
>> 
>>> I did but nothing new shows up.
>>> 
>>> Also while Emacs is running it brings to the front the *Warning*
>>> buffer with this calendar errors, as it probably continue try to
>>> initialize it.
>> 
>> Very odd.  Does anybody else have any suggestions for debugging this?
> 
> You can put this in your init file:
> 
> (setq calendar-debug-sexp t)
> 
> I made an init file consisting of the sexps in the OP (except for the
> ones involving japanese-holidays, since I don't have that package),
> added the above for debugging, started Emacs, did `M-x calendar', typed
> `h' on a date in the Calendar buffer, and got this backtrace:
> 
> 
> 
> The problem seems to be this sexp from the OP's post:
> 
> (setq
>  holiday-local-holidays nil
>  calendar-christian-all-holidays-flag t
>  calendar-holidays (list
>                     japanese-holidays
>                     polish-holidays
>                     english-holidays
>                     ;; holiday-local-holidays
>                     general-holidays
>                     holiday-christian-holidays
>                     holiday-solar-holidays)
>  ;; calendar-mark-holidays-flag t
>  calendar-week-start-day 1
>  calendar-date-style 'european)
> 
> Using `list' results in an unsuitable list structure.  I replaced it by
> `append' (again omitting japanese-holidays), restarted Emacs, did `M-x
> calendar', typed `h' on March 10 in the Calendar buffer, and the echo
> area displayed this message:
> 
> Wednesday, 10 March 2021:  Dzień Mężczyzn
> 
> So I guess that should fix the OP's problem.
> 
> Steve




This bug report was last modified 4 years and 138 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.