emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-mac-iCal.el uses hard-coded diary file name
@ 2009-11-01 16:15 Doug Hellmann
  2009-11-01 17:20 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Doug Hellmann @ 2009-11-01 16:15 UTC (permalink / raw)
  To: org-mode mailing list; +Cc: suckling


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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-01 17:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-01 16:15 org-mac-iCal.el uses hard-coded diary file name Doug Hellmann
2009-11-01 17:20 ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).