Browse Source

Snow Leopard compatibility for org-mac-iCal.el

Carsten Dominik 15 years ago
parent
commit
28b1059f09
2 changed files with 7 additions and 2 deletions
  1. 5 0
      contrib/ChangeLog
  2. 2 2
      contrib/lisp/org-mac-iCal.el

+ 5 - 0
contrib/ChangeLog

@@ -1,3 +1,8 @@
+2010-03-31  Carsten Dominik  <carsten.dominik@gmail.com>
+
+	* lisp/org-mac-iCal.el (org-mac-iCal): Snow Leopard
+	compatibility.
+
 2010-02-20  Carsten Dominik  <carsten.dominik@gmail.com>
 
 	* lisp/org-git-link.el (org-git-store-link): Check if there is a

+ 2 - 2
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