org-mode.git
15 hours agoox-beamer.el: Match latex backend in generation of \author. master
Aaron Ecay [Thu, 21 Aug 2014 22:09:04 +0000]
ox-beamer.el: Match latex backend in generation of \author.

* lisp/ox-beamer.el (org-beamer-template): Match latex backend in
generation of \author.

21 hours agoMake the regexp matching the beginning of a table more explicit
Konubinix [Wed, 20 Aug 2014 12:32:47 +0000]
Make the regexp matching the beginning of a table more explicit

* org-table.el (org-table-get-remote-range): Enhance regexp.

TINYCHANGE

21 hours agoox-rss.el (org-rss-headline): Skip entries with no PUBDATE
Bastien Guerry [Fri, 22 Aug 2014 13:38:47 +0000]
ox-rss.el (org-rss-headline): Skip entries with no PUBDATE

* contrib/lisp/ox-rss.el (org-rss-headline): Skip entries with
no PUBDATE instead of throwing an error.

Thanks to OSiUX for suggesting this.

22 hours agoMerge branch 'maint'
Nicolas Goaziou [Fri, 22 Aug 2014 12:54:03 +0000]
Merge branch 'maint'

22 hours agoox-md: Fix b8b34ea maint
Nicolas Goaziou [Fri, 22 Aug 2014 12:52:21 +0000]
ox-md: Fix b8b34ea

* lisp/ox-md.el (org-md-link): Fix b8b34ea.

22 hours agoORG-NEWS: Document inline source block export
Nicolas Goaziou [Fri, 22 Aug 2014 12:44:40 +0000]
ORG-NEWS: Document inline source block export

22 hours agoob-core: Preserve inline-ness of source blocks when inserting results
Nicolas Berthier [Fri, 1 Aug 2014 09:28:05 +0000]
ob-core: Preserve inline-ness of source blocks when inserting results

* lisp/ob-core.el (org-babel-insert-result): Preserve inline-ness of
source blocks.

* testing/lisp/test-ob-exp.el: Update newly passing tests.

22 hours agoox-html: Support for exporting inline source code to HTML
Nicolas Berthier [Fri, 13 Jun 2014 14:39:18 +0000]
ox-html: Support for exporting inline source code to HTML

* lisp/ox-html.el (org-html-inline-src-block): support for exporting
inline source code to HTML.

22 hours agoob: Support for exporting inline source code
Nicolas Berthier [Fri, 13 Jun 2014 13:32:54 +0000]
ob: Support for exporting inline source code

