changeset 93790:adddea858c0d

Update for diary-lib name changes.
author Glenn Morris <rgm@gnu.org>
date Sun, 06 Apr 2008 20:53:31 +0000
parents 664ca9007b13
children 4ef65ad699dc
files lisp/calendar/icalendar.el
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/calendar/icalendar.el	Sun Apr 06 20:53:14 2008 +0000
+++ b/lisp/calendar/icalendar.el	Sun Apr 06 20:53:31 2008 +0000
@@ -2126,8 +2126,11 @@
       (unless diary-file
         (setq diary-file
               (read-file-name "Add appointment to this diary file: ")))
-      ;; Note: make-diary-entry will add a trailing blank char.... :(
-      (make-diary-entry string non-marking diary-file)))
+      ;; Note: diary-make-entry will add a trailing blank char.... :(
+      (funcall (if (fboundp 'diary-make-entry)
+                   'diary-make-entry
+                 'make-diary-entry)
+               string non-marking diary-file)))
   ;; return diary-file in case it has been changed interactively
   diary-file)