From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [babel] Tiny "problems" Date: Fri, 04 Dec 2009 22:24:47 -0700 Message-ID: References: <87vdgpzf9i.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NGn8c-0004og-IC for emacs-orgmode@gnu.org; Sat, 05 Dec 2009 00:24:58 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NGn8X-0004kz-9V for emacs-orgmode@gnu.org; Sat, 05 Dec 2009 00:24:57 -0500 Received: from [199.232.76.173] (port=53369 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGn8X-0004kw-2y for emacs-orgmode@gnu.org; Sat, 05 Dec 2009 00:24:53 -0500 Received: from mail-px0-f198.google.com ([209.85.216.198]:57047) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NGn8X-0007Uo-9o for emacs-orgmode@gnu.org; Sat, 05 Dec 2009 00:24:53 -0500 Received: by pxi36 with SMTP id 36so850911pxi.26 for ; Fri, 04 Dec 2009 21:24:51 -0800 (PST) In-Reply-To: <87vdgpzf9i.fsf@mundaneum.com> (=?utf-8?Q?=22S=C3=A9bastien?= Vauban"'s message of "Wed, 02 Dec 2009 14:17:45 +0100") 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: =?utf-8?Q?S=C3=A9bastien?= Vauban Cc: emacs-orgmode@gnu.org Hi S=C3=A9bastien, S=C3=A9bastien Vauban writes: [...] > > Here the "problems" (details, though) I've observed: > > - srcname must be in column 0 for the highlighting to be correct. > The syntax highlighting is really just org-mode comment highlighting, and I don't know that it would be desirable to start highlighting comments which don't start at the beginning of a line. Maybe once babel is able to recognize #+source: and #+results: lines which don't start at column 0 -- currently it doesn't -- then it would make sense from a babel perspective to put some pressure on the syntax coloring. > > - *after* =3DC-c '=3D forth and back, all the blank lines in my source bl= ock (in > my example, the one between "SET NOCOUNT ON" and "SELECT TOP 10") are f= illed > with an amount of whitespaces (and, in my Emacs config, highlighted as > useless spaces). > > - the condition block is not indented properly in the tangled output file; > only the first line is: > Maybe the above two issues could be fixed by setting the `org-src-preserve-indentation' variable's value to t. Since I only need this in some org-mode buffers I set it as a buffer local variable by placing a line like the following at the top of these buffers. # -*- org-src-preserve-indentation: t -*- again this should/will be in the documentation somewhere... Best -- Eric > > -- generated by org-babel-tangle > -- [[id:d7557df2-6921-428f-8433-68fad551abec][CP111.sql]] > -- no longer display the count message > SET NOCOUNT ON > > SELECT TOP 10 > etpNom, > etpID, > FROM etp > WHERE etpID > IN (SELECT actID > FROM actions > WHERE actID =3D 338) > AND > -- extra condition << OK > pfiAuth =3D 1 << not > AND SUBSTRING(etpCPNum, 1, 3) =3D "111" << not > ORDER BY pfiID > -- CP111.sql ends here > > Best regards, > Seb