emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problems with diary, appointments, and european-calendar


From: Glenn Morris
Subject: Re: problems with diary, appointments, and european-calendar
Date: Tue, 17 Feb 2004 23:47:04 +0000
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Joe Corneli wrote:

> This is my diary/appointment configuration. It was working just
> recently -- I mean, I could write down appointments in my diary and
> get reminders about them. Not so after some small rearrangements to
> my .emacs & load files.

Is your CVS tree up-to-date? I simplified the activation of appt.el a
month or so ago, but accidentally broke backwards compatabilty for a
short time, sorry.

> (require 'appt)
> (setq appt-issue-message t)
> (setq appt-message-warning-time 1)
> (setq appt-display-interval 1)
> (setq appt-visible t)
> (setq appt-msg-window nil)
> (display-time)
> ;; makes "d" in the calendar reload the appt list.
> (add-hook 'diary-hook 'appt-make-list)
> (diary 0)

FYI, the new way to do the above is just:

(setq appt-display-format 'echo)
      appt-message-warning-time 1)
      appt-display-interval 1)

(appt-activate 1)

but the old way should still work (and seems to for me). With the
proviso that the appt-msg-window setting won't be honoured because I
was thinking user values would be set before loading appt. I'll have
to think again about that bit...

> Next issue: the function european-calendar (not available if emacs
> is started with commandline options -q --no-site-file) doesn't
> appear to do anything.

It does what it should here. It doesn't display a calendar if one is
not currently being displayed (if that's what you mean) but that's not
what it's for. It re-initializes some variables and refreshes the
modeline of a visible calendar.

It's only needed if you want to swap between US and Euro calendar
formats after loading the calendar package, so there's no need for it
to be defined in a vanilla Emacs. If you haven't yet loaded the
calendar package, then you just need to set the
european-calendar-style variable.

> In GNU Emacs 21.3.50.1 (powerpc-apple-darwin7.2.0, X toolkit)
>  of 2004-01-31 on hope-of-a-stone.local




reply via email to

[Prev in Thread] Current Thread [Next in Thread]