[Bug: 21.4.19] evaluation of diary sexp expressions

Jeff Miller jmiller at cablespeed.com
Sun Feb 10 12:52:18 EST 2008


michele.zaffalon at gmail.com writes:
 > I copy paste the bug report generated by XEmacs.
 > 
 > ================================================================
 > Dear Bug Team!
 > 
 > the following entry in the ~/diary, copied from the manual
 > "%%(= 5 (calendar-day-of-week date)) Salsa"
 > is evaluated as
 > "%%(= 5 (calendar-day-of-week date)) Salsa"
 > when I press M-x diary
 > 
 > and
 > "%%(and (= 5 (calendar-day-of-week date))
 >        (diary-block 7 2 2008 13 2 2008)) party"
 > as
 > "       (diary-block 7 2 2008 13 2 2008)) party"
 > 
 > I have also checked
 > "%%(diary-anniversary 9 2 2004) Nino is %d%s"
 > and again the result is
 > "%%(diary-anniversary 9 2 2004) Nino is %d%s".
 > 
 > The init file custom.el is
 > 
 > (custom-set-variables
 >  '(font-lock-mode t nil (font-lock))
 >  '(line-number-mode t)
 >  '(mark-diary-entries-in-calendar t))
 > (custom-set-faces)
 > 
 > (setq european-calendar-style t)
 > 
 > I don't seem to be doing anything wrong though. Please contact me
 > if you have any question.
 > 
 > Best regards,
 > 
 > michele

Hello Michele,

  I think the first thing you should try is adding this to your xemacs
  startup file:

(add-hook 'diary-display-hook 'fancy-diary-display)

  Then your diary display will look like:

Friday, 15 February 2008
========================
Salsa

You second example will work better also.  Though, it is a little
confusing.  It will only be valid on Feb 8, 2008.  I'm not sure why
you specify the block when only 1 date will be selected.

I get this for your 3rd example:

Saturday, 9 February 2008
=========================
Nino is 4th 

Enjoy!

-- 
Jeff Miller
jmiller at cablespeed.com



More information about the XEmacs-Beta mailing list