From mboxrd@z Thu Jan 1 00:00:00 1970 From: Le Wang Subject: Re: bug#12905: 24.2.50; org: edit source block causes data loss Date: Thu, 13 Dec 2012 22:36:02 +0800 Message-ID: References: <50A62865.8010904@gmail.com> <87sj7han8a.fsf__16482.9143243425$1354894646$gmane$org@gnu.org> <87wqwnyzud.fsf__32428.3239235685$1355331429$gmane$org@bzg.ath.cx> <87bodzt201.fsf@norang.ca> <877gom7tc3.fsf@bzg.ath.cx> <876246skbt.fsf@norang.ca> <87lid262rf.fsf@norang.ca> <8738za44ss.fsf@bzg.ath.cx> <878v925aru.fsf@norang.ca> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=047d7bea35189785b004d0bcd596 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tj9tY-0002Ov-RE for emacs-orgmode@gnu.org; Thu, 13 Dec 2012 09:36:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tj9tL-000549-Qd for emacs-orgmode@gnu.org; Thu, 13 Dec 2012 09:36:16 -0500 Received: from mail-qc0-f169.google.com ([209.85.216.169]:49651) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tj9tL-000544-Mg for emacs-orgmode@gnu.org; Thu, 13 Dec 2012 09:36:03 -0500 Received: by mail-qc0-f169.google.com with SMTP id t2so1682525qcq.0 for ; Thu, 13 Dec 2012 06:36:02 -0800 (PST) In-Reply-To: <878v925aru.fsf@norang.ca> 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: Bernt Hansen Cc: Bastien , emacs-orgmode@gnu.org --047d7bea35189785b004d0bcd596 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Dec 13, 2012 at 9:42 PM, Bernt Hansen wrote: > I'll try this patch and report back later today. That commit was from me, and I did not test against Emacs < 24.2. I will submit another patch to add some tests. Do tests get automatically run on some kind of Travis CI setup? In the mean time, I think my included patch (logic identically to Bastien's) is more lisp-ly. -- Le --047d7bea35189785b004d0bcd596 Content-Type: application/octet-stream; name="org-src.el.le.patch" Content-Disposition: attachment; filename="org-src.el.le.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hanzpt230 ZGlmZiAtLWdpdCBhL2xpc3Avb3JnLXNyYy5lbCBiL2xpc3Avb3JnLXNyYy5lbAppbmRleCBmOTFk YTE5Li42NTE1OTg3IDEwMDY0NAotLS0gYS9saXNwL29yZy1zcmMuZWwKKysrIGIvbGlzcC9vcmct c3JjLmVsCkBAIC0yMzAsNyArMjMwLDkgQEAgYnVmZmVyLiIKIAkgKGJlZyAobWFrZS1tYXJrZXIp KQogCSA7OyBNb3ZlIG1hcmtlciB3aXRoIGluc2VydGVkIHRleHQgZm9yIGNhc2Ugd2hlbiBzcmMg YmxvY2sgaXMKIAkgOzsganVzdCBvbmUgZW1wdHkgbGluZSwgaS5lLiBiZWcgPT0gZW5kLgotCSAo ZW5kIChjb3B5LW1hcmtlciBuaWwgdCkpCisJIChlbmQgKGxldCAoKG1hcmtlciAobWFrZS1tYXJr ZXIpKSkKKwkJKHNldC1tYXJrZXItaW5zZXJ0aW9uLXR5cGUgbWFya2VyIHQpCisJCW1hcmtlcikp CiAJIChhbGxvdy13cml0ZS1iYWNrLXAgKG51bGwgY29kZSkpCiAJIGJsb2NrLW5pbmRlbnQgdG90 YWwtbmluZGVudCBvdmwgbGFuZyBsYW5nLWYgc2luZ2xlIGxmbXQgYnVmZmVyIG1zZwogCSBiZWds aW5lIG1hcmtsaW5lIG1hcmtjb2wgbGluZSBjb2wgdHJhbnNtaXR0ZWQtdmFyaWFibGVzKQo= --047d7bea35189785b004d0bcd596--