emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] org-mac-iCal.el uses hard-coded diary file name


From: Doug Hellmann
Subject: [Orgmode] org-mac-iCal.el uses hard-coded diary file name
Date: Sun, 1 Nov 2009 11:15:29 -0500


org-mac-iCal.el doesn't use the diary-file variable to save the diary it generates, so if the variable isn't set to the same path as the hard-coded value in the library the diary entries don't show up in your agenda view.

I think the patch below fixes the problem.

Thanks,
Doug



diff --git a/contrib/lisp/org-mac-iCal.el b/contrib/lisp/org-mac-iCal.el
index 056d73d..fa4e763 100644
--- a/contrib/lisp/org-mac-iCal.el
+++ b/contrib/lisp/org-mac-iCal.el
@@ -202,7 +202,8 @@ date range so that Emacs calendar view doesn't grind to a ha
     (goto-line 1)
     (write-region (point-min) (point-max) string))

-  (icalendar-import-file string (expand-file-name "~/.emacs.d/diary")))
+  (icalendar-import-file string diary-file))
+;; (icalendar-import-file string (expand-file-name "~/.emacs.d/ diary")))

 (defun omi-kill-diary-buffer (list)
   (mapc







reply via email to

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