From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?R=C3=BCdiger_Sonderfeld?= Newsgroups: gmane.emacs.help Subject: Problem using calendar-check-holidays Date: Tue, 04 Oct 2011 16:24:42 +0200 Message-ID: <89416cdd88535335a55483289e0e5e0f@pseudoterminal.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1317744957 11842 80.91.229.12 (4 Oct 2011 16:15:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 Oct 2011 16:15:57 +0000 (UTC) To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 04 18:15:54 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RB7eq-0003sA-Pn for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Oct 2011 18:15:52 +0200 Original-Received: from localhost ([::1]:45065 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RB7ep-0005Df-Vq for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Oct 2011 12:15:51 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RB5vN-0008Fu-LH for help-gnu-emacs@gnu.org; Tue, 04 Oct 2011 10:24:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RB5vJ-00073E-BR for help-gnu-emacs@gnu.org; Tue, 04 Oct 2011 10:24:49 -0400 Original-Received: from pseudoterminal.org ([213.239.220.147]:51171) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RB5vJ-00072t-5Z for help-gnu-emacs@gnu.org; Tue, 04 Oct 2011 10:24:45 -0400 Original-Received: from webmail.pseudoterminal.org (localhost [127.0.0.1]) by pseudoterminal.org (Postfix) with ESMTPSA id 3C8F08BC44E; Tue, 4 Oct 2011 16:24:42 +0200 (CEST) X-Sender: ruediger@c-plusplus.de User-Agent: RoundCube Webmail/0.2.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 213.239.220.147 X-Mailman-Approved-At: Tue, 04 Oct 2011 12:15:49 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82452 Archived-At: 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) =3D> 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=C3=BCdiger