From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Unnecessary comma escapes in HTML export of #+INCLUDE files Date: Tue, 01 Sep 2009 18:47:51 -0400 Message-ID: <9119.1251845271@alphaville.usa.hp.com> References: <20090722011304.GY16388@hplhtang> <87tz15jgv3.fsf@bzg.ath.cx> <20090722173504.GZ16388@hplhtang> <87vdlizxha.fsf@bzg.ath.cx> <20090724054520.GB2207@hplhtang> <20090901220312.GP4172@hplhtang.hpl.hp.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MicAM-00021G-LN for emacs-orgmode@gnu.org; Tue, 01 Sep 2009 18:49:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MicAH-0001nL-EM for emacs-orgmode@gnu.org; Tue, 01 Sep 2009 18:49:29 -0400 Received: from [199.232.76.173] (port=39636 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MicAH-0001n4-1X for emacs-orgmode@gnu.org; Tue, 01 Sep 2009 18:49:25 -0400 Received: from g4t0017.houston.hp.com ([15.201.24.20]:13558) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MicAG-0001rf-II for emacs-orgmode@gnu.org; Tue, 01 Sep 2009 18:49:24 -0400 Received: from smtp2.fc.hp.com (smtp.fc.hp.com [15.11.136.114]) by g4t0017.houston.hp.com (Postfix) with ESMTP id 910C038491 for ; Tue, 1 Sep 2009 22:47:53 +0000 (UTC) In-Reply-To: Message from Hsiu-Khuern Tang of "Tue, 01 Sep 2009 15:03:13 PDT." <20090901220312.GP4172@hplhtang.hpl.hp.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: "emacs-orgmode@gnu.org" Hsiu-Khuern Tang wrote: > * On Fri 05:45AM +0000, 24 Jul 2009, Tang, Hsiu-Khuern (hsiu-khuern.tang@hp.com) wrote: > > * On Fri 01:22AM +0000, 24 Jul 2009, Bastien (bastienguerry@googlemail.com) wrote: > > > Hi Hsiu-Khuern, > > > > > > I've just pushed a fix for this: when the "src" switch is present, > > > including a file won't escape org-like lines. With a bare #+include > > > we still escape lines starting with * or #. > > > > > > Please test it and report any problem. > > > > It works beautifully now. Thank you very much for the fix! > > It looks Org has reverted to the old behavior: inserting a comma at a beginning > of every line in the #INCLUDE'd file that starts with whitespace followed by #. > > For example, if you export this as ascii (see > http://article.gmane.org/gmane.emacs.orgmode/15718): > > File 1: a.org > ================================================== > * test > > #+INCLUDE: "a.sh" src sh > ================================================== > > File 2: a.sh > ================================================== > #!/bin/sh > > ## shell comment > echo "This is a test" > ================================================== > > the output contains the line ", ## shell comment". > > Related question: what git commands does one use to obtain all the commits that > changed a particular range of lines in a file? I'm quite lost with git. > There was some churn for this particular functionality, but since I don't really understand what is *supposed* to happen, I'll just refer you (and Carsten and Bastien, both of whom made -possibly conflicting- changes to this functionality) to the following exchange in the archive, hoping it will shed some light and lead to a satisfactory resolution for all involved: http://thread.gmane.org/gmane.emacs.orgmode/16244/focus=16259 The relevant commits are 68b65e8f480c17cfe1024001c236eb4065893f4d and dfd3749a273cc9f9a1d954363ea6de87049d17a7 Thanks, Nick