From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: org-insert-heading rewritten from scratch Date: Mon, 9 Sep 2013 22:37:08 +0200 Message-ID: References: <6570EFE0-1DCA-44D1-AAD9-BE51A278EE58@gmail.com> <874n9t6car.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001a11c3675e22ede304e5f95ae4 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46350) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJ8Cv-0002S5-Mc for emacs-orgmode@gnu.org; Mon, 09 Sep 2013 16:37:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJ8Cs-0003hz-7e for emacs-orgmode@gnu.org; Mon, 09 Sep 2013 16:37:13 -0400 Received: from mail-lb0-x232.google.com ([2a00:1450:4010:c04::232]:51221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJ8Cr-0003hv-QW for emacs-orgmode@gnu.org; Mon, 09 Sep 2013 16:37:10 -0400 Received: by mail-lb0-f178.google.com with SMTP id z5so5477611lbh.37 for ; Mon, 09 Sep 2013 13:37:08 -0700 (PDT) In-Reply-To: <874n9t6car.fsf@gmail.com> 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: Nicolas Goaziou Cc: Emacs Org mode mailing list --001a11c3675e22ede304e5f95ae4 Content-Type: text/plain; charset=ISO-8859-1 Hi Nicolas On Mon, Sep 9, 2013 at 9:10 PM, Nicolas Goaziou wrote: > FWIW, I think the test belongs to test-org.el, not to test-org-list.el. Ok, I assume, then better also with more tests than only for list items. See the attached patches that replace the previous ones. Michael --001a11c3675e22ede304e5f95ae4 Content-Type: text/plain; charset=US-ASCII; name="0001-Add-ERTs-for-org-meta-return.patch.txt" Content-Disposition: attachment; filename="0001-Add-ERTs-for-org-meta-return.patch.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hle5i2bu0 RnJvbSA2NmY2ZDE1MjM0YmRhOTdmYzJlMTk3ZWZkMmY5Y2I3YzY0MzlmZWYxIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBNaWNoYWVsIEJyYW5kIDxtaWNoYWVsLmNoLmJyYW5kQGdtYWls LmNvbT4KRGF0ZTogTW9uLCA5IFNlcCAyMDEzIDIyOjMyOjM2ICswMjAwClN1YmplY3Q6IFtQQVRD SCAxLzJdIEFkZCBFUlRzIGZvciBvcmctbWV0YS1yZXR1cm4KCiogdGVzdGluZy9saXNwL3Rlc3Qt b3JnLmVsICh0ZXN0LW9yZy9tZXRhLXJldHVybik6IE5ldyBgZXJ0LWRlZnRlc3QnCnRvIHRlc3Qg YG9yZy1tZXRhLXJldHVybicuCi0tLQogdGVzdGluZy9saXNwL3Rlc3Qtb3JnLmVsIHwgNDUgKysr KysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrCiAxIGZpbGUgY2hhbmdl ZCwgNDUgaW5zZXJ0aW9ucygrKQoKZGlmZiAtLWdpdCBhL3Rlc3RpbmcvbGlzcC90ZXN0LW9yZy5l bCBiL3Rlc3RpbmcvbGlzcC90ZXN0LW9yZy5lbAppbmRleCA4YTFlOWYxLi40OTQ0YzI0IDEwMDY0 NAotLS0gYS90ZXN0aW5nL2xpc3AvdGVzdC1vcmcuZWwKKysrIGIvdGVzdGluZy9saXNwL3Rlc3Qt b3JnLmVsCkBAIC0zNjUsNiArMzY1LDUxIEBACiAKIAogDAorOzs7IEVkaXRpbmcKKworOzs7OyBJ bnNlcnQgZWxlbWVudHMKKworKGVydC1kZWZ0ZXN0IHRlc3Qtb3JnL21ldGEtcmV0dXJuICgpCisg ICJUZXN0IE0tUkVUIChgb3JnLW1ldGEtcmV0dXJuJykuIgorICA7OyBJ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iBhIGRyYXdlciBhbmQgaXRlbSBpbnNlcnQgYW4gaXRlbSwgaW4g dGhpcyBjYXNlIGFib3ZlLgorICAoc2hvdWxkCisgICAobGV0ICgob3JnLWRyYXdlcnMgJygiTVlE UkFXRVIiKSkpCisgICAgIChvcmctdGVzdC13aXRoLXRlbXAtdGV4dCAiOk1ZRFJBV0VSOlxuLSBh XG46RU5EOiIKKyAgICAgICAoZm9yd2FyZC1saW5lKQorICAgICAgIChvcmctbWV0YS1yZXR1cm4p CisgICAgICAgKGZvcndhcmQtbGluZSAtMSkKKyAgICAgICAobG9va2luZy1hdCAiJCIpKSkpKQor CisKKworDAogOzs7IExpbmtzCiAKIDs7OzsgRnV6enkgTGlua3MKLS0gCjEuNy4xMi40IChBcHBs ZSBHaXQtMzcpCgo= --001a11c3675e22ede304e5f95ae4 Content-Type: text/plain; charset=US-ASCII; name="0002-org-meta-return-Insert-an-item-also-in-a-drawer.patch.txt" Content-Disposition: attachment; filename="0002-org-meta-return-Insert-an-item-also-in-a-drawer.patch.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hle5i2c71 RnJvbSBmZGRjYWFlZDAzNjMwZTdhY2MyNmVkNzAxOTM3YjJjYTE3MTg0ZmU1IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBNaWNoYWVsIEJyYW5kIDxtaWNoYWVsLmNoLmJyYW5kQGdtYWls LmNvbT4KRGF0ZTogTW9uLCA5IFNlcCAyMDEzIDIyOjMzOjQ3ICswMjAwClN1YmplY3Q6IFtQQVRD SCAyLzJdIG9yZy1tZXRhLXJldHVybjogSW5zZXJ0IGFuIGl0ZW0gYWxzbyBpbiBhIGRyYXdlcgoK KiBsaXNwL29yZy5lbCAob3JnLW1ldGEtcmV0dXJuKTogRXhjbHVkZSBpdGVtIGZyb20gY29uZCBm b3IgZHJhd2VyLgoqIHRlc3RpbmcvbGlzcC90ZXN0LW9yZy5lbCAodGVzdC1vcmcvbWV0YS1yZXR1 cm4pOi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