emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Erik Iverson <eriki@ccbr.umn.edu>
To: Emacs-orgmode@gnu.org
Subject: [babel] variable org-babel-function-def-export-keyword not respected?
Date: Sat, 11 Jun 2011 21:56:20 -0500	[thread overview]
Message-ID: <4DF42AD4.8030505@ccbr.umn.edu> (raw)

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

             reply	other threads:[~2011-06-12  2:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-12  2:56 Erik Iverson [this message]
2011-06-13 21:51 ` [babel] variable org-babel-function-def-export-keyword not respected? Eric Schulte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DF42AD4.8030505@ccbr.umn.edu \
    --to=eriki@ccbr.umn.edu \
    --cc=Emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).