Commit Graph

15121 Commits

Author SHA1 Message Date
Eric Schulte 5afd5d9785 optional arguments to org-babel-insert-header-arg
* lisp/ob-core.el (org-babel-insert-header-arg): Optional arguments
  for usage from Emacs Lisp programs.  In addition this function will
  now insert header arguments in the correct place instead of at the
  current point.
2013-10-06 09:07:42 -06:00
Nicolas Goaziou 45d81d47ca Merge branch 'maint' 2013-10-04 21:14:39 +02:00
Nicolas Goaziou 35e5e5b8b0 org-list: Fix misleading docstring
* lisp/org-list.el (org-list-allow-alphabetical): Remove reference to
  unused VALUE.
2013-10-04 21:13:23 +02:00
Nicolas Goaziou 1734eea184 Merge branch 'maint' 2013-10-04 21:12:40 +02:00
Nicolas Goaziou b67ff6073c ox-beamer: Protect fragile commands in sections
* lisp/ox-beamer.el (org-beamer--format-section): Protect fragile
  commands in sections.
2013-10-04 21:11:49 +02:00
Eric Schulte ee6c792ec7 ob-clojure nrepl customization variable
- ensure body is expanded for n-repl as well
  - declare n-repl functions
  - remove require ob-tangle from ob-clojure

* lisp/ob-clojure.el (org-babel-clojure-backend): Customization
  variable to select clojure backend
  (nrepl-eval): Declared function.
  (nrepl-current-connection-buffer): Declared function.
  (org-babel-execute:clojure): Execution now uses customized backend.
2013-10-03 13:25:46 -06:00
Oleh Krehel 7429ceaa0c ob-clojure.el: switch to nREPL as the main method of evaluating Clojure.
Get the old behavior with:
(defalias 'org-babel-execute:clojure 'org-babel--execute-clojure-slime)
2013-10-03 13:06:28 -06:00
Nicolas Goaziou 2020009cc9 Merge branch 'maint' 2013-10-03 13:44:20 +02:00
Nicolas Goaziou 79ee98d755 Fix check-box toggling when point is on a link at an item
* lisp/org.el (org-ctrl-c-ctrl-c): When using C-c C-c at an item with
  point on a link, make sure checkbox, if any, is toggled.

Reported-by: Christoph LANGE <math.semantic.web@gmail.com>
2013-10-03 13:41:09 +02:00
Rick Frankel 6f5180bd9f Fix escaping of links in html export.
* lisp/ox-html.el (org-html-link): Unescape org-escaped links an
  re-escape for html (browser).
2013-10-02 18:26:27 -04:00
Carsten Dominik f871fb6fca Merge branch 'master' of orgmode.org:org-mode 2013-10-01 20:20:04 +02:00
Carsten Dominik 08d9c1b42c Fix two regular expressions
* lisp/org.el (org-property-drawer-re): Make less greedy to avoid
overreaching matches.
(org-clock-drawer-re): Make less greedy to avoid
overreaching matches.
2013-10-01 20:19:42 +02:00
Eric Schulte 01467ae083 remove leading newline when removing a result
This fixes a number of new test failures

* lisp/ob-core.el (org-babel-remove-result): Remove leading newline
  when removing a result.
2013-10-01 06:25:31 -06:00
Eric Schulte 2c5251f0da added Makefile targets to check single tests
e.g., to run a single test without re-compiling Org-mode use the
following.

make single-test-dirty TEST=test-ob/org-babel-remove-result--results-code

This should aid in isolating errors with git bisect.
2013-10-01 06:19:26 -06:00
Vladimir Lomov 11498bf86f remove dangling 'padline' variable
And seems that you miss another 'padline' in function
'org-babel-spec-to-string', line 323. I attached small patch which
removes that line so I can tangle Org document with shell scripts.

* lisp/ob-tangle.el (org-babel-spec-to-string): Remove dangling
  'padline' variable.

TINYPATCH
2013-10-01 06:00:44 -06:00
Carsten Dominik e0dd999a7b Manual: Improvements to summary by Thomas Dye 2013-10-01 05:28:27 +02:00
Carsten Dominik 31d1f2b69d Merge branch 'maint' 2013-09-30 11:02:57 +02:00
Carsten Dominik 3868f45c16 Fix typos 2013-09-30 11:01:29 +02:00
Carsten Dominik d0c797aa5a Fix typos 2013-09-30 10:56:33 +02:00
Carsten Dominik 8e5932acc8 Manual and guide: more small changes 2013-09-30 09:16:18 +02:00
Carsten Dominik 4f77594dca Add --expand option to texi2pdf
This improves macro expansion, because TeX does cause problems with
whitespace when a macro expansion inserts an item.
2013-09-30 08:36:16 +02:00
Carsten Dominik a68f44f08e Manual: small fixes 2013-09-30 08:03:38 +02:00
Carsten Dominik 95784bef22 Manual: Improve activation section 2013-09-30 07:01:33 +02:00
Carsten Dominik fbd604d7f5 Merge branch 'master' of orgmode.org:org-mode 2013-09-29 22:21:07 +02:00
Carsten Dominik afeff01f77 Manual: Shorten Introduction
* doc/org.texi: Remove one useless piece from the introduction.  Modify
a paragraph about key bidings.
2013-09-29 22:20:46 +02:00
Eric Schulte c076b41c9e better directory handling for lisp code blocks
* lisp/ob-lisp.el (org-babel-execute:lisp): Removed an if in which the
  else branch was never taken.
