From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Fraga Subject: Re: [bug] new exporter fails on read only files Date: Thu, 3 May 2012 19:07:40 +0930 Message-ID: <87ehr1ip0b.fsf@ucl.ac.uk> References: <87k412k6uy.fsf@ucl.ac.uk> <8762cmk5ro.fsf@gnu.org> <87y5phia2g.fsf@ucl.ac.uk> <8762ckdi4h.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPsUB-0006V3-S8 for emacs-orgmode@gnu.org; Thu, 03 May 2012 05:38:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPsU5-0005Bd-L5 for emacs-orgmode@gnu.org; Thu, 03 May 2012 05:38:07 -0400 Received: from ch1ehsobe003.messaging.microsoft.com ([216.32.181.183]:50298 helo=ch1outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPsU5-0005B1-Ff for emacs-orgmode@gnu.org; Thu, 03 May 2012 05:38:01 -0400 In-Reply-To: <8762ckdi4h.fsf@gmail.com> (Nicolas Goaziou's message of "Fri, 27 Apr 2012 22:39:26 +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: Nicolas Goaziou Cc: Bastien , emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Nicolas Goaziou writes: > Hello, > > Eric Fraga writes: > >> Actually, I have updated (one minute ago) and the problem has now >> changed! I now get this error: >> >> ,---- >> | and: Wrong type argument: stringp, (latex-fragment (:value "\\ref{sec:evaporative}" :begin 11957 :end 11978 :post-blank 0)) >> `---- > > This is a bit short to start investigations. Something is happening at > position 11957 in your buffer. You may want to narrow it to the > paragraph/table/construct around and try to export it again. It could > make a minimal example. Okay, I have investigated. Attached is a simple example which illustrates the problem which appears to be use of a latex macro within a table. Are latex macros still allowed? I have used emacs -Q and loaded in the new export etc. No customisations. The error message for this example is: ,---- | and: Wrong type argument: stringp, (latex-fragment (:value "\\ref{sec:bug}" :begin 322 :end 335 :post-blank 0)) `---- > You may also try (org-element-parse-buffer) to see if the error comes > from the parser or the export engine. You could even try to export to It's the export engine and it's due to my \ref{...} having the \ escaped, which should not happen. Thanks, eric --=-=-= Content-Type: text/org Content-Disposition: attachment; filename="examplebug.org" #+TITLE: examplebug.org #+AUTHOR: Eric S Fraga #+EMAIL: e.fraga@ucl.ac.uk #+DATE: 2012-01-09 Mon * new exporter \label{sec:bug} This section illustrates a simple bug in the new exporter, I think. | Section | Description | |---------------+----------------------------| | \ref{sec:bug} | An illustration of the bug | |---------------+----------------------------| The table has a reference using a direct latex command. --=-=-= Content-Type: text/plain -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.1.50.1 : using Org release_7.8.09-414-gb3e8a8 --=-=-=--