From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: [Exporter] Keep formatting or non-org comment-section when exporting? Date: Tue, 08 Apr 2014 19:42:02 +0200 Message-ID: <87wqezwwet.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXa28-00067c-5H for emacs-orgmode@gnu.org; Tue, 08 Apr 2014 13:42:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WXa1y-0004oS-W1 for emacs-orgmode@gnu.org; Tue, 08 Apr 2014 13:42:04 -0400 Received: from plane.gmane.org ([80.91.229.3]:45116) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXa1y-0004oC-Iz for emacs-orgmode@gnu.org; Tue, 08 Apr 2014 13:41:54 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WXa1x-0000qf-NP for emacs-orgmode@gnu.org; Tue, 08 Apr 2014 19:41:53 +0200 Received: from g231233202.adsl.alicedsl.de ([92.231.233.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Apr 2014 19:41:53 +0200 Received: from tjolitz by g231233202.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Apr 2014 19:41:53 +0200 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 Hi Nicolas, is there any way to make the exporter recognize non-org comment-syntax in an org-buffer? When writing emails with outorg, I often have these message-mode quotes in the outorg-edit-buffer which have outcommented multiple times and therefore remain as message-mode comments). They do not cause any problems for editing, since outorg/org-mode treats them like normal text, but formatting is lost when exporting: ,---------------------------------------------------------------------------- | > Thorsten Jolitz writes: | > | >> I like to use rebox2 and put boxes in emails and source-file | >> comment-sections, but when I use outorg on such an message-mode or elisp | >> buffer and try to export it, I always get 'Args out of range' errors: | > | > The following line | > | > | org-element--parse-objects: Args out of range: 315, 316 | > | > is a table row in Org syntax, so it will not be exported as you expect | > it to. However, it shouldn't return an error. I fixed it. | > | > Thank you for your report. `---------------------------------------------------------------------------- becomes: #+begin_src emacs-lisp :results value replace (org-export-as 'ascii) #+end_src #+results: ,------------------------------------------------------------------------ | _________________ | | Thorsten Jolitz | _________________ | | | 1 --text follows this line-- | ============================ | | Nicolas Goaziou writes: | | > Hello, Thorsten Jolitz writes: > I like to use | >rebox2 and put boxes in emails and source-file > comment-sections, | >but when I use outorg on such an message-mode or elisp > buffer and | >try to export it, I always get 'Args out of range' errors: The | >following line | org-element--parse-objects: Args out of range: 315, | >316 is a table row in Org syntax, so it will not be exported as you | >expect it to. However, it shouldn't return an error. I fixed it. | >Thank you for your report. `------------------------------------------------------------------------ This is a pity, would be nice if these quoted section could be wrapped in a verbatim-type block so that exporting them gives a nice result. The same thing happens when I use outorg with e.g. emacs-lisp or picolisp. Section that are outcommented twice or more like ,----------- | ;; ;; Comment | ;; ;; part `----------- are seen in the outorg-edit-buffer like ,----------- | ;; Comment | ;; part `----------- and lose their formatting when exported. -- cheers, Thorsten