From 62fc2c108315cc841cdb3733411c5f1e853fe2f4 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Tue, 6 May 2008 11:37:51 +0200 Subject: [PATCH] Add documentation for org-eval.el. --- contrib/lisp/org-eval.el | 46 ++++++++++++++++++++++++++++++++++------ 1 file changed, 40 insertions(+), 6 deletions(-) diff --git a/contrib/lisp/org-eval.el b/contrib/lisp/org-eval.el index 307197ece..0ced33aee 100644 --- a/contrib/lisp/org-eval.el +++ b/contrib/lisp/org-eval.el @@ -1,10 +1,10 @@ -;;; org-eval.el --- Display result of evaluating code in various languanges +;;; org-eval.el --- Display result of evaluating code in various languages ;; Copyright (C) 2008 Free Software Foundation, Inc. ;; ;; Author: Carsten Dominik ;; Keywords: outlines, hypermedia, calendar, wp ;; Homepage: http://orgmode.org -;; Version: 0.03 +;; Version: 0.04 ;; ;; This file is not yet part of GNU Emacs. ;; @@ -27,10 +27,44 @@ ;;; Commentary: ;; ;; This modules allows to include output from various commands into an -;; Org-mode buffer. This technique has been copied from Emacs-Muse, and -;; we try to make it work here in a way as simila as possible to -;; Muse. - +;; Org-mode buffer, both for live display, and for export. +;; This technique has been copied from emacs-wiki and Emacs Muse, and +;; we try to make it work here in a way as similar as possible to +;; Muse, so that people who move between both worlds don't need to learn +;; new syntax. +;; +;; Basically it works like this: +;; +;; (concat "aaa" "bbb") +;; +;; will display "aaabbb" in the buffer and export like that as well. +;; The leading lisp tag will also accept the attributes "markup" and +;; "lang", to specify how the text should be formatted during export. +;; For example, +;; +;; .... +;; +;; will format the result of the lisp form as if it was lisp source +;; code. Internally, it will wrap the text into a +;; +;; #+begin_src emacs-lisp +;; #+end_src +;; +;; structure so that the right things happen when the exporter is running. +;; +;; By default, only the tag is turned on, but you can configure +;; the variable `org-eval-interpreters' to add more interpreters like +;; `perl', `python', or the `shell'. +;; +;; Please note that this mechanism is potentially dangerous, because it +;; executes code that you don't even see. This gives you great power, +;; but also enough rope to hang yourself. And, it gives your friends +;; who send you Org files plenty of opportunity for good and bad jokes. +;; This is also why this module is not turned on by default, but only +;; available as a contributed package. +;; +;; +;; (require 'org) ;;; Customization