From 32db2521bc42811d43f09346fc38816527e8be35 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Fri, 9 Apr 2010 14:30:57 +0200 Subject: [PATCH] Check org-mobile setup for a checksum binary --- lisp/ChangeLog | 5 +++++ lisp/org-mobile.el | 3 +++ 2 files changed, 8 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bec794d43..1d13ebc74 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2010-04-09 Carsten Dominik + + * org-mobile.el (org-mobile-check-setup): Make sure that there is + a binary to compute checksums. + 2010-04-08 Carsten Dominik * org.el (org-insert-link): Find the link buffer on visible diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el index f6b4a54e5..252b11d3b 100644 --- a/lisp/org-mobile.el +++ b/lisp/org-mobile.el @@ -349,6 +349,9 @@ agenda view showing the flagged items." (file-name-directory org-mobile-inbox-for-pull))) (error "Variable `org-mobile-inbox-for-pull' must point to a file in an existing directory")) + (unless (and org-mobile-checksum-binary + (string-match "\\S-" org-mobile-checksum-binary)) + (error "No executable found to compute checksums")) (when org-mobile-use-encryption (unless (string-match "\\S-" org-mobile-encryption-password) (error