From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hsiu-Khuern Tang Subject: Re: Unnecessary comma escapes in HTML export of #+INCLUDE files Date: Tue, 1 Sep 2009 15:03:13 -0700 Message-ID: <20090901220312.GP4172@hplhtang.hpl.hp.com> References: <20090722011304.GY16388@hplhtang> <87tz15jgv3.fsf@bzg.ath.cx> <20090722173504.GZ16388@hplhtang> <87vdlizxha.fsf@bzg.ath.cx> <20090724054520.GB2207@hplhtang> Reply-To: Hsiu-Khuern Tang Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MibU2-0002rD-7Z for emacs-orgmode@gnu.org; Tue, 01 Sep 2009 18:05:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MibTx-0002fA-Il for emacs-orgmode@gnu.org; Tue, 01 Sep 2009 18:05:45 -0400 Received: from [199.232.76.173] (port=53806 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MibTx-0002ez-7F for emacs-orgmode@gnu.org; Tue, 01 Sep 2009 18:05:41 -0400 Received: from madara.hpl.hp.com ([192.6.19.124]:62288) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MibTw-0001uT-9y for emacs-orgmode@gnu.org; Tue, 01 Sep 2009 18:05:40 -0400 Received: from mailhub-pa1.hpl.hp.com (mailhub-pa1.hpl.hp.com [15.25.115.25]) by madara.hpl.hp.com (8.14.3/8.14.1/HPL-PA Relay) with ESMTP id n81M3nnd013253 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 1 Sep 2009 15:03:49 -0700 (PDT) Received: from hplhtang.hpl.hp.com (hplhtang.hpl.hp.com [15.4.92.39]) by mailhub-pa1.hpl.hp.com (8.14.3/8.14.3/HPL-PA Hub) with ESMTP id n81M3nKH003801 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 1 Sep 2009 15:03:49 -0700 Received: from htang by hplhtang.hpl.hp.com with local (Exim 4.69) (envelope-from ) id 1MibRZ-0003Tf-6W for emacs-orgmode@gnu.org; Tue, 01 Sep 2009 15:03:13 -0700 Content-Disposition: inline In-Reply-To: <20090724054520.GB2207@hplhtang> 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" * 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. -- Best, Hsiu-Khuern.