* lisp/ob-exp.el (org-babel-exp-inline-code-template): New
customizable variable to export inline source code (similar to
`org-babel-exp-code-template').
(org-babel-exp-code): New `type' argument to differentiate between
inline and standard code blocks.

* lisp/ob-core.el (org-babel-inline-src-block-regexp): Allow empty set
of switches and header arguments as in "src_sh[]{echo foo;}".  Also
permit spaces before them.

* testint/lisp/test-org-element.el
(test-org-element/inline-src-block-parser): Test extended syntax for
inline source code.

* testing/lisp/test-ob-exp.el (ob-exp/exports-inline-code): New
function for testing inline source code handling.  Also add three new
failing tests exhibiting unexpected results with ":results code"
switches.

* testing/lisp/test-ob.el
(test-org-babel/org-babel-get-inline-src-block-matches): Test for
inline source blocks with empty header arguments.

* testing/examples/babel.org: New sections for testing (i) exported
inline source code (used by `ob-exp/exports-inline-code'); (ii)
parsing inline source blocks with empty header arguments (used by
`test-org-babel/org-babel-get-inline-src-block-matches').

Until now pieces of inline source code were handled as standard code
blocks during export.  These changes enable them to be exported.

2 days agoMerge branch 'maint'
Nicolas Goaziou [Thu, 21 Aug 2014 09:08:44 +0000]
Merge branch 'maint'

2 days agoox-md: Allow custom link type export function
Nicolas Goaziou [Thu, 21 Aug 2014 09:05:45 +0000]
ox-md: Allow custom link type export function

* lisp/ox-md.el (org-md-link): Allow custom link type export function.

`md' back-end is now on par with other core export back-ends.

Thanks to Ken Markoff for reponting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90011

2 days agoorg.texi: Add missing publishing properties
Nicolas Goaziou [Thu, 21 Aug 2014 08:51:19 +0000]
org.texi: Add missing publishing properties

* doc/org.texi (Publishing options): Add missing properties.

2 days agoox-latex: fix lost export option
Richard Lawrence [Wed, 20 Aug 2014 23:55:50 +0000]
ox-latex: fix lost export option

* lisp/ox-latex.el (latex): reintroduce `latex-custom-id-labels' option in backend

TINYCHANGE

2 days agoMerge branch 'maint'
Nick Dokos [Thu, 21 Aug 2014 02:18:07 +0000]
Merge branch 'maint'

Revert commit 79873390edd26a44cefc2050c7af470a7ed8fd07.
The fix was wrong and gave rise to a different problem - see

    http://thread.gmane.org/gmane.emacs.orgmode/89945

2 days agoRevert "org-clean-before-export matches non-special columns spuriously"
Nick Dokos [Thu, 21 Aug 2014 02:14:53 +0000]
Revert "org-clean-before-export matches non-special columns spuriously"

This reverts commit 79873390edd26a44cefc2050c7af470a7ed8fd07.
The fix was wrong and gave rise to a different problem  - see

   http://thread.gmane.org/gmane.emacs.orgmode/89945

Revert it for now, since there is a workaround for the original
problem and plan on a correct fix in the near future.

2 days agoob-lilypond: Code cleanup
Achim Gratz [Sun, 17 Aug 2014 08:29:24 +0000]
ob-lilypond: Code cleanup

* lisp/ob-lilypond.el (org-babel-lilypond-OSX-ly-path,
  org-babel-lilypond-OSX-pdf-path, org-babel-lilypond-OSX-midi-path,
  org-babel-lilypond-nix-ly-path, org-babel-lilypond-nix-pdf-path,
  org-babel-lilypond-nix-midi-path, org-babel-lilypond-w32-ly-path,
  org-babel-lilypond-w32-pdf-path, org-babel-lilypond-w32-midi-path,
  org-babel-lilypond-determine-ly-path,
  org-babel-lilypond-determine-pdf-path,
  org-babel-lilypond-determine-midi-path): Remove.
  (org-babel-lilypond-ly-command, org-babel-lilypond-midi-command,
  org-babel-lilypond-pdf-command): Replacement for removed variables
  and functions.  Adapt all calls to the removed functions to use
  these variables instead.
  (org-babel-lilypond-commands): New defcustom for setting up
  the *-command variables.  Keep different defaults for different
  systems as the original code did to avoid tripping up unsuspecting
  users.
  (org-babel-lilypond-execute-tangled-ly,
  org-babel-lilypond-check-for-compile-error): Revert conditions to
  avoid superfluous forms.  Remove unused return values.
* testing/lisp/test-ob-lilypond.el: Do test for new variables and
  replace removed function calls with the appropriate variable
  content.  Exercise the new defcustom thoroughly.

2 days agoMerge branch 'maint'
Achim Gratz [Wed, 20 Aug 2014 19:12:23 +0000]
Merge branch 'maint'

2 days agoob-lilypond: change prefix to org-babel-lilypond
Achim Gratz [Wed, 20 Aug 2014 19:10:00 +0000]
ob-lilypond: change prefix to org-babel-lilypond

* lisp/ob-lilypond.el, testing/lisp/test-ob-lilypond.el: Change prefix
  from `ly-' to `org-babel-lilypond-' throughout.

3 days agoMerge branch 'maint'
Nicolas Goaziou [Tue, 19 Aug 2014 21:37:37 +0000]
Merge branch 'maint'

3 days agoox-texinfo: Fix language case
Nicolas Goaziou [Tue, 19 Aug 2014 21:35:08 +0000]
ox-texinfo: Fix language case

* lisp/ox-texinfo.el (org-texinfo-template): Fix language and encoding
  case.

Thanks to Brian J. Carlson for reporting it and providing a patch.
http://permalink.gmane.org/gmane.emacs.orgmode/89965

6 days agoMerge branch 'maint'
Nicolas Goaziou [Sat, 16 Aug 2014 14:22:48 +0000]
Merge branch 'maint'

6 days agoox-md: Fix blank lines in output
Nicolas Goaziou [Sat, 16 Aug 2014 14:19:01 +0000]
ox-md: Fix blank lines in output

* lisp/ox-md.el (org-md-separate-elements): Outside of lists, preserve
  blank lines between paragraphs and plain lists.

For example

    Consider this list:

    - three
    - four

should become

  # Another test<a id="sec-2"></a>

  Consider this list:

  -   three
  -   four

Thanks to Rafael for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/89840

7 days agoob-R: Fix redundant code.
Aaron Ecay [Sat, 16 Aug 2014 04:46:58 +0000]
ob-R: Fix redundant code.

* lisp/ob-R.el (org-babel-R-check-evaluate-package): Fix redundant
code.

7 days agofix docstring typo
Aaron Ecay [Sat, 16 Aug 2014 04:45:39 +0000]
fix docstring typo

* lisp/org.el (org-insert-heading): Fix docstring typo.

7 days agoob-latex: fixes and improvements
Aaron Ecay [Sat, 16 Aug 2014 04:43:37 +0000]
ob-latex: fixes and improvements

* lisp/ob-latex.el (convert-pdf): Rename function to have
org-babel-latex- prefix.
(org-babel-execute:latex): Use renamed function.  Include :headers
when generating SVG/HTML also.

7 days agoMerge branch 'maint'
Nicolas Goaziou [Fri, 15 Aug 2014 19:52:17 +0000]
Merge branch 'maint'

7 days agoorg-list: Fix failing test
Nicolas Goaziou [Fri, 15 Aug 2014 19:51:42 +0000]
org-list: Fix failing test

* testing/lisp/test-org-list.el (test-org-list/to-texinfo): Fix
  failing test.

7 days agoorg-element: Fix common indentation removal in verse block
Nicolas Goaziou [Fri, 15 Aug 2014 19:46:46 +0000]
org-element: Fix common indentation removal in verse block

* lisp/org-element.el (org-element-normalize-contents): Fix
  indentation removal when there is an empty line within a verse block.
* testing/lisp/test-org-element.el (test-org-element/normalize-contents):
  Add test.

8 days agoMerge branch 'maint'
Nicolas Goaziou [Thu, 14 Aug 2014 12:11:40 +0000]
Merge branch 'maint'

Conflicts:
lisp/ox-texinfo.el

8 days agoox-texinfo: Fix parse tree corruption
Nicolas Goaziou [Thu, 14 Aug 2014 12:08:16 +0000]
ox-texinfo: Fix parse tree corruption

* lisp/ox-texinfo.el (org-texinfo--normalize-headlines): Properly add
  a section to the contents.

8 days agoox-texinfo: Small refactoring
Nicolas Goaziou [Thu, 14 Aug 2014 09:44:52 +0000]
ox-texinfo: Small refactoring

* lisp/ox-texinfo.el (org-texinfo--normalize-headlines): Do not set
  pre blanks since the value is now hard-coded.
(org-texinfo-headline): Force one blank line before contents, when non
empty.  Refactoring.
(org-texinfo-src-block): Refactor code.  Comply to predicate naming.

9 days agoob-forth: Silence byte-compiler
Nicolas Goaziou [Thu, 14 Aug 2014 09:15:37 +0000]
ob-forth: Silence byte-compiler

10 days agolisp/org-agenda.el (org-agenda-refile): Documentation improvement
Grégoire Jadi [Sat, 9 Aug 2014 23:41:16 +0000]
lisp/org-agenda.el (org-agenda-refile): Documentation improvement

* lisp/org-agenda.el (org-agenda-refile): State explicitly that
  '(16) = C-u C-u and that '(64) = C-u C-u C-u.

11 days agoMerge branch 'maint'
Nicolas Goaziou [Mon, 11 Aug 2014 17:48:58 +0000]
Merge branch 'maint'

11 days agoox-texinfo: Fix corner case when fixing a node name
Nicolas Goaziou [Mon, 11 Aug 2014 17:47:47 +0000]
ox-texinfo: Fix corner case when fixing a node name

* lisp/ox-texinfo.el (org-texinfo--sanitize-node): Handle
  " (not)allowed" case.

11 days agoox-texinfo: Do not sanitize sectioning titles
Nicolas Goaziou [Mon, 11 Aug 2014 13:46:21 +0000]
ox-texinfo: Do not sanitize sectioning titles

* lisp/ox-texinfo.el (org-texinfo-headline): Do not sanitize
  sectioning titles.

11 days agoMerge branch 'maint'
Nicolas Goaziou [Mon, 11 Aug 2014 13:45:35 +0000]
Merge branch 'maint'

11 days agoox-texinfo: Remove wrong code comments
Nicolas Goaziou [Mon, 11 Aug 2014 13:44:12 +0000]
ox-texinfo: Remove wrong code comments

* lisp/ox-texinfo.el (org-texinfo-headline): Remove wrong code
  comments.

11 days agoSilence byte-compiler
Nicolas Goaziou [Mon, 11 Aug 2014 13:35:33 +0000]
Silence byte-compiler

11 days agoMerge branch 'maint'
Nicolas Goaziou [Mon, 11 Aug 2014 13:00:57 +0000]
Merge branch 'maint'

Conflicts:
doc/org.texi
lisp/ox-texinfo.el

11 days agoorg.texi: Document menus in Texinfo export
Nicolas Goaziou [Mon, 11 Aug 2014 12:24:51 +0000]
org.texi: Document menus in Texinfo export

* doc/org.texi (Headings and sectioning structure): Document menus.

11 days agoox-texinfo: Remove `not-in-toc' case in headline export
Nicolas Goaziou [Mon, 11 Aug 2014 12:05:27 +0000]
ox-texinfo: Remove `not-in-toc' case in headline export

* lisp/ox-texinfo.el (org-texinfo-headline): Remove `not-in-toc'
  special case for tags.

Check is useless for 2 reasons :

  1. there is no way to control @contents in the file header so
     sectioning name,

  2. menu entries provide their own title.  If it has to be handled,
     that should be elsewhere anyway.

11 days agoox-texinfo: Remove left-over LaTeXism
Nicolas Goaziou [Mon, 11 Aug 2014 11:55:11 +0000]
ox-texinfo: Remove left-over LaTeXism

* lisp/ox-texinfo.el (org-texinfo-headline): Remove LaTeXism (optional
  arguments within square brackets).

11 days agoox-texinfo: Tiny refactoring
Nicolas Goaziou [Mon, 11 Aug 2014 11:44:13 +0000]
ox-texinfo: Tiny refactoring

* lisp/ox-texinfo.el (org-texinfo-info-process): Fix docstring.
(org-texinfo-compile): Do not check for impossible cases (e.g., if the
previous variable contains a function).

11 days agoox-texinfo: Fix a docstring
Nicolas Goaziou [Mon, 11 Aug 2014 00:11:32 +0000]
ox-texinfo: Fix a docstring

* lisp/ox-texinfo.el (org-texinfo-max-toc-depth): Fix docstring.

11 days agoox-texinfo: Remove unused internal functions
Nicolas Goaziou [Sun, 10 Aug 2014 21:48:29 +0000]
ox-texinfo: Remove unused internal functions

* lisp/ox-texinfo.el (org-texinfo--make-option-string,
  org-texinfo--sanitize-headline,
  org-texinfo--sanitize-headline-contents): Remove.

11 days agoox-texinfo: Fix node names
Nicolas Goaziou [Sun, 10 Aug 2014 21:10:57 +0000]
ox-texinfo: Fix node names

* lisp/ox-texinfo.el (org-texinfo--sanitize-node): "@", "{" and "}"
  characters are allowed in a node name.  So are "(" and ")" unless
  "(" starts the name and there is ")" somewhere in the name.  Also
  trim and collapse whitespace characters.  Renamed from
  `org-texinfo--sanitize-menu'.
(org-texinfo--get-node): Do not sanitize node names over zealously.
Ensure returned node names are unique.
(org-texinfo-headline): Only add @node command where it makes sense.

11 days agoox-texinfo: Fix docstrings
Nicolas Goaziou [Sun, 10 Aug 2014 20:55:20 +0000]
ox-texinfo: Fix docstrings

* lisp/ox-texinfo.el (org-texinfo--sanitize-menu,
  org-texinfo--sanitize-content): Fix docstrings.

11 days agoox-texinfo: Fix blank lines in output
Nicolas Goaziou [Sat, 9 Aug 2014 00:01:18 +0000]
ox-texinfo: Fix blank lines in output

* lisp/ox-texinfo.el (org-texinfo--normalize-headlines): Make sure
  a blank line always follows nodes.

11 days agoox-texinfo: Fix menus
Nicolas Goaziou [Fri, 8 Aug 2014 23:54:51 +0000]
ox-texinfo: Fix menus

* lisp/ox-texinfo.el (org-texinfo-make-menu): Change signature.
  Remove some intermediate functions.  Generate the full master menu
  when asked.
(org-texinfo--build-menu):  Use a simpler algorithm.
(org-texinfo--format-entries): Fix entries when both node and title
are different.
(org-texinfo--menu-entries): Renamed from `org-texinfo--generate-menu-list'.
(org-texinfo-headline): Move menu handling to next function.
(org-texinfo-section): Handle menu for current parent.
(org-texinfo--menu-headlines, org-texinfo--generate-detailed): Remove
functions.
(org-texinfo--normalize-headlines): New function.

12 days agoox-texinfo: Fix appendix command
Nicolas Goaziou [Fri, 8 Aug 2014 23:54:11 +0000]
ox-texinfo: Fix appendix command

* lisp/ox-texinfo.el (org-texinfo-headline): Fix @appendix command.

12 days agoox-texinfo: Fix heading text
Nicolas Goaziou [Fri, 8 Aug 2014 22:43:39 +0000]
ox-texinfo: Fix heading text

* lisp/ox-texinfo.el (org-texinfo-headline): Do not sanitize heading
  text for sectioning command.

For example

  * This is ~code~

should be possibly exported as

  @chapter This is @code{code}

not

  @chapter This is @@code@{code@}

13 days agoerror behavior for forth code blocks
Eric Schulte [Sun, 10 Aug 2014 01:35:27 +0000]
error behavior for forth code blocks

* lisp/ob-forth.el (org-babel-forth-session-execute): Add error
  handling for the forth interpreter using
  `org-babel-eval-error-notify'.

13 days agoadd support for forth code blocks
Eric Schulte [Fri, 8 Aug 2014 11:56:20 +0000]
add support for forth code blocks

  Currently only session code block evaluation is supported, however
  this is a reasonable default for forth.

* lisp/org.el (org-babel-load-languages): Add "Forth" to the list of
  loadable languages.

* list/ob-forth.el: New file.

2 weeks agoorg.el: Add function to indent environment inserted by cdlatex-enviroment
Federico Beffa [Thu, 31 Jul 2014 09:08:44 +0000]
org.el: Add function to indent environment inserted by cdlatex-enviroment

* lisp/org.el (org-cdlatex-environment-indent): New function.

New function is bound to "\C-c{" in `org-cdlatex-mode-map' to add
a LaTeX environment and indent it.

TINYCHANGE

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Fri, 8 Aug 2014 22:08:12 +0000]
Merge branch 'maint'

2 weeks agoox-texinfo: Fix ":COPYING: nil" node properties
Nicolas Goaziou [Fri, 8 Aug 2014 22:05:43 +0000]
ox-texinfo: Fix ":COPYING: nil" node properties

* lisp/ox-texinfo.el (org-texinfo--generate-menu-list): ":COPYING:
  nil" is expected to be equivalent to no COPYING property at all.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Fri, 8 Aug 2014 21:57:45 +0000]
Merge branch 'maint'

2 weeks agoorg.texi: Fix typo
Nicolas Goaziou [Fri, 8 Aug 2014 21:57:16 +0000]
org.texi: Fix typo

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Fri, 8 Aug 2014 21:51:50 +0000]
Merge branch 'maint'

2 weeks agoorg.texi: Fix e5aceea
Nicolas Goaziou [Fri, 8 Aug 2014 21:51:09 +0000]
org.texi: Fix e5aceea

2 weeks agoorg.texi: Tiny fixes
Nicolas Goaziou [Fri, 8 Aug 2014 21:43:42 +0000]
org.texi: Tiny fixes

* doc/org.texi (Evaluating code blocks): Use @code instead of @var for
  defcustoms, use @pxref instead of @ref within parenthesis, add
  missing double space at the end of a sentence

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Fri, 8 Aug 2014 21:41:20 +0000]
Merge branch 'maint'

2 weeks agoorg.texi: Fixes to Texinfo documentation
Nicolas Goaziou [Fri, 8 Aug 2014 21:35:24 +0000]
org.texi: Fixes to Texinfo documentation

2 weeks agoorg.texi: Fix compilation errors
Nicolas Goaziou [Fri, 8 Aug 2014 21:05:37 +0000]
org.texi: Fix compilation errors

2 weeks agoorg-list: Fix failing test
Nicolas Goaziou [Fri, 8 Aug 2014 20:57:17 +0000]
org-list: Fix failing test

* testing/lisp/test-org-list.el (test-org-list/to-texinfo): Fix test.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Fri, 8 Aug 2014 20:42:45 +0000]
Merge branch 'maint'

2 weeks agoox-texinfo: Fix blank lines between in items
Nicolas Goaziou [Fri, 8 Aug 2014 20:42:08 +0000]
ox-texinfo: Fix blank lines between in items

* lisp/ox-texinfo.el (org-texinfo-item): Fix blank lines between
  items.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Fri, 8 Aug 2014 20:07:45 +0000]
Merge branch 'maint'

Conflicts:
doc/org.texi
lisp/ox-texinfo.el

2 weeks agoorg.texi: Document Texinfo export back-end
Nicolas Goaziou [Thu, 31 Jul 2014 08:40:18 +0000]
org.texi: Document Texinfo export back-end

2 weeks agoox-org: Update wrt `org-element-block-name-alist' change
Nicolas Goaziou [Fri, 8 Aug 2014 08:34:34 +0000]
ox-org: Update wrt `org-element-block-name-alist' change

* lisp/ox-org.el (org-org-keyword): Do not check for keywords
  targeting other export back-ends since
  `org-element-block-name-alist' doesn't contain such information
  anymore.

2 weeks agoox-org: OPTIONS keyword belong to the template
Nicolas Goaziou [Fri, 8 Aug 2014 08:29:59 +0000]
ox-org: OPTIONS keyword belong to the template

* lisp/ox-org.el (org-org-keyword): Do not handle OPTIONS keywords
  since those are handled in the template.
(org-org-template): Handle OPTIONS keyword.

As a consequence, OPTIONS keyword do not appear anymore when doing
a body-only export.

Thanks to Thorsten Jolitz for suggesting the idea.
http://permalink.gmane.org/gmane.emacs.orgmode/89633

2 weeks agoRevert "ob-R.el: Improve the capturing of output-type results in sessions."
Aaron Ecay [Thu, 7 Aug 2014 18:00:01 +0000]
Revert "ob-R.el: Improve the capturing of output-type results in sessions."

This reverts commit b51746332dca87a35c387b2db0bb678b4c24a4da.

2 weeks agoox-texinfo: Code comments clean-up
Nicolas Goaziou [Wed, 6 Aug 2014 21:53:42 +0000]
ox-texinfo: Code comments clean-up

2 weeks agoFix bug associated with setting image size via ATTR.
Joe Corneli [Thu, 7 Aug 2014 12:42:54 +0000]
Fix bug associated with setting image size via ATTR.

* lisp/org.el (org-display-inline-images): This change is necessary to
  make ATTR work.  Removed unnecessary save-match-data forms.

2 weeks agoorg-element: Accept missing final newlines in block values
Nicolas Goaziou [Thu, 7 Aug 2014 12:45:28 +0000]
org-element: Accept missing final newlines in block values

* lisp/org-element.el (org-element-comment-block-interpreter,
  org-element-example-block-interpreter,
  org-element-src-block-interpreter): Handle values with missing final
  newline, e.g., when built by the user.

* testing/lisp/test-org-element.el (test-org-element/comment-block-interpreter,
  test-org-element/example-block-interpreter,
  test-org-element/src-block-interpreter): Add tests

Thanks to Thorsten Jolitz for suggesting the idea.
http://permalink.gmane.org/gmane.emacs.orgmode/89602

2 weeks agoob-R.el: Improve the capturing of output-type results in sessions.
Aaron Ecay [Thu, 7 Aug 2014 05:51:37 +0000]
ob-R.el: Improve the capturing of output-type results in sessions.

* lisp/ob-R.el (org-babel-R-evaluate-session): Improve the capturing
of R output.

This uses a built-in facility of R to write the output to a file,
rather than trying to capture it in an emacs buffer using ESS (a
process by which the output can get mixed with other irrelevant text,
such as R command prompts).

2 weeks agoob-R.el: fix a bug when a :var is propertized text
Aaron Ecay [Thu, 7 Aug 2014 05:46:11 +0000]
ob-R.el: fix a bug when a :var is propertized text

* lisp/ob-R.el (org-babel-R-assign-elisp): Strip text properties from
strings.

Before this change, babel would try to format propertized strings
using elisp read syntax.  The upshot is that evaluating the following
code block would give an error (in R, not emacs), since the “bar” in
foo-ex gets text properties via font lock:

| #+name: foo-ex
| #+begin_example
| bar
| #+end_example
|
| #+name: foo
| #+begin_src R :var foo=foo-ex
|   foo
| #+end_src

2 weeks agoox-texinfo: Fix plain lists export
Nicolas Goaziou [Wed, 6 Aug 2014 21:46:04 +0000]
ox-texinfo: Fix plain lists export

* lisp/ox-texinfo.el (org-texinfo-plain-list): Fix format string.
  Small refactoring.

2 weeks agoox-texinfo: Allow to set a different title for hard copy
Nicolas Goaziou [Tue, 5 Aug 2014 20:53:19 +0000]
ox-texinfo: Allow to set a different title for hard copy

* lisp/ox-texinfo.el (texinfo): Provide new export property.
(org-texinfo-template): Use dedicated title for hard copy, when
available.

2 weeks agoox-texinfo: Appendix has precedence over regular sectionning
Nicolas Goaziou [Tue, 5 Aug 2014 07:59:00 +0000]
ox-texinfo: Appendix has precedence over regular sectionning

* lisp/ox-texinfo.el (org-texinfo-headline): Always obey to
  a non-nil :APPENDIX: property.  Small refactoring.

2 weeks agoox-texinfo: Fix verse block export
Nicolas Goaziou [Mon, 4 Aug 2014 13:21:51 +0000]
ox-texinfo: Fix verse block export

* lisp/ox-texinfo.el (org-texinfo-verse-block): Generate somewhat
  meaningful Texinfo code instead of LaTeX.

2 weeks agoox-texinfo: Fix table export
Nicolas Goaziou [Mon, 4 Aug 2014 13:03:29 +0000]
ox-texinfo: Fix table export

* lisp/ox-texinfo.el (org-texinfo-table): Remove reference to
  "verbatim" attribute.  Handle table.el tables.  Tiny refactoring.
(org-texinfo-table--org-table, org-texinfo-table--table.el-table):
Remove functions.
(org-texinfo-table-column-widths): Indent code correctly.  Ignore
special column, if any.  Add a comment about the limitation on the
width computation.
(org-texinfo-table-row): Small refactoring.

2 weeks agoox-texinfo: Fix @setfilename command
Nicolas Goaziou [Mon, 4 Aug 2014 09:48:09 +0000]
ox-texinfo: Fix @setfilename command

* lisp/ox-texinfo.el (texinfo): Do not provide a default value for
  @setfilename value.
(org-texinfo-filename): Remove variable.
(org-texinfo-template): Correctly find value for @setfilename command.
If none is possible, do not provide the command at all.

2 weeks agoox: Provide output file name, if any, to back-ends
Nicolas Goaziou [Mon, 4 Aug 2014 08:53:54 +0000]
ox: Provide output file name, if any, to back-ends

* lisp/ox.el (org-export-to-file): Provide output file name in
  communication channel, through :output-file property.

This change is needed to fix back-ends needing this information during
the process, e.g., `texinfo'.

2 weeks agoFix html checkbox output.
Rick Frankel [Wed, 6 Aug 2014 14:24:27 +0000]
Fix html checkbox output.

* lisp/ox-html.el (html): Add missing `:html-checkbox-type' option.

2 weeks agocontrib/lisp/ox-extra.el: Add ignore-headlines filter.
Mark Edgington [Sat, 2 Aug 2014 04:32:29 +0000]
contrib/lisp/ox-extra.el: Add ignore-headlines filter.

* contrib/lisp/ox-extra.el: Add ignore-headlines filter.

Thanks to Eric Schulte for the code.

Signed-off-by: Aaron Ecay <aaronecay@gmail.com>

2 weeks agoob-core.el: add :output-dir header arg to org-babel-common-header-args-w-values
Aaron Ecay [Wed, 6 Aug 2014 04:04:52 +0000]
ob-core.el: add :output-dir header arg to org-babel-common-header-args-w-values

* lisp/ob-core.el (org-babel-common-header-args-w-values): Add
:output-dir'.

Otherwise tthis property is not inherited correctly from
subtree-/file-level properties.

2 weeks agoox-texinfo: Do not hardcode "Manual" in top node
Nicolas Goaziou [Mon, 4 Aug 2014 00:31:36 +0000]
ox-texinfo: Do not hardcode "Manual" in top node

* lisp/ox-texinfo.el (org-texinfo-template): Do not hardcode "Manual"
  in top node.

2 weeks agoox-texinfo: Fix `org-texinfo-classes'
Nicolas Goaziou [Mon, 4 Aug 2014 09:47:40 +0000]
ox-texinfo: Fix `org-texinfo-classes'

* lisp/ox-texinfo.el (org-texinfo-classes): Change default value.
  Update docstring.
(org-texinfo-template): Insert header string from current class after
"@settitle" command.  Always provide "\input texinfo" at the beginning
of the output.

Header string in the class was inserted before "@setfilename".
Texinfo ignores anything between "\input texinfo" and that command,
making any value besides the default one useless.

2 weeks agoox-texinfo: Remove spurious blank lines in output
Nicolas Goaziou [Tue, 5 Aug 2014 08:52:14 +0000]
ox-texinfo: Remove spurious blank lines in output

* lisp/ox-texinfo.el (org-texinfo-template): Remove spurious blank
  lines in output.  Refactor code.

2 weeks agoox-texinfo: Fix multi-line subtitles
Nicolas Goaziou [Sun, 3 Aug 2014 23:17:47 +0000]
ox-texinfo: Fix multi-line subtitles

* lisp/ox-texinfo.el (org-texinfo-template): Fix multi-line subtitles.

2 weeks agoox-texinfo: Check options before inserting TOC
Nicolas Goaziou [Sun, 3 Aug 2014 23:12:45 +0000]
ox-texinfo: Check options before inserting TOC

* lisp/ox-texinfo.el (org-texinfo-template): Make sure table of
  contents are allowed before inserting them.

2 weeks agoox-texinfo: Handle documents without copying information
Nicolas Goaziou [Sun, 3 Aug 2014 23:10:10 +0000]
ox-texinfo: Handle documents without copying information

* lisp/ox-texinfo.el (org-texinfo-template): Check if copying data is
  not nil before using it.

2 weeks agoox-texinfo: Properly handle subauthors and email
Nicolas Goaziou [Sun, 3 Aug 2014 23:02:41 +0000]
ox-texinfo: Properly handle subauthors and email

* lisp/ox-texinfo.el (org-texinfo-template): Fix multi-line
  subauthors.  Correctly add email, when provided.  Check if author
  info is wanted first.

This patch also removes AUTHOR variable since it's up to the user to
set it or not, through a class or a header keyword.

2 weeks agoox-texinfo: Fix docstrings
Nicolas Goaziou [Sun, 3 Aug 2014 22:17:20 +0000]
ox-texinfo: Fix docstrings

* lisp/ox-texinfo.el (org-texinfo-node-description-column,
  org-texinfo-format-drawer-function): Fix docstrings.

2 weeks agoox-texinfo: Fix comments handling
Nicolas Goaziou [Sun, 3 Aug 2014 22:12:11 +0000]
ox-texinfo: Fix comments handling

* lisp/ox-texinfo.el (texinfo): Make sure comments are ignored.
(org-texinfo-comment, org-texinfo-comment-block): Remove functions.

This is consistent with all other back-ends, which ignore any comment.

2 weeks agoox-texinfo: Fix error with wide @direntry
Nicolas Goaziou [Sun, 3 Aug 2014 20:30:11 +0000]
ox-texinfo: Fix error with wide @direntry

* lisp/ox-texinfo.el (org-texinfo-template): Properly pad @direntry
  description.

2 weeks agoprotect lisp code blocks from ending comments
Eric Schulte [Mon, 4 Aug 2014 01:32:14 +0000]
protect lisp code blocks from ending comments

* lisp/ob-lisp.el (org-babel-lisp-dir-fmt): Protect lisp code blocks
  from ending comments by adding newlines behind code in format
  strings.

2 weeks agoox-ascii: Fix error preventing export
Nicolas Goaziou [Sun, 3 Aug 2014 19:41:37 +0000]
ox-ascii: Fix error preventing export

* lisp/ox-ascii.el (org-ascii-filter-paragraph-spacing): Fix "concat:
  Wrong type argument: wholenump, auto" error.

Thanks to Xebar Saram for reporting the bug and to Eric Abrahamsen for
finding it out.
http://permalink.gmane.org/gmane.emacs.orgmode/89096