From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: [babel] Tiny "problems" Date: Wed, 02 Dec 2009 14:17:45 +0100 Message-ID: <87vdgpzf9i.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hello, Here is the Org file is use to illustrate my saying: --8<---------------cut here---------------start------------->8--- * Test file Here is the main SQL script. #+srcname: CP111.sql #+begin_src sql :tangle CP111.sql -- no longer display the count message SET NOCOUNT ON =20=20=20=20=20=20=20=20=20=20 SELECT TOP 10 etpNom, etpID, FROM etp WHERE etpID IN (SELECT actID FROM actions WHERE actID =3D 338) AND <> ORDER BY pfiID #+end_src And here the extra condition: #+srcname: Condition #+begin_src sql -- extra condition pfiAuth =3D 1 AND SUBSTRING(etpCPNum, 1, 3) =3D "111" #+end_src --8<---------------cut here---------------end--------------->8--- Here the "problems" (details, though) I've observed: - srcname must be in column 0 for the highlighting to be correct. - *after* =3DC-c '=3D forth and back, all the blank lines in my source bloc= k (in my example, the one between "SET NOCOUNT ON" and "SELECT TOP 10") are fil= led 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: --8<---------------cut here---------------start------------->8--- -- 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 --8<---------------cut here---------------end--------------->8--- Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode