From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-mac-iCal.el uses hard-coded diary file name Date: Sun, 1 Nov 2009 18:20:33 +0100 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N4e6d-0008Ax-Io for emacs-orgmode@gnu.org; Sun, 01 Nov 2009 12:20:43 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N4e6a-00086a-2l for emacs-orgmode@gnu.org; Sun, 01 Nov 2009 12:20:43 -0500 Received: from [199.232.76.173] (port=51793 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4e6Z-00086W-Q4 for emacs-orgmode@gnu.org; Sun, 01 Nov 2009 12:20:39 -0500 Received: from mail-ew0-f211.google.com ([209.85.219.211]:40020) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N4e6Z-0006kv-BB for emacs-orgmode@gnu.org; Sun, 01 Nov 2009 12:20:39 -0500 Received: by ewy7 with SMTP id 7so2111187ewy.31 for ; Sun, 01 Nov 2009 09:20:38 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Doug Hellmann Cc: suckling@gmail.com, org-mode mailing list Applied, thanks. - Carsten On Nov 1, 2009, at 5:15 PM, Doug Hellmann wrote: > > 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 > > > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten