From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] comments exporting Date: Tue, 15 Jun 2010 15:03:01 +0200 Message-ID: <87hbl4tpmi.wl%n.goaziou@gmail.com> References: <87ljaitszr.wl%n.goaziou@gmail.com> <87d3vtwmdg.fsf@gmail.com> <87mxuxiixc.fsf@gmail.com> <87iq5ltm2g.wl%n.goaziou@gmail.com> <87d3vt47oq.fsf@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from [140.186.70.92] (port=33126 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOVnV-0001xQ-2E for emacs-orgmode@gnu.org; Tue, 15 Jun 2010 09:03:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OOVnQ-0001xw-MQ for emacs-orgmode@gnu.org; Tue, 15 Jun 2010 09:03:20 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:58899) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OOVnQ-0001xs-GA for emacs-orgmode@gnu.org; Tue, 15 Jun 2010 09:03:16 -0400 Received: by wyf28 with SMTP id 28so5179295wyf.0 for ; Tue, 15 Jun 2010 06:03:15 -0700 (PDT) In-Reply-To: <87d3vt47oq.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: emacs-orgmode@gnu.org Hello, >>>>> Eric Schulte writes: > Not to look a gift patch in the mouth, but while this patch fixes the > above issue it looks like it introduces a new problem. If you want a quick hack, just remove the space I introduced in the comment regexp. But, imho, it isn't a real solution as #+source is definitely not a comment and should not be caught by the regexp comments. I don't know yet what org-babel is really doing with the #+source and #+results lines, but if they are no longer needed for exportation, there should be a function to clean them before exporting. In addition, there is another problem. In the example below, the second item actually starts a brand new list upon exporting. --8<---------------cut here---------------start------------->8--- ** comments not commented # $some stuff # some more stuff$ -- I should be a comment line 1) a source block inside of an =enumerate= #+source: plotxy #+begin_src emacs-lisp :exports results (message "I think so") #+end_src can cause problems 2) another line --8<---------------cut here---------------end--------------->8--- If I had to take a guess, I'd say that org-babel messes with indentation and org-latex, being very sensitive about indentation when it comes to lists, gets disoriented. So, is the result replacing the source code in the same column as the #+begin_src ? So I think something has to be fixed in org-babel. I will look at it tomorrow, Regards, -- Nicolas