From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giuseppe Lipari Subject: Re: Bug: Org-babel export of c++11 code to Latex does not work properly [7.9.4 (7.9.4-elpa @ /home/lipari/.emacs.d/elpa/org-20130401/)] Date: Mon, 20 Jan 2014 10:35:10 +0100 Message-ID: References: <87zjms7yeq.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2d3b6a1a6ba04f0639b3d Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5BGD-0000kT-37 for emacs-orgmode@gnu.org; Mon, 20 Jan 2014 04:35:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5BGB-0005NM-CS for emacs-orgmode@gnu.org; Mon, 20 Jan 2014 04:35:13 -0500 In-Reply-To: <87zjms7yeq.fsf@bzg.ath.cx> 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: Bastien Cc: emacs-orgmode@gnu.org --001a11c2d3b6a1a6ba04f0639b3d Content-Type: text/plain; charset=ISO-8859-1 Dear Bastien, thanks for the response. I did some debugging, but I am not an expert of elisp and org-mode. Anyway, this is what I found: I put a breakpoint in fuinction org-latex-src-block() which receives src-block as parameter. This parameter contains field language already set to c++\"-std=c++11\", which is of course wrong. Therefore the problem is before this function is called, but I could not follow the chain and so I do not know precisely which function is responsible for this. Also, the bug triggers also when I specify C as a language. Therefore, probably the problem is somewhere in ob-C.el. Thanks again Giuseppe Lipari 2014/1/19 Bastien > Hi Giuseppe, > > Giuseppe Lipari writes: > > > Remember to cover the basics, that is, what you expected to happen > > and > > what in fact did happen. You don't know how to make a good report? > > See > > > > http://orgmode.org/manual/Feedback.html#Feedback > > > > Your bug report will be posted to the Org-mode mailing list. > > ------------------------------------------------------------------------ > > > > Dear all, > > > > I have a problem with org-babel and the export of C++11 code to > > LaTeX. > > > > I report below a simple example of a problem file: > > I can reproduce this bug -- maybe Eric will have time to fix it, > otherwise I will have a look next week. > > Thanks, > > -- > Bastien > -- Giuseppe Lipari RETIS Lab, CEIIC Scuola Superiore Sant'Anna via Moruzzi, 1 56127 Pisa tel: 050 882030 fax: 050 882003 web: http://feanor.sssup.it/~lipari/ blogs: http://scacciamennule.blogspot.com http://okpanico,wordpress.com http://algoland.wordpress.com --001a11c2d3b6a1a6ba04f0639b3d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Dear Bastien,

thanks = for the response. I did some debugging, but I am not an expert of elisp and= org-mode. Anyway, this is what I found:

I put a breakpoint in= fuinction org-latex-src-block() which receives src-block as parameter. Thi= s parameter contains field language already set to c++\"-std=3Dc++11\&= quot;, which is of course wrong. Therefore the problem is before this funct= ion is called, but I could not follow the chain and so I do not know precis= ely which function is responsible for this.

Also, the bug triggers also when I specify C as a lan= guage. Therefore, probably the problem is somewhere in ob-C.el.

Thanks again

Giuseppe Lipari



2014/1/= 19 Bastien <bzg@gnu.org>
Hi Giuseppe,

Giuseppe Lipari <giulipari@gmail.= com> writes:

> Remember to cover the basics, that is, what you expected to happen
> and
> what in fact did happen.=A0 You don't know how to make a good repo= rt?=A0
> See
>
> =A0=A0=A0=A0 http://orgmode.org/manual/Feedback.html#Feedback<= br> >
> Your bug report will be posted to the Org-mode mailing list.
> ----------------------------------------------------------------------= --
>
> Dear all,
>
> I have a problem with org-babel and the export of C++11 code to
> LaTeX.
>
> I report below a simple example of a problem file:

I can reproduce this bug -- maybe Eric will have time to fix it,
otherwise I will have a look next week.

Thanks,

--
=A0Bastien



--
Giuseppe = Lipari
RETIS Lab, CEIIC
Scuola Superiore Sant'Anna
via Moruzzi= , 1
56127 Pisa
tel:=A0=A0 050 882030
fax:=A0 050 882003
web: http://feanor.s= ssup.it/~lipari/
blogs: htt= p://scacciamennule.blogspot.com
=A0=A0 =A0 =A0 =A0 =A0http://okpanico,wordpress.com=A0
=A0=A0 =A0 =A0 =A0 =A0http://algoland.wordpress.com
--001a11c2d3b6a1a6ba04f0639b3d--