From mboxrd@z Thu Jan 1 00:00:00 1970 From: Henning Weiss Subject: [PATCH] org-mobile newheading, delete, refile and archive edit nodes Date: Sat, 7 Apr 2012 17:54:53 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=20cf305b128641cd5104bd18cbbb Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGXyc-0002Tq-BB for emacs-orgmode@gnu.org; Sat, 07 Apr 2012 11:54:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SGXya-0000Le-IA for emacs-orgmode@gnu.org; Sat, 07 Apr 2012 11:54:57 -0400 Received: from mail-gx0-f169.google.com ([209.85.161.169]:50050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGXya-0000Hq-BR for emacs-orgmode@gnu.org; Sat, 07 Apr 2012 11:54:56 -0400 Received: by ggeq1 with SMTP id q1so1776642gge.0 for ; Sat, 07 Apr 2012 08:54:53 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --20cf305b128641cd5104bd18cbbb Content-Type: multipart/alternative; boundary=20cf305b128641cd4c04bd18cbb9 --20cf305b128641cd4c04bd18cbb9 Content-Type: text/plain; charset=ISO-8859-1 Hi! I have attached a patch for org-mobile.el which adds four additional edit nodes. They seem to work and adding and deleting has already been implemented "client-side wise" in mobileorg-android. The current versions could be improved by using the "old value" to compare it to the current, as to prevent conflicts. Henning Weiss --20cf305b128641cd4c04bd18cbb9 Content-Type: text/html; charset=ISO-8859-1 Hi!

I have attached a patch for org-mobile.el which adds four additional edit nodes. They seem to work and adding and deleting has already been implemented "client-side wise" in mobileorg-android.

The current versions could be improved by using the "old value" to compare it to the current, as to prevent conflicts.

Henning Weiss
--20cf305b128641cd4c04bd18cbb9-- --20cf305b128641cd5104bd18cbbb Content-Type: text/plain; charset=US-ASCII; name="org-mobile-edit-nodes.txt" Content-Disposition: attachment; filename="org-mobile-edit-nodes.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_h0qu1ase0 ZGlmZiAtLWdpdCBhL2xpc3Avb3JnLW1vYmlsZS5lbCBiL2xpc3Avb3JnLW1vYmlsZS5lbAppbmRl eCAzYmQ5YTdjLi42MGQwNjU5IDEwMDY0NAotLS0gYS9saXNwL29yZy1tb2JpbGUuZWwKKysrIGIv bGlzcC9vcmctbW9iaWxlLmVsCkBAIC0xMDYyLDYgKzEwNjIsNTcgQEAgYmUgcmV0dXJuZWQgdGhh dCBpbmRpY2F0ZXMgd2hhdCB3ZW50IHdyb25nLiIKIAkgIChvcmctc2V0LXRhZ3MgbmlsICdhbGln bikpCiAJICh0IChlcnJvciAiSGVhZGluZyBjaGFuZ2VkIGluIE1vYmlsZU9yZyBhbmQgb24gdGhl IGNvbXB1dGVyIikpKSkpCiAKKyAgICAgKChlcSB3aGF0ICduZXdoZWFkaW5nKQorICAgICAgKGNv bmQKKyAgICAgICAoKG9yIHQgOyBtYXliZSBjaGVjayBuZXcgZm9yIHZhbGlkaXR5IGluc3RlYWQ/ CisJICAgIChlcSBvcmctbW9iaWxlLWZvcmNlLW1vYmlsZS1jaGFuZ2UgdCkKKwkgICAgKG1lbXEg J3RhZ3Mgb3JnLW1vYmlsZS1mb3JjZS1tb2JpbGUtY2hhbmdlKSkKKyAgICAgICAgKHNhdmUtZXhj dXJzaW9uCisJICAoZW5kLW9mLWxpbmUgMSkKKwkgIChvcmctaW5zZXJ0LWhlYWRpbmctcmVzcGVj dC1jb250ZW50KQorCSAgKG9yZy1kZW1vdGUpCisgICAgICAgICAgKGluc2VydCBuZXcpKSkKKyAg ICAgICAodCAoZXJyb3IgIk5ldyBoZWFkaW5nIGNvdWxkIG5vd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