From mboxrd@z Thu Jan 1 00:00:00 1970 From: S S Subject: Re: Bug: Literal Examples are malformed in exports (to html/tex) [8.0.3 (release_8.0.3-165-g60ca9e @ /home/quazimodo/.emacs.d/vendor/org-mode/lisp/)] Date: Thu, 30 May 2013 16:34:34 +1000 Message-ID: References: <87d2s9629y.fsf@gmail.com> <8761y1hab7.fsf@gmail.com> <871u8ph9r5.fsf@gmail.com> <87wqqhfoyj.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhwRe-0001Ea-Jj for emacs-orgmode@gnu.org; Thu, 30 May 2013 02:34:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhwRX-0000Qc-Ro for emacs-orgmode@gnu.org; Thu, 30 May 2013 02:34:42 -0400 Received: from mail-pd0-f171.google.com ([209.85.192.171]:53061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhwRX-0000QX-LE for emacs-orgmode@gnu.org; Thu, 30 May 2013 02:34:35 -0400 Received: by mail-pd0-f171.google.com with SMTP id z11so10111438pdj.2 for ; Wed, 29 May 2013 23:34:34 -0700 (PDT) In-Reply-To: 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-orgmode@gnu.org On Thu, May 30, 2013 at 12:20 PM, S S wrote: > On Thu, May 30, 2013 at 11:16 AM, S S wrote: >> On Thu, May 30, 2013 at 7:36 AM, Nicolas Goaziou wrote: >>> S S writes: >>> >>>> I've added test.org and test_no_init.org along with their html exports plus >>>> my init.el >>>> to a gist. >>>> >>>> https://gist.github.com/quazimodo/9055aca6167df1398c94 >>>> >>>> The init.el is long but you'll see from a fast skim there's nothing unusual >>>> there. >>> >>> Indeed. But I suspect something wrong in your config: your example >>> exports correctly here. >> After fixing up begin_code to begin_src I see that you are right, >> working fine with >> 7.8.11 and no init.el >>> >>>> 7.8.11 is used with emacs -q and that seems to export the example blocks >>>> properly, >>>> doesn't seem to know what to do with code blocks though. >>> >>> Constructs like #+begin_code are called "special blocks". They are not >>> meant to be used for source code. Use #+begin_src instead. >> Correct, it was late and I made a mistake, should have put #+BEGIN_SRC. >>> >>>> Do you need more? >>> >>> What happens if you eval (org-element-at-point) with point on the faulty >>> #+begin_example line? >> It returns >> (special-block >> (:type "EXAMPLE\n" :begin 8 :end 178 :hiddenp nil :contents-begin 69 >> :contents-end 157 :post-blank 2 :post-affiliated 48 :attr_html >> (":textarea t :width 40") >> :parent nil)) >>> >>> Also, what's the value for `org-element-block-name-alist'? >>> >> org-element-block-name-alist is >> (("CENTER" . org-element-center-block-parser) >> ("COMMENT" . org-element-comment-block-parser) >> ("EXAMPLE" . org-element-example-block-parser) >> ("QUOTE" . org-element-quote-block-parser) >> ("SRC" . org-element-src-block-parser) >> ("VERSE" . org-element-verse-block-parser)) >> >> Everything looks fine doesn't it... >>> >>> Regards, >>> >>> -- >>> Nicolas Goaziou >> I'll remove 8.0.3 and go back to 7.8.11, to see if my init is causing issues and >> update you later today. > > Done, everything works fine, I'm starting to think that this is an > issue with the way > that I installed org-mode. Actually I followed > http://orgmode.org/org.html#Installation > using the git method exactly. > > Finally, if I reinstall it org-version sends the following message, > which I thought means > that it is correctly installed and using new files only. > Org-mode version 8.0.3 (release_8.0.3-165-g60ca9e @ > /home/quazimodo/.emacs.d/vendor/org-mode/lisp/) Problem found and solved, how do we close things? lua-mode was modifying stuff in the same syntax table that org-mode 8.0 + was using. lua-mode has updated since and problem is solved, my repo was out of date. Thanks and sorry about cluttering up the mailing list. Took a while to figure out what was going on. https://github.com/immerrr/lua-mode/ 1st commit that caused the conflict: c2f8a7f8 1st commit that solved the conflict: 9f5107ef