2013-09-29 13:43:59 -06:00
Eric Schulte 5b397e8917 fix output handling of lisp blocks
previously we were conflating results/output with scalar/vector

* lisp/ob-lisp.el (org-babel-execute:lisp): Fix output handling of
  lisp blocks.
2013-09-29 13:42:37 -06:00
Carsten Dominik 817cbca767 Allow regexp separator when converting the region to a table
* lisp/org-table.el (org-table-convert-region): Interpret string SEPARATOR
as regular expression.  Triple `C-u' prefix arg will read a regexp
from the user.
* doc/org.texi: Document that `C-c |' can take a regexp as a separator.

Patch modified from a proposal by Francois.
2013-09-29 12:27:09 +02:00
Nicolas Goaziou f485539d63 Merge branch 'maint' 2013-09-29 10:30:50 +02:00
Nicolas Goaziou d745cd1952 ox-beamer: Add a helpful error message
* lisp/ox-beamer.el (org-beamer--format-block): Return an error
  message when using a special environment as a block type.  Also
  check for incomplete environment definitions.
2013-09-29 10:28:15 +02:00
Carsten Dominik cd5cccd6e9 Manual: Say something about the roots of or in the Introduction 2013-09-28 23:13:12 +02:00
Carsten Dominik 8ead22e095 Merge branch 'guide-maintenance' 2013-09-28 19:55:27 +02:00
Carsten Dominik 5e8abde993 Merge branch 'master' of orgmode.org:org-mode 2013-09-28 19:55:15 +02:00
Carsten Dominik 95ca17550e Manual: Add short contents 2013-09-28 19:54:44 +02:00
Carsten Dominik 85cf5a7a82 More changes to the introduction 2013-09-28 19:46:32 +02:00
Carsten Dominik c920019bc0 Manual: Some trivial reformatting
* doc/org.texi: Trivial reformatting
2013-09-28 18:30:06 +02:00
Carsten Dominik 10c80f94fa Manual: Add babel header arguments to the concept index 2013-09-28 18:30:06 +02:00
Carsten Dominik d8f1643c51 Remove some subsection of ODT documentation from the table of contents
The documentation stays, but not all subsubheadings make it into the
table of contents.
2013-09-28 18:30:06 +02:00
Carsten Dominik 0c6f044c37 Manual: Modernize introduction
doc/org.texi (Introduction): Modernize.
2013-09-28 18:30:06 +02:00
Carsten Dominik 936ef91869 Remove unnecessary node comments 2013-09-28 18:30:06 +02:00
Carsten Dominik 3ddb2a1312 Manual: Standardize capitalisation of node names 2013-09-28 18:30:06 +02:00
Carsten Dominik 1dc68b9723 Manual: Rely on automatic node structure
This patch removes the manual setting of next, previous, and top links
and instead relies on info making this connection from the sectioning
structure.  This makes it easier to change node names.
2013-09-28 18:30:05 +02:00
Carsten Dominik 3ffab650e0 Fix order of contributors to manual
* doc/org.texi: Fix order of contributors to manual.
2013-09-28 18:30:05 +02:00
Eric Schulte 6857d139e1 set default emacs-lisp header args to nil
The difference between elisp and every other language was causing
  confusion, so simpler just to set these to nil.

* lisp/ob-emacs-lisp.el (org-babel-default-header-args:emacs-lisp):
  Set to nil.
2013-09-28 06:37:54 -06:00
Eric Schulte ae21350aaa :padline insertion aware of placement in file
* lisp/ob-tangle.el (org-babel-spec-to-string): Remove padline
  handling from here as there is insufficient information on context.
  (org-babel-tangle): Moved padline handling here where we can test
  for placement in the file.
2013-09-28 06:15:42 -06:00
Eric Schulte 6f90d903e6 Revert "don't insert a padline at the top of the file"
This reverts commit 6215960d99.
2013-09-28 06:11:36 -06:00
Michael Albinus 89f10a11fb * ob-core.el (org-babel-local-file-name): Simplify. (org-babel-process-file-name): Apply `expand-file-name' first. (org-babel-remote-temporary-directory): New defcustom. (org-babel-temp-file): Use it. 2013-09-28 05:37:45 -06:00
Nicolas Goaziou 82837535df ox-publish: Update a docstring
* lisp/ox-publish.el (org-publish-project-alist): Update docstring wrt
  recent Property drawers changes.
2013-09-27 10:16:46 +02:00
Bastien Guerry 33adedda0b Merge branch 'master' of orgmode.org:org-mode 2013-09-26 18:21:51 +02:00
Bastien Guerry 136c2bc2cb contrib/lisp/ox-rss.el (org-rss-publish-to-rss): Create id when publishing
* contrib/lisp/ox-rss.el (org-rss-publish-to-rss): Create id
when publishing.
2013-09-26 18:21:37 +02:00