From: Jonathan Creekmore <jonathan@thecreekmores.org>
To: emacs-orgmode@gnu.org
Subject: [PATCH] Detect Mac OS X in iCal import
Date: Tue, 30 Mar 2010 16:03:08 -0500 [thread overview]
Message-ID: <m2oci5wmib.fsf@thecreekmores.org> (raw)
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
--8<---------------cut here---------------start------------->8---
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
--8<---------------cut here---------------start------------->8---
next reply other threads:[~2010-03-30 21:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-30 21:03 Jonathan Creekmore [this message]
2010-03-30 21:25 ` [PATCH] Detect Mac OS X in iCal import Christopher Suckling
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2oci5wmib.fsf@thecreekmores.org \
--to=jonathan@thecreekmores.org \
--cc=emacs-orgmode@gnu.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.