Bernt Hansen wrote:

> Make sure you don't have any unsaved information in _any_ org files in
> emacs before you run this to sync your emacs buffers with the on disk
> files -- otherwise you'll lose information.
I got burned by that a couple of times, so now I use a script that does
the following:

--8<---------------cut here---------------start------------->8---
emacsclient -e "(save-some-buffers t)"

for dir in $DIRS; do
    cd "$dir"
    git pull

done

emacsclient -e "(org-revert-all-org-buffers)"
--8<---------------cut here---------------end--------------->8---

Cheers,
Chris



_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to