From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bryan Fink Subject: ascii-export vs. "<<" and ">>" patch Date: Thu, 7 Jan 2010 12:30:57 -0500 Message-ID: <473d01841001070930g19ba5a3l92beeb6a8a9c5478@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=0016e6d7e162124731047c966f26 Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NSwCP-0004qJ-P8 for emacs-orgmode@gnu.org; Thu, 07 Jan 2010 12:31:05 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NSwCO-0004pw-Ni for emacs-orgmode@gnu.org; Thu, 07 Jan 2010 12:31:05 -0500 Received: from [199.232.76.173] (port=35632 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSwCO-0004pr-Ht for emacs-orgmode@gnu.org; Thu, 07 Jan 2010 12:31:04 -0500 Received: from mx20.gnu.org ([199.232.41.8]:17498) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NSwCO-0005i0-6K for emacs-orgmode@gnu.org; Thu, 07 Jan 2010 12:31:04 -0500 Received: from fg-out-1718.google.com ([72.14.220.159]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NSwCJ-0002lk-SE for emacs-orgmode@gnu.org; Thu, 07 Jan 2010 12:31:00 -0500 Received: by fg-out-1718.google.com with SMTP id 22so737943fge.12 for ; Thu, 07 Jan 2010 09:30:57 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --0016e6d7e162124731047c966f26 Content-Type: text/plain; charset=ISO-8859-1 Hi. I'm using org-mode to write some documentation about Erlang modules. Erlang's "binary" data type has a syntax like: <<"this is binary data">> Org-mode's ascii-exporter in version 6.33f blindly strips all <<>> pairs from the file, leaving the text as "this is binary data" which, unfortunately, is still valid Erlang syntax, but has a different meaning. So, to help me and others write Erlang documentation in org-mode, I submit the patch attached to this email, which changes org-ascii.el such that it checks the org-protected text property before stripping <<>> characters, so examples marked as verbatim text should go untouched. -Bryan --0016e6d7e162124731047c966f26 Content-Type: application/octet-stream; name="0001-do-not-strip-and-from-protected-sections-during-asci.patch" Content-Disposition: attachment; filename="0001-do-not-strip-and-from-protected-sections-during-asci.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g45tij020 RnJvbSBjN2E2YTMwMzRiOWU5NTg4ZTIyMTQ0ZTU4MDEwNWRkMjAxNmRjMDRhIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBCcnlhbiBGaW5rIDxicnlhbkBiYXNoby5jb20+CkRhdGU6IFRo dSwgNyBKYW4gMjAxMCAxMjowMjoyOCAtMDUwMApTdWJqZWN0OiBbUEFUQ0hdIGRvIG5vdCBzdHJp cCAiPDwiIGFuZCAiPj4iIGZyb20gcHJvdGVjdGVkIHNlY3Rpb25zIGR1cmluZyBhc2NpaSBleHBv cnQKCi0tLQogbGlzcC9vcmctYXNjaWkuZWwgfCAgICAzICsrLQogMSBmaWxlcyBjaGFuZ2VkLCAy IGluc2VydGlvbnMoKyksIDEgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvbGlzcC9vcmctYXNj aWkuZWwgYi9saXNwL29yZy1hc2NpaS5lbAppbmRleCAzMDE5YTFhLi44ZWYyYjJjIDEwMDY0NAot LS0gYS9saXNwL29yZy1hc2NpaS5lbAorKysgYi9saXNwL29yZy1hc2NpaS5lbApAQCAtNDk0LDcg KzQ5NCw4IEBAIHB1Ymxpc2hpbmcgZGlyZWN0b3J5LiIKICAgOzsgUmVtb3ZlIHRhcmdldCBtYXJr ZXJzCiAgIChnb3RvLWNoYXIgKHBvaW50LW1pbikpCiAgICh3aGlsZSAocmUtc2VhcmNoLWZvcndh cmQgICI8PDw/XFwoW148Pl0qXFwpPj4+P1xcKFsgXHRdKlxcKSIgbmlsIHQpCi0gICAgKHJlcGxh Y2UtbWF0Y2ggIlxcMVxcMiIpKSkKKyAgICAoaWYgKG5vdCAoZ2V0LXRleHQtcHJvcGVydHkgKHBv aW50KSAnb3JnLXByb3RlY3RlZCkpCisgICAgICAgIChyZXBsYWNlLW1hdGNoICJcXDFcXDIiKSkp KQogCiAoZGVmdW4gb3JnLWh0bWwtZXhwYW5kLWZvci1hc2NpaSAobGluZSkKICAgIkhhbmRsZSBx dW90ZWQgSFRNTCBmb3IgQVNDSUkgZXhwb3J0LiIKLS0gCjEuNi41LjUKCg== --0016e6d7e162124731047c966f26 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --0016e6d7e162124731047c966f26--