all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Rüdiger Sonderfeld" <ruediger@c-plusplus.de>
To: <help-gnu-emacs@gnu.org>
Subject: Problem using calendar-check-holidays
Date: Tue, 04 Oct 2011 16:24:42 +0200	[thread overview]
Message-ID: <89416cdd88535335a55483289e0e5e0f@pseudoterminal.org> (raw)

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




             reply	other threads:[~2011-10-04 14:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-04 14:24 Rüdiger Sonderfeld [this message]
2011-10-10 19:19 ` Problem using calendar-check-holidays Rüdiger Sonderfeld

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=89416cdd88535335a55483289e0e5e0f@pseudoterminal.org \
    --to=ruediger@c-plusplus.de \
    --cc=help-gnu-emacs@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.