org-mode.git
39 min agoUse `org-clock-string' whenever possible master
Konubinix [Tue, 26 Aug 2014 07:11:23 +0000]
Use `org-clock-string' whenever possible

* lisp/org-clock.el (org-find-open-clocks):
* lisp/org.el (org-clone-subtree-with-time-shift,
 org-insert-property-drawer, org-at-clock-log-p): Use
 `org-clock-string' whenever possible instead of hardcoded "CLOCK".
(org-clock-line-re): New variable.

7 hours agoorg-faces.el: fix docstring typo
Aaron Ecay [Wed, 27 Aug 2014 01:30:06 +0000]
org-faces.el: fix docstring typo

18 hours agoorg-element: Add :post-affiliated property to all elements
Nicolas Goaziou [Tue, 26 Aug 2014 13:33:13 +0000]
org-element: Add :post-affiliated property to all elements

* lisp/org-element.el (org-element-headline-parser,
  org-element-inlinetask-parser, org-element-item-parser,
  org-element-section-parser, org-element-clock-parser,
  org-element-node-property-parser, org-element-planning-parser,
  org-element-table-row-parser): Add dummy :post-affiliated property.

* lisp/org.el (org--get-expected-indentation, org-indent-line,
  org-indent-region, org-adaptive-fill-function,
  org-toggle-fixed-width, org-forward-paragraph,
  org-backward-paragraph, org-mode-flyspell-verify): Remove nullity
  checks for :post-affiliated.

Even though these elements cannot have affiliated keywords, beginning
of element is a logical default value.  It makes checking the nullity
of the unnecessary.

19 hours agoORG-NEWS: Document `org-export-table-row-in-header-p'
Nicolas Goaziou [Tue, 26 Aug 2014 13:09:04 +0000]
ORG-NEWS: Document `org-export-table-row-in-header-p'

19 hours agoox: Implement `org-export-table-row-in-header-p'
Nicolas Goaziou [Tue, 26 Aug 2014 13:05:52 +0000]
ox: Implement `org-export-table-row-in-header-p'

* lisp/ox.el (org-export-table-row-in-header-p): New function.
(org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): Use new function.

* testing/lisp/test-ox.el (test-org-export/table-row-in-header-p): New
  test.

20 hours agoox: Extend first and last sibling predicates to all elements
Nicolas Goaziou [Tue, 26 Aug 2014 12:41:36 +0000]
ox: Extend first and last sibling predicates to all elements

* lisp/ox.el (org-export-first-sibling-p, org-export-first-sibling-p):
  Extend to all elements and objects.

* testing/lisp/test-ox.el (test-org-export/first-sibling-p,
  test-org-export/last-sibling-p): Add tests.

* etc/ORG-NEWS: Document change.

24 hours agoox-html: Better criterion for first paragraphs in lists
Nicolas Goaziou [Tue, 26 Aug 2014 07:51:20 +0000]
ox-html: Better criterion for first paragraphs in lists

* lisp/ox-html.el (org-html-paragraph): Do not wrap first paragraph in
  an item within <p> tags in the most simple cases.

Thanks to Daniel Clemente for suggesting it.
http://permalink.gmane.org/gmane.emacs.orgmode/89413

25 hours agoob-J: adapt to new `org-babel-process-params'
Oleh Krehel [Tue, 26 Aug 2014 07:16:28 +0000]
ob-J: adapt to new `org-babel-process-params'

* lisp/ob-J.el (org-babel-execute:J): Use `cdr' instead of `nth 1' to
  get the session info.

32 hours agoox-icalendar: Speed up `org-agenda-write' process
Nicolas Goaziou [Mon, 25 Aug 2014 22:08:38 +0000]
ox-icalendar: Speed up `org-agenda-write' process

* lisp/ox-icalendar.el (org-icalendar-create-uid): Remove unused
  optional argument.
(org-icalendar--combine-files): Change signature.  Simplify process.
(org-icalendar-combine-agenda-files): Apply signature change. Do not
check anymore ICALENDAR-MARK property.
(org-icalendar-entry): Do not check anymore ICALENDAR-MARK property.
(org-icalendar-export-to-ics): Comply to comments.
(org-icalendar-export-current-agenda): Rewrite function.

