From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: org-babel-tangle-w-comments has no effect in R? Date: Fri, 02 Jul 2010 14:02:28 -0700 Message-ID: <87bpapwqaj.fsf@gmail.com> References: <87r5jnqke0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=33415 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUnNa-0000i0-DS for emacs-orgmode@gnu.org; Fri, 02 Jul 2010 17:02:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OUnNY-0002rW-9C for emacs-orgmode@gnu.org; Fri, 02 Jul 2010 17:02:33 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:44824) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUnNY-0002rR-2n for emacs-orgmode@gnu.org; Fri, 02 Jul 2010 17:02:32 -0400 Received: by pzk33 with SMTP id 33so1120528pzk.0 for ; Fri, 02 Jul 2010 14:02:31 -0700 (PDT) In-Reply-To: (Rainer M. Krug's message of "Fri, 2 Jul 2010 09:22:43 +0200") 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: Rainer M Krug Cc: emacs-orgmode Hi Rainer, Rainer M Krug writes: [...] >> >> I think that moving forward it might make sense to remove the >> org-babel-tangle-w-comments variable, as it's confusing to have two >> points of control for comments during tangling. Also, it looks like I >> need to add the :comments header argument to the babel documentation. >> > > Both points agreed. > Great, I'll put together a patch removing this variable. > > In addition: is it possible to customize the format for all comments > (on a per file basis and / or a per block basis)? i.e. I don't need > the file name, as all blocks are coming from one file. I know about > > #+srcname: > > but is there a variable for the line number (I guess that is covered by the > request posted in another thread) one could use? > We could very easily introduce a customizable `org-babel-tangle-comment-format-string', in fact I think this would be a very good idea. > > Also, would it be possible to include a link in the comment block, so > that clicking on that link actually opens the org-file file at the > location of the source block? That would make editing the code really > easy. > That was the goal of the current comment syntax, unfortunately I don't know of a good way to activate Org-mode style links in the comments of source code files. Rest assured once that feature exists (and I know about it) we'll have such links. Best -- Eric