unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Bad holiday with (calendar-mark-holidays)
@ 2020-11-19 13:22 Christopher Dimech
  2020-11-19 13:46 ` tomas
  0 siblings, 1 reply; 2+ messages in thread
From: Christopher Dimech @ 2020-11-19 13:22 UTC (permalink / raw)
  To: Help Gnu Emacs

I am getting many warnings about "Bad holiday list item:"
when I call

(require 'calendar)
;;(require 'holidays)
(setq holiday-solar-holidays
   '((holiday-fixed 11 22 "First Quarter Moon")) )
(calendar-mark-holidays)







Error (holidays): Bad holiday list item: (holiday-fixed 1 1 New Year's Day)
Error: (void-variable displayed-month)

Error (holidays): Bad holiday list item: (holiday-float 1 1 3 Martin Luther King Day)
Error: (void-variable displayed-month)

Error (holidays): Bad holiday list item: (holiday-fixed 2 2 Groundhog Day)
Error: (void-variable displayed-month)

Error (holidays): Bad holiday list item: (holiday-fixed 2 14 Valentine's Day)
Error: (void-variable displayed-month)




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bad holiday with (calendar-mark-holidays)
  2020-11-19 13:22 Bad holiday with (calendar-mark-holidays) Christopher Dimech
@ 2020-11-19 13:46 ` tomas
  0 siblings, 0 replies; 2+ messages in thread
From: tomas @ 2020-11-19 13:46 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 705 bytes --]

On Thu, Nov 19, 2020 at 02:22:20PM +0100, Christopher Dimech wrote:
> I am getting many warnings about "Bad holiday list item:"
> when I call
> 
> (require 'calendar)
> ;;(require 'holidays)
> (setq holiday-solar-holidays
>    '((holiday-fixed 11 22 "First Quarter Moon")) )
> (calendar-mark-holidays)
> 
> 
> 
> 
> 
> 
> 
> Error (holidays): Bad holiday list item: (holiday-fixed 1 1 New Year's Day)
> Error: (void-variable displayed-month)

The variable `displayed-month' is local to a calendar
buffer. Try to evaluate this thing in the context of a
calendar buffer.

Whether things are working as intended or this is to be
considered as a bug... I don't know.

Cheers
 - t 

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-19 13:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-19 13:22 Bad holiday with (calendar-mark-holidays) Christopher Dimech
2020-11-19 13:46 ` tomas

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