Eric Schulte
03f13106fb
babel: adding org-babel-expand-body:generic for languages w/o body expansion support
2010-04-23 10:10:00 -06:00
Eric Schulte
626cb079e4
babel: fixed bug in org-babel-expand-body:sass
2010-04-23 10:10:00 -06:00
Dan Davison
7decdec3b2
babel: erase previous contents of preview buffer
2010-04-23 10:10:00 -06:00
Dan Davison
8872454566
org-babel-expand-body:R
2010-04-23 10:10:00 -06:00
Eric Schulte
0917218da5
babel: fixed bug in org-babel-expand-body:python
2010-04-23 10:10:00 -06:00
Eric Schulte
9ff31a5110
babel: bound `org-babel-expand-src-block' to (C-c M-b p)
2010-04-23 10:09:59 -06:00
Eric Schulte
0734bf96ba
org-babel-expand-body:sql
2010-04-23 10:09:59 -06:00
Eric Schulte
1fdc012e3d
org-babel-expand-body:sh
2010-04-23 10:09:59 -06:00
Eric Schulte
e6c979f0d7
org-babel-expand-body:screen
2010-04-23 10:09:59 -06:00
Eric Schulte
35434e1389
org-babel-expand-body:sass
2010-04-23 10:09:59 -06:00
Eric Schulte
394031eb38
org-babel-expand-body:ruby
2010-04-23 10:09:59 -06:00
Eric Schulte
1bcafa5d9f
org-babel-expand-body:python
2010-04-23 10:09:59 -06:00
Eric Schulte
598dc1ad67
org-babel-expand-body:perl
2010-04-23 10:09:59 -06:00
Eric Schulte
41663b0ce4
org-babel-expand-body:oz
2010-04-23 10:09:59 -06:00
Eric Schulte
2759b6621d
org-babel-expand-body:octave
2010-04-23 10:09:59 -06:00
Eric Schulte
8e9f4eec88
org-babel-expand-body:ocaml
2010-04-23 10:09:58 -06:00
Eric Schulte
e07aced178
org-babel-expand-body:matlab
2010-04-23 10:09:58 -06:00
Eric Schulte
7bd0712ac2
org-babel-expand-body:latex
2010-04-23 10:09:58 -06:00
Eric Schulte
dd500005ef
org-babel-expand-body:haskell
2010-04-23 10:09:58 -06:00
Eric Schulte
58c8ddd5c6
org-babel-expand-body:gnuplot
2010-04-23 10:09:58 -06:00
Eric Schulte
01918dffc4
org-babel-expand-body:dot
2010-04-23 10:09:58 -06:00
Eric Schulte
4d862912b2
org-babel-expand-body:ditaa
2010-04-23 10:09:58 -06:00
Eric Schulte
b805089eb8
org-babel-expand-body:css
2010-04-23 10:09:58 -06:00
Eric Schulte
6d61edd1ea
org-babel-expand-body:clojure
2010-04-23 10:09:58 -06:00
Eric Schulte
4ba08f9b5b
org-babel-expand-body:asymptote
2010-04-23 10:09:58 -06:00
Eric Schulte
34eed9b48d
org-babel-expand-body:c, org-babel-expand-body:c++
2010-04-23 10:09:58 -06:00
Eric Schulte
8c8c96972e
org-babel-expand-body:emacs-lisp
2010-04-23 10:09:58 -06:00
Eric Schulte
2fe12b99f4
babel: adding new function `org-babel-expand-src-block'
...
org-babel-expand-body:lang function needs to be implemented by every
language, and is used to expand the body of a code block for
execution or tangling
2010-04-23 10:09:57 -06:00
Dan Davison
788779e16c
babel: typo in org-babel-get-rownames
2010-04-23 10:09:57 -06:00
Dan Davison
c777e729fb
babel: bring R row- and col-names into line with others
2010-04-23 10:09:57 -06:00
Julien Barnier
bd3c85ed60
babel: add :rownames header arg for R
2010-04-23 10:09:57 -06:00
Dan Davison
d5dd160b23
babel: bug fix in org-babel-get-colnames
2010-04-23 10:09:57 -06:00
Eric Schulte
b9aa92ba21
org-babel: splitting `org-babel-pick-name' into it's own function
...
also renaming org-babel-manicure-tables to org-babel-disassemble-tables
2010-04-23 10:09:57 -06:00
Eric Schulte
bfc93ca808
babel: added row/col-name support to all applicable languages
2010-04-23 10:09:57 -06:00
Eric Schulte
10b3da72fc
babel: adding row/col-names functions
...
adding a suite of functions to org-babel.el which can be used to
handle hlines, rownames, and columnnames in input tables. These
functions can be called from any org-babel-language.el file.
done in close collaboration with Dan Davison
2010-04-23 10:09:57 -06:00
Eric Schulte
0c8b86e9a9
org-babel: keep within 80 columns
...
this is exclusively whitespace and indentation changes, with the
goal of cleaning up the file, and keep all lines within 80 columns
2010-04-23 10:09:57 -06:00
Eric Schulte
927ff1125b
babel: `org-babel-ref-index-list' now converts trivial lists to scalars
...
Thanks to Darlan Cavalcante Moreira for this suggestion.
2010-04-21 09:35:13 -06:00
Carsten Dominik
c6ea2a1457
Use overlay-in and overlay-at instead of compatibility functions
2010-04-20 12:17:06 +02:00
Carsten Dominik
97e20048b2
Use `add-to-invisibility-spec' directly
2010-04-18 19:41:05 +02:00
Carsten Dominik
b35b9914e6
Revert "Use `add-to-invisibility-spec' directly"
...
This reverts commit c2e5b13a2d
.
2010-04-18 19:38:10 +02:00
Carsten Dominik
c2e5b13a2d
Use `add-to-invisibility-spec' directly
2010-04-18 19:26:30 +02:00
Carsten Dominik
bb0ef787b7
Require calendar already on top level in org.el
2010-04-18 16:50:13 +02:00
Carsten Dominik
f45e6a28b1
Use the normal overlay API, not Org's one
2010-04-18 16:49:58 +02:00
Eric Schulte
3652689944
org-mime: removed short string " xx " from semi syntax
2010-04-16 09:21:36 -06:00
Eric Schulte
3b5c85fb95
org-mime: WL is now fully supported -- thanks to Eric S. Fraga
2010-04-15 09:40:03 -06:00
Eric Schulte
a2769bef61
org-mime: bug fixes, thanks to Eric S Fraga and Andrew Hyatt for their debugging help
2010-04-14 09:12:41 -06:00
Eric Schulte
b617a457ae
org-mime: change org-mime-org-export' to more closely mimic
org-run-like-in-org-mode'
2010-04-12 11:21:59 -06:00
Eric Schulte
70ba21e699
babel: new function `org-babel-tangle-publish' allows for tangling during project publish
2010-04-11 23:58:44 -06:00
Eric Schulte
7cbb35920d
org-babel-c: new header argument ":main no" allows inhibiting main wrap
2010-04-10 15:54:40 -06:00
Eric Schulte
99a07f1d4a
org-babel-c: cleaning up header arguments
2010-04-10 15:43:31 -06:00
Eric Schulte
0e8c9f7a49
org-babel: no longer over evaluating header arguments
2010-04-10 15:43:19 -06:00
Eric Schulte
3386a702f8
org-babel: all languages now returning lists as pure emacs-lisp, not quoted emacs-lisp
2010-04-10 15:15:06 -06:00
Eric Schulte
722dd7eb5c
org-mime: cleaned `org-mime-default-header' from text/plain exports
2010-04-10 15:15:05 -06:00
Dan Davison
59d499ff51
babel: Allow table to end neatly with terminal hline
...
Prior to this, a terminal hline would leave dangling empty cells:
#+TBLNAME: A
|---+---+---|
| a | b | c |
|---+---+---|
#+begin_src emacs-lisp :var tab=A
tab
#+end_src
#+results:
|---+---+---|
| a | b | c |
|---+---+---|
| | | |
2010-04-10 16:49:40 -04:00
Dan Davison
8c827ba5ba
babel: Allow output tables to start with 'hline
2010-04-10 16:12:28 -04:00
Eric Schulte
98b4ae28a9
babel: allow lisp quoted expansion of variable values when starting with `
2010-04-09 19:06:07 -06:00
Eric Schulte
8258daf439
added org-mime.el to contrib -- allows HTML email composition with Org-mode
...
see http://orgmode.org/worg/org-contrib/org-mime.php for
documentation
much thanks to everyone on the "using orgmode to send html mail"
thread (see http://thread.gmane.org/gmane.emacs.orgmode/23153 )
especially David Maus for ideas, discussion, and suggestions
2010-04-09 10:26:57 -06:00
Dan Davison
f846663ce6
babel: Do not add indentation to perl code.
...
Thanks to Łukasz Stelmach.
2010-04-09 08:45:18 -04:00
Dan Davison
0f83b2d203
babel: allow disabling of noweb expansion during tangling
2010-04-08 16:14:28 -04:00
Dan Davison
38d6bf3f6c
babel: allow assigning of variables when preparing R session
...
This is already in place for other languages, but seems to have been
forgotten for R.
2010-04-08 15:26:08 -04:00
Eric Schulte
caaf755192
babel: org-babel-latex adjusts to the new org latex setup
2010-04-07 22:43:37 -06:00
Dan Davison
e48b8bf577
babel: return string results from matlab as strings
...
Thanks to Bob Jansen
2010-04-07 18:44:58 -04:00
Dan Davison
f03c981fc0
babel: return string results from octave as strings
...
Thanks to Darlan Cavalcante
2010-04-07 15:51:04 -04:00
Eric Schulte
8d405783cb
babel: safer modification of `call-process-region'
2010-04-04 17:15:12 -06:00
Eric Schulte
8ef104195f
babel: use wildcard "*" characters in `org-babel-ref-index-list' to index entire ranges
2010-04-02 08:46:13 -06:00
Dan Davison
40a8933ba6
babel: allow R to produce svg format output
2010-04-01 18:45:59 -04:00
Carsten Dominik
c1ee3cc3d9
Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode
2010-03-31 00:16:13 +02:00
Carsten Dominik
28b1059f09
Snow Leopard compatibility for org-mac-iCal.el
2010-03-31 00:16:07 +02:00
Dan Davison
3637efe647
babel: Don't use language major-mode when expanding noweb references
...
There is no longer any need for the language major mode.
2010-03-30 10:20:18 -04:00
Dan Davison
e32c066874
babel: check that language major-mode is available during tangling
2010-03-30 10:20:10 -04:00
Eric Schulte
2675848d37
babel: org-babel-c now responds to :cmdline header argument
2010-03-29 12:26:53 -06:00
Bernt Hansen
f2abb650fb
Add completions for checkbox targets
...
Add the new property values to the completion list.
2010-03-28 22:10:24 -04:00
Eric Schulte
e8a125bed7
babel: now taking headline properties into account for lob calls
2010-03-28 16:53:00 -06:00
Dan Davison
a23ca4529f
babel: Get rid of parameter inheritance by reference blocks
2010-03-27 18:49:00 -04:00
Dan Davison
36351d26a9
Merge branch 'master' of git://repo.or.cz/org-mode
2010-03-27 16:18:27 -04:00
Dan Davison
47571965d4
babel: don't process emacs-lisp params twice
2010-03-27 15:59:53 -04:00
Eric Schulte
8ecc86d49e
babel: better variable initialization for org-babel-c
2010-03-27 08:20:38 -06:00
Eric Schulte
fc28dd538b
babel: shorter language names no longer shadow larger names
...
Previously "R" could overshadow "Ruby", and "C" could overshadow
"Clojure", causing blocks of the longer language name to fail to
load. This issue has now been fixed
2010-03-26 20:54:16 -06:00
Eric Schulte
22e4cd9b6d
babel: org-babel-c more robust, better error messages and c++ support
2010-03-26 19:35:31 -06:00
Eric Schulte
b61019489c
babel: org-babel-C now displays compilation error messages
2010-03-26 17:12:43 -06:00
Eric Schulte
e3fbc98b26
babel: removed errant reference to R from org-babel.el
2010-03-26 16:28:25 -06:00
Eric Schulte
17790c7dad
babel: limited initial support for C and similar languages
2010-03-26 16:28:23 -06:00
Eric Schulte
f400632f94
babel: when passing values from a table an extra '$' prefix forces literal
...
thanks to Maurizio Vitale for the suggestion. This allows literal
values to be passed to code blocks through `sbe' without forcing the
use of quotes inside the table.
2010-03-25 11:09:38 -06:00
Eric Schulte
727aa263cb
babel: src block regexps are more robust to embedded "[begin|end]_src" in block body
2010-03-22 15:19:33 -06:00
Eric Schulte
32bbd3f3bb
babel: variable references which look like lisp forms are now evaluated
...
for example, the following simple example
#+begin_src emacs-lisp :var two=(+ 1 1)
(sqrt two)
#+end_src
#+results:
: 1.4142135623730951
Or this more interesting usage, which pulls variable values from
headline properties
*** example headline w/property
:PROPERTIES:
:special: 89
:last-name: schulte
:END:
#+begin_src emacs-lisp :var special=(string-to-number (org-entry-get nil "special" t))
(+ special 1)
#+end_src
#+results:
: 90
#+begin_src emacs-lisp :var last-name=(org-entry-get nil "last-name" t))
(message "hello %s" last-name)
#+end_src
#+results:
: hello schulte
2010-03-22 15:19:32 -06:00
Dan Davison
abf0a50d1b
babel: Ensure that inline code blocks produce string output on export
2010-03-19 10:08:16 -04:00
Dan Davison
adb2f3f590
babel: Add octave and matlab support
2010-03-18 14:45:39 -04:00
Dan Davison
aa0e4b86ce
babel: Fix org-babel-load-file
...
This was broken by 29a2ab0047
2010-03-18 14:30:54 -04:00
Dan Davison
73d8e57685
babel: Allow tramp syntax when supplying :tangle filename
...
Patch by Rémi Vanicat.
2010-03-17 21:03:21 -04:00
Dan Davison
29a2ab0047
babel: when tangling do not add extension if filename supplied
2010-03-17 20:09:06 -04:00
Dan Davison
6976d9fc79
babel: org-babel-switch-to-session [C-c M-b z]
...
org-babel-pop-to-session is an alias of this
2010-03-16 12:57:28 -04:00
Dan Davison
485781ed40
babel: set default-directory in org-babel-pop-to-session
2010-03-13 14:02:47 -05:00
Dan Davison
f4ae431706
babel: Make code block params available when initiating session
2010-03-13 14:02:31 -05:00
Dan Davison
215d11c092
babel: New hook org-babel-after-execute-hook
...
Runs at the end of org-babel-execute-src-block
2010-03-13 14:02:22 -05:00
Dan Davison
ba4d698fa1
babel: Provide notification of errors during code execution
...
This deals with external process :results value mode for R, ruby,
python, perl and clojure: if the shell process has a non-zero exit
code, a buffer containing stderr is displayed.
2010-03-05 11:32:18 +00:00
Dan Davison
4e9a2d4efd
babel: Fix bug in shell-command-on-region
...
Prior to this commit,
OUTPUT-BUFFER nil
REPLACE 'replace
ERROR-BUFFER 'current-buffer
resulted in stdout going with stderr to the current buffer, contra the
docstring. With this change stdout is discarded in this case. The
docstring does stipulate that stdout always should go to *Shell
Command Output*; this change does not make that happen in this case.
2010-03-05 11:32:11 +00:00
Dan Davison
05986e95ea
babel: Introduce org-babel copy of shell-command-on-region
...
At this commit, org-babel-shell-command-on-region is a direct copy of
shell-command-on-region. In addition to switching to use the org-babel
version, we change the argument passed so that they agree with the
docstring of s-c-o-r.
Despite the change in arguments, the same behaviour results because
s-c-o-r does not behave as documented in emacs23. Future commits will
be able to fix these bugs in the org-babel version, as necessary.
2010-03-05 11:32:04 +00:00
Dan Davison
ed7b8bfcca
babel: clojure: read results remotely when necessary
2010-03-03 22:00:08 +00:00
Dan Davison
54c7b04734
babel: clojure: use shell-command-on-region
2010-03-03 21:59:32 +00:00
Dan Davison
a8c1a49b77
babel: Read perl results remotely when necessary.
2010-03-03 16:11:04 +00:00