Hi there, folks !
Don't know if anybody has already addressed the following topic, I'm
pretty new to this list.
1) Is there a maintainer for the calendar package ? (Oops, that seems
to be a dangerous word these days ..)
2) Setting the calendar date-style to european, i.e.,
(setq calendar-date-display-form
'((if dayname (concat dayname ", "))
day " " monthname " " year))
breaks `view-diary-entries', since normally day entries in the diary
file don't have daynames:
(defun insert-diary-entry (arg)
"Insert a diary entry for the date indicated by point.
Prefix arg will make the entry nonmarking."
(interactive "P")
(make-diary-entry (calendar-date-string (calendar-cursor-to-date t) t t)
arg))
The third argument of the call to calendar-date-string prohibits
generating the dayname. Why isn't this a settable variable ?
A small workaround:
;; grr, messing around with the calendar-date-display-form breaks
;; inserting dates that are matched by calendars `view-diary-entries'.
(defvar insert-diary-entry-with-dayname t
"Whether inserting diary entries from the calendar should insert daynames.")
(defun insert-diary-entry (arg)
"Insert a diary entry for the date indicated by point.
Prefix arg will make the entry nonmarking."
(interactive "P")
(make-diary-entry
(calendar-date-string
(calendar-cursor-to-date t) t insert-diary-entry-with-dayname)
arg))
Then I can do:
(setq insert-diary-entry-with-dayname nil)
and am happy again.
A similar argument applies to the second parameter, which enables
abbreviations. Again, I think that it should be settable.
In general, I think that making calendar/diary more language-aware (or
at least, aware of user-settings) is a good idea.
Any comments ?
Holger
--
---
http://www.coling.uni-freiburg.de/~schauer ---
Why people hate using Lisp:
"Are people suffering from parenthophobia-by-proxy, mistaking
`parens' for `parents'?" - Erik Naggum in comp.emacs.xemacs