* lisp/org-agenda.el (org-agenda-write): Update docstring.

Instead of parsing every agenda before picking up needed entries, copy
these entries in a temporary buffer, then export it.

43 hours agoMerge branch 'maint'
Nicolas Goaziou [Mon, 25 Aug 2014 13:34:14 +0000]
Merge branch 'maint'

43 hours agoFix `org-promote' error maint
Nicolas Goaziou [Mon, 25 Aug 2014 13:32:35 +0000]
Fix `org-promote' error

* lisp/org.el (org-called-with-limited-levels): Initialize variable.

http://permalink.gmane.org/gmane.emacs.orgmode/90119

43 hours agoMerge branch 'maint'
Nicolas Goaziou [Mon, 25 Aug 2014 13:22:24 +0000]
Merge branch 'maint'

43 hours agoorg-agenda: Fix order when writing to an ".org" file
Nicolas Goaziou [Mon, 25 Aug 2014 13:19:24 +0000]
org-agenda: Fix order when writing to an ".org" file

* lisp/org-agenda.el (org-agenda-write): Write headings in proper
  order.

`org-paste-subtree' leaves point before inserted text, so there is no
need to reverse contents.

http://permalink.gmane.org/gmane.emacs.orgmode/89867

44 hours agoORG-NEWS: Report signature changes
Nicolas Goaziou [Mon, 25 Aug 2014 12:44:07 +0000]
ORG-NEWS: Report signature changes

44 hours agoox-latex: Protect special characters in tags
Nicolas Goaziou [Mon, 25 Aug 2014 12:36:49 +0000]
ox-latex: Protect special characters in tags

* lisp/ox-latex.el (org-latex-format-headline-function,
  org-latex-format-inlinetask-function): Update docstring.
(org-latex-format-headline-default-function,
org-latex-format-inlinetask-default-function): Change signature.
Protect special characters (e.g., "_").
(org-latex-headline, org-latex-inlinetask): Apply signature change.

Thanks to Thorsten Jolitz for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90125

44 hours agoox-latex: Small clean-up
Nicolas Goaziou [Mon, 25 Aug 2014 12:06:21 +0000]
ox-latex: Small clean-up

* lisp/ox-latex.el (org-latex-plain-text): Simplify character
  escaping.
(org-latex-timestamp, org-latex-verse-block, org-latex-compile): Small
refactoring.

2 days agoMerge branch 'maint'
Nicolas Goaziou [Sun, 24 Aug 2014 19:56:57 +0000]
Merge branch 'maint'

2 days agoorgguide: Fix keybinding
Nicolas Goaziou [Sun, 24 Aug 2014 19:56:12 +0000]
orgguide: Fix keybinding

* doc/orgguide.texi (Clocking work time): Fix keybinding.

2 days agoMerge branch 'maint'
Nicolas Goaziou [Sun, 24 Aug 2014 19:29:55 +0000]
Merge branch 'maint'

2 days agoorg-element: Enhance docstring
Nicolas Goaziou [Sun, 24 Aug 2014 19:28:56 +0000]
org-element: Enhance docstring

* lisp/org-element.el (org-element-table-interpreter): Enhance
  docstring.

3 days agoslightly smarter result parsing for js
Eric Schulte [Sun, 24 Aug 2014 03:48:48 +0000]
slightly smarter result parsing for js

* lisp/ob-js.el (org-babel-js-read): Match multi-line results.

4 days agoox-beamer.el: Match latex backend in generation of \author.
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.

4 days 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

4 days 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.

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

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

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

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

4 days 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.

4 days 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.

4 days 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.

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

5 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

5 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.

6 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

6 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

6 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.

6 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.

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

6 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.

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

7 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

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

10 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

11 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.

11 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.

11 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.

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

11 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.

11 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.

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

Conflicts:
lisp/ox-texinfo.el

12 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.

12 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.

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

2 weeks 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.

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

2 weeks 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.

2 weeks 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.

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

2 weeks 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.

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

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

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

2 weeks 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.

2 weeks 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.

2 weeks 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).

2 weeks 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).

2 weeks 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.

2 weeks 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.

2 weeks 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.

2 weeks 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.

2 weeks 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.

2 weeks 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.

2 weeks 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.

2 weeks 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@}

2 weeks 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'.

2 weeks 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.