From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] variable org-babel-function-def-export-keyword not respected? Date: Mon, 13 Jun 2011 14:51:15 -0700 Message-ID: <8762o9jsks.fsf@gmail.com> References: <4DF42AD4.8030505@ccbr.umn.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWFG0-0001DT-HL for Emacs-orgmode@gnu.org; Mon, 13 Jun 2011 18:05:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWFFz-0007g3-4k for Emacs-orgmode@gnu.org; Mon, 13 Jun 2011 18:05:16 -0400 Received: from mail-px0-f179.google.com ([209.85.212.179]:55787) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWFFy-0007fy-Uw for Emacs-orgmode@gnu.org; Mon, 13 Jun 2011 18:05:15 -0400 Received: by pxi2 with SMTP id 2so2903123pxi.38 for ; Mon, 13 Jun 2011 15:05:14 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Erik Iverson Cc: Emacs-orgmode@gnu.org Hi Erik, You're right, this functionality appears to have been removed some time ago. There are now two variables which are defined but are never used. 1. org-babel-function-def-export-keyword 2. org-babel-function-def-export-indent Perhaps this functionality should be dropped, if it took this many months for anyone to report it missing it may not be worth the added complexity in the code base. Thoughts? -- Eric Erik Iverson writes: > Hello, > > At some point in the distant org past, I seem to recall that named > source code blocks were exported with their names in tact. Now > (latest git pull, Org-mode version 7.5 (release_7.5.367.gc4737)) the > code is only exported, and not the name of the block. For example, > export the following to HTML. > > * a block > here's a named block > #+source: rand(n) > #+begin_src R > runif(n) > #+end_src") > > This seems in conflict with the doc-string for the following variable. > > (defvar org-babel-function-def-export-keyword "function" > "The keyword to substitute for the source name line on export. > When exporting a source block function, this keyword will > appear in the exported version in the place of source name > line. A source block is considered to be a source block function > if the source name is present and is followed by a parenthesized > argument list. The parentheses may be empty or contain > whitespace. An example is the following which generates n random > \(uniform) numbers. > > #+source: rand(n) > #+begin_src R > runif(n) > #+end_src") > > Am I interpreting this correctly? > > Thanks! > > --e > -- Eric Schulte http://cs.unm.edu/~eschulte/