emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] [PATCH] Detect Mac OS X in iCal import


From: Christopher Suckling
Subject: Re: [Orgmode] [PATCH] Detect Mac OS X in iCal import
Date: Tue, 30 Mar 2010 22:25:04 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (darwin)

Thanks. I did this in my local repository last September and completely
forgot to submit it. Though curiously the contrib version seems to work
fine on my Snow Leopard install.

Best, Christopher

On Tue, 30 Mar 2010 16:03:08 -0500, Jonathan Creekmore <address@hidden> wrote:

> This patch modifies the Mac OS X detection code to check for both
> Leopard and Snow Leopard, since they both store iCal events in separate
> files for Spotlight searching purposes.
>
> Jonathan
>
> diff --git a/contrib/lisp/org-mac-iCal.el b/contrib/lisp/org-mac-iCal.el
> index 0d0b4f8..2510aa7 100644
> --- a/contrib/lisp/org-mac-iCal.el
> +++ b/contrib/lisp/org-mac-iCal.el
> @@ -98,8 +98,8 @@ the the Emacs diary"
>  
>    ;; for each calendar, concatenate individual events into a single ics file
>    (with-temp-buffer
> -    (shell-command "sw_vers" " *temp*")
> -    (when (re-search-backward "10.5" nil t)
> +    (shell-command "sw_vers" (current-buffer))
> +    (when (re-search-backward "10\\.[56]" nil t)
>        (omi-concat-leopard-ics all-calendars)))
>    
>    ;; move all caldav ics files to the same place as local ics files
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode




reply via email to

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