[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem using calendar-check-holidays
From: |
Rüdiger Sonderfeld |
Subject: |
Problem using calendar-check-holidays |
Date: |
Tue, 04 Oct 2011 16:24:42 +0200 |
User-agent: |
RoundCube Webmail/0.2.1 |
Hello,
I'm trying to check whether a certain date is a holiday. I'm using
calendar-check-holidays, but it fails to handle my holiday list.
Here is a simple example to demonstrate the problem
(let ((calendar-holidays '((holiday-fixed 1 1 "New Year")))
(calendar-debug-sexp t)
(d (calendar-absolute-from-gregorian '(1 1 2012))))
(calendar-check-holidays (list d)))
I get the following backtrace
Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
holiday-fixed(1 1 "New Year")
eval((holiday-fixed 1 1 "New Year"))
calendar-holiday-list()
calendar-check-holidays((734503))
(let ((calendar-holidays (quote ((holiday-fixed 1 1 "New Year"))))
(calendar-debug-sexp t) (d (calendar-absolute-from-gregorian (quote (1 1
2012))))) (calendar-check-holidays (list d)))
eval((let ((calendar-holidays (quote ((holiday-fixed 1 1 "New Year"))))
(calendar-debug-sexp t) (d (calendar-absolute-from-gregorian (quote (1 1
2012))))) (calendar-check-holidays (list d))) nil)
eval-last-sexp-1(nil)
eval-last-sexp(nil)
call-interactively(eval-last-sexp nil nil)
I'm using (emacs-version) => GNU Emacs 24.0.50.1 (x86_64-pc-linux-gnu, GTK+
Version 2.24.4) of 2011-09-26 on dfontaine-laptop, modified by Debian
What am I doing wrong and how to correctly use calendar-check-holidays?
btw. it would be great if one could specify the list of holidays
calendar-check-holidays should use.
Regards,
Rüdiger
- Problem using calendar-check-holidays,
Rüdiger Sonderfeld <=