]> git.donarmstrong.com Git - bin.git/blobdiff - update_org_ical
save org mode buffers before calling update_org_files and update_org_ical
[bin.git] / update_org_ical
index eebb11a50a8cf1e9a05e88ebafc9bc363cde9608..3f928d260933a9a87bf6ad8850787ca0640ddb2b 100755 (executable)
@@ -7,6 +7,7 @@ LOCKOPTS=-q
 if [ -n "$PS1" ]; then
     LOCKOPTS=-f;
 fi;
+with-lock-ex $LOCKOPTS $TMPDIR/update_org_ical emacsclient -n -e '(org-save-all-org-buffers)' >/dev/null 2>&1
 with-lock-ex $LOCKOPTS $TMPDIR/update_org_ical emacs --batch -l ~/.emacs \
     --eval '(setq org-icalendar-combined-description "Don Armstrong’s Calendar (org-mode)")' \
     --eval '(setq org-icalendar-combined-name "Don Armstrong (org-mode)")' \