ob-org.el 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. ;;; ob-org.el --- org-babel functions for org code block evaluation
  2. ;; Copyright (C) 2010 Free Software Foundation, Inc.
  3. ;; Author: Eric Schulte
  4. ;; Keywords: literate programming, reproducible research
  5. ;; Homepage: http://orgmode.org
  6. ;; Version: 7.01trans
  7. ;; This file is part of GNU Emacs.
  8. ;; GNU Emacs is free software: you can redistribute it and/or modify
  9. ;; it under the terms of the GNU General Public License as published by
  10. ;; the Free Software Foundation, either version 3 of the License, or
  11. ;; (at your option) any later version.
  12. ;; GNU Emacs is distributed in the hope that it will be useful,
  13. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. ;; GNU General Public License for more details.
  16. ;; You should have received a copy of the GNU General Public License
  17. ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  18. ;;; Commentary:
  19. ;; This is the simplest of code blocks, where upon evaluation the
  20. ;; contents of the code block are returned in a raw result.
  21. ;;; Code:
  22. (require 'ob)
  23. (defvar org-babel-default-header-args:org
  24. '((:results . "raw") (:exports . "results"))
  25. "Default arguments for evaluating a org source block.")
  26. (defun org-babel-expand-body:org (body params &optional processed-params)
  27. "Expand BODY according to PARAMS, return the expanded body." body)
  28. (defun org-babel-execute:org (body params)
  29. "Execute a block of Org code with.
  30. This function is called by `org-babel-execute-src-block'."
  31. body)
  32. (defun org-babel-prep-session:org (session params)
  33. "Return an error because org does not support sessions."
  34. (error "Org does not support sessions"))
  35. (provide 'ob-org)
  36. ;; arch-tag: 130af5fe-cc56-46bd-9508-fa0ebd94cb1f
  37. ;;; ob-org.el ends here