From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: [Babel] Small problem with tangling Date: Thu, 14 Oct 2010 07:53:42 -0600 Message-ID: <87zkugg9m8.fsf@gmail.com> References: <80mxqirxf1.fsf@mundaneum.com> <87mxqinmff.fsf@gmail.com> <80aamhfcni.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=58032 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6OJb-0005WL-Rl for emacs-orgmode@gnu.org; Thu, 14 Oct 2010 09:57:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6OJa-00050k-Oo for emacs-orgmode@gnu.org; Thu, 14 Oct 2010 09:57:51 -0400 Received: from mail-yx0-f169.google.com ([209.85.213.169]:46245) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6OJa-00050f-Lk for emacs-orgmode@gnu.org; Thu, 14 Oct 2010 09:57:50 -0400 Received: by yxk8 with SMTP id 8so2837351yxk.0 for ; Thu, 14 Oct 2010 06:57:50 -0700 (PDT) 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 S=C3=A9bastien Vauban writes: > Hi Eric, > > "Eric Schulte" wrote: >>> [...] empty first line that's always inserted at the beginning of the f= ile. >>> What should I do to get rid of that first *empty* line? >> >> The following inhibits the insertion of blank lines on tangling. >> >> (setq org-babel-tangle-pad-newline nil) > > Of course, that does work as expected. Thanks for the tip. > > Another side-question about a little annoyance: when having just one src = block > to tangle in a big file, and when tangling it, Org(-Babel?) does first ad= d IDs > everywhere in my file, one for every section. > > Could we get rid of that? I don't even understand why one would be neede= d, > though I could easily "accept" (;-)) to see an ID created in the sections > containing elements to tangle. > Hi Seb, This is caused by the tangling code calling `org-store-link' on every code block, which is useful because we sometimes want to store links in the tangled code for jumping back from the code to the relevant place in the original org-mode file. `org-store-link' is called interactively, and it will insert ID values according to the value of `org-link-to-org-use-id', which defaults to `create-if-interactive-and-no-custom-id'. I suppose you could change the value of this variable which should avoid the insertion of custom IDs. Best -- Eric > > Best regards, > Seb