From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roland DONAT Subject: Re: Babel : python generate org source block with an extra comma before * characters Date: Sun, 13 Jul 2014 18:07:58 +0000 (UTC) Message-ID: References: <87ha2lxr35.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6OCC-0007d1-Hr for emacs-orgmode@gnu.org; Sun, 13 Jul 2014 14:08:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X6OC4-0000ag-W9 for emacs-orgmode@gnu.org; Sun, 13 Jul 2014 14:08:20 -0400 Received: from plane.gmane.org ([80.91.229.3]:51441) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6OC4-0000aZ-Ps for emacs-orgmode@gnu.org; Sun, 13 Jul 2014 14:08:12 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X6OC1-0003uO-VA for emacs-orgmode@gnu.org; Sun, 13 Jul 2014 20:08:10 +0200 Received: from vsp56-2-88-169-163-185.fbx.proxad.net ([88.169.163.185]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 13 Jul 2014 20:08:09 +0200 Received: from roland.donat by vsp56-2-88-169-163-185.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 13 Jul 2014 20:08:09 +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 Thorsten Jolitz gmail.com> writes: > > This is because this function was applied to the results > > ,----[ C-h f org-escape-code-in-region RET ] > | org-escape-code-in-region is an interactive compiled Lisp function in > | `org-src.el'. > | > | (org-escape-code-in-region BEG END) > | > | Escape lines between BEG and END. > | Escaping happens when a line starts with "*", "#+", ",*" or > | ",#+" by appending a comma to it. > | > | [back] > `---- > > Not sure how to get rid of this, maybe via :results raw? I'm not aware > of a configuration variable for this, but it surely exists. > Thank you. It helps me much! Based on your answer, I copy-paste the code of the function "org-escape- code-in-region" in a source block in my org buffer and modify the code to prevent it from inserting the comma. It's a little bit dirty but it works. Using the raw option produces a correct result but I need the generated code to be decorated with a drawer to automatically replace the result at each code execution. To do so, I tried to use de "drawer" option. It gives me the good result with a drawer but then when I export my org buffer to latex, the drawers ":RESULTS:" is also exported which is not cool... Well, thanks again! Roland.