bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#46883: 28.0.50; calendar-holidays var setup errors


From: adam
Subject: bug#46883: 28.0.50; calendar-holidays var setup errors
Date: Fri, 05 Mar 2021 20:10:03 +0000
User-agent: Roundcube Webmail/1.3.16

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@gnus.org> wrote:

adam@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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]