From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Iverson Subject: [babel] variable org-babel-function-def-export-keyword not respected? Date: Sat, 11 Jun 2011 21:56:20 -0500 Message-ID: <4DF42AD4.8030505@ccbr.umn.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVaq8-0002hq-VK for Emacs-orgmode@gnu.org; Sat, 11 Jun 2011 22:55:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QVaq7-0000yi-Q3 for Emacs-orgmode@gnu.org; Sat, 11 Jun 2011 22:55:52 -0400 Received: from pegasus.biostat.wisc.edu ([144.92.73.35]:48819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVaq7-0000yH-At for Emacs-orgmode@gnu.org; Sat, 11 Jun 2011 22:55:51 -0400 Received: from [192.168.1.117] (c-75-72-91-235.hsd1.mn.comcast.net [75.72.91.235]) (authenticated bits=0) by pegasus.biostat.wisc.edu (8.13.6/8.13.6) with ESMTP id p5C2teuT026563 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Sat, 11 Jun 2011 21:55:42 -0500 (CDT) 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: Emacs-orgmode@gnu.org 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