emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christopher Suckling <suckling.list@googlemail.com>
To: Jonathan Creekmore <jonathan@thecreekmores.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] Detect Mac OS X in iCal import
Date: Tue, 30 Mar 2010 22:25:04 +0100	[thread overview]
Message-ID: <m2eij1biz3.fsf@gmail.com> (raw)
In-Reply-To: <m2oci5wmib.fsf@thecreekmores.org> (Jonathan Creekmore's message of "Tue, 30 Mar 2010 16:03:08 -0500")

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 <jonathan@thecreekmores.org> 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.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2010-03-30 21:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-30 21:03 [PATCH] Detect Mac OS X in iCal import Jonathan Creekmore
2010-03-30 21:25 ` Christopher Suckling [this message]
2010-03-30 22:16 ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2eij1biz3.fsf@gmail.com \
    --to=suckling.list@googlemail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jonathan@thecreekmores.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).