From: adam--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Stephen Berman <stephen.berman@gmx.net>
Cc: Lars Ingebrigtsen <larsi@gnus.org>, 46883@debbugs.gnu.org
Subject: bug#46883: 28.0.50; calendar-holidays var setup errors
Date: Fri, 05 Mar 2021 20:10:03 +0000 [thread overview]
Message-ID: <3e088e1783512d70d80e48accf52a722@faryna.io> (raw)
In-Reply-To: <8735x97h2a.fsf@rub.de>
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
next prev parent reply other threads:[~2021-03-05 20:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-03 0:40 bug#46883: 28.0.50; calendar-holidays var setup errors Adam Faryna via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-03-03 15:00 ` Lars Ingebrigtsen
2021-03-03 23:59 ` Adam Faryna via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-03-04 1:54 ` adam@faryna.io via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-03-04 11:37 ` Lars Ingebrigtsen
2021-03-05 0:34 ` adam--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-03-05 13:34 ` Lars Ingebrigtsen
2021-03-05 15:31 ` Stephen Berman
2021-03-05 20:10 ` adam--- via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2021-03-06 12:36 ` Lars Ingebrigtsen
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=3e088e1783512d70d80e48accf52a722@faryna.io \
--to=bug-gnu-emacs@gnu.org \
--cc=46883@debbugs.gnu.org \
--cc=adam@faryna.io \
--cc=larsi@gnus.org \
--cc=stephen.berman@gmx.net \
/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.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).