From: Gijs Hillenius <gijs.hillenius@gmail.com>
To: Emacs-Devel@gnu.org
Subject: Re: calendar thinks 2007 == 2008
Date: Mon, 07 Apr 2008 22:26:53 +0200 [thread overview]
Message-ID: <87fxtxe7hu.fsf@hillenius.net> (raw)
In-Reply-To: <nd7if9o4oi.fsf@fencepost.gnu.org> (Glenn Morris's message of "Mon, 07 Apr 2008 15:17:33 -0400")
On 7 Apr 2008, Glenn Morris replied:
to what I wrote:
>> I'm use emacs-cvs, and erm, this could very well be my own doing, but
>> since the last update of my debian cvs package, my calendar block
>> appointments seem to randomly show up most or some other days. In any case
>> don't stop at the block end date.
>
> Recipe starting from emacs -Q and including minimal example diary file please.
>
> If the debian package is old, tests with the current CVS trunk are
> more useful.
Hello,
thx for the reply. That shows me the error is prolly in one of my
start-up files:
Here is what happens if I start
emacs-snapshot-gtk -Q
and then open the calendar and point to a date:
Bad sexp at line 941 in ~/diary: (cyclic-diary-block 09 02 2007 25 05 2007 7)
Preparing diary...done
And then I get this when I click on the date
%%(diary-block 27 01 2006 29 01 2006) appointments & stuff
%%(diary-block 23 4 2006 30 4 2006) stuff..
%%(diary-block 14 7 2007 29 7 2007) stuff ..
%%(diary-block 6 8 2007 23 8 2007) stuff
%%(diary-block 4 20 2008 4 23 2008) stuff
line 941 (indeed) is
&%%(cyclic-diary-block 09 02 2007 25 05 2007 7) stuff
which is a function in one of my files:
(defun cyclic-diary-block (sday smon syear eday emon eyear interv)
(let ((beg (calendar-absolute-from-gregorian (list smon sday syear)))
(end (calendar-absolute-from-gregorian (list emon eday eyear)))
(now (calendar-absolute-from-gregorian date))
(int interv))
(when (and (>= now beg)
(<= now end)
(= (mod (- now beg) int) 0))
t)))
Hm.
--
Who would have guessed reading and writing would pay off!
-- Homer, "Mr. Lisa Goes to Washington"
prev parent reply other threads:[~2008-04-07 20:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-07 18:18 calendar thinks 2007 == 2008 Gijs Hillenius
2008-04-07 19:17 ` Glenn Morris
2008-04-07 20:26 ` Gijs Hillenius [this message]
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=87fxtxe7hu.fsf@hillenius.net \
--to=gijs.hillenius@gmail.com \
--cc=Emacs-Devel@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 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).