org-mode.git
13 hours agoob-comint.el: Fix bug. master
Aaron Ecay [Mon, 1 Sep 2014 04:49:03 +0000]
ob-comint.el: Fix bug.

* lisp/ob-comint.el (org-babel-comint-eval-invisibly-and-wait-for-file):
Fix bug.

The intention is to test whether the string ends with a newline, so we
should just do that.  Otherwise:

(string-match "\n$" "foo\n\nbar") ;; => 3 => :-(

25 hours agoorg-element: Complete 2125806
Nicolas Goaziou [Sun, 31 Aug 2014 17:11:29 +0000]
org-element: Complete 2125806

* lisp/org-element.el (org-element--parse-to): Do not bother checking
  for a planning line at the beginning of buffer.

28 hours agoorg-element: Small optimization
Nicolas Goaziou [Sun, 31 Aug 2014 14:31:59 +0000]
org-element: Small optimization

* lisp/org-element.el (org-element--current-element): Only look after
  planning lines right after parsing a section.
(org-element--next-mode): New function.
(org-element--parse-elements, org-element--parse-to): Use new
function.

28 hours agoorg-element: Recognize planning info only right after a headline
Nicolas Goaziou [Sun, 31 Aug 2014 13:39:35 +0000]
org-element: Recognize planning info only right after a headline

* lisp/org.el (org-planning-line-re): New variable.  Renamed from
  `org-planning-or-clock-line-re'.

* lisp/org-element.el (org-element-paragraph-separate,
  org-element-headline-parser, org-element-inlinetask-parser, ,
  org-element--current-element): Use new variable.
(org-element-planning-parser): Check previous line before parsing
planning info.  When right after a headline, fallback to paragraph
parsing.

* testing/lisp/test-org-element.el (test-org-element/planning-parser):
  Add a test.  Update others.
(test-org-element/timestamp): Remove a test.
* testing/lisp/test-ox.el (test-org-export/handle-options): Update
  test.

31 hours agoorg-license.el: Upgrade to Creative Commons 4.0
David Arroyo Menendez [Sun, 31 Aug 2014 11:19:30 +0000]
org-license.el: Upgrade to Creative Commons 4.0

* contrib/lisp/org-license.el: Change url and text in international license.

32 hours agoFix failing tests
Nicolas Goaziou [Sun, 31 Aug 2014 09:43:38 +0000]
Fix failing tests

* lisp/org.el (org--align-node-property): Properly align properties
  with empty values.

32 hours agoMerge branch 'maint'
Nicolas Goaziou [Sun, 31 Aug 2014 09:43:27 +0000]
Merge branch 'maint'

Conflicts:
lisp/org-element.el

33 hours agoorg-element: Make properties parsing more robust maint
Nicolas Goaziou [Sun, 31 Aug 2014 09:10:56 +0000]
org-element: Make properties parsing more robust

* lisp/org-element.el (org-element-property-drawer-parser,
  org-element-node-property-parser): Ignore lines that are not node
  properties.
(org-element-node-property-interpreter): Allow nil properties.

* lisp/org.el (org-re-property): Fix regexp to match properties with
  empty values.

* testing/lisp/test-org-element.el (test-org-element/node-property):
  Add tests.

Thanks to Eike for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90293

3 days agoorg-table: Add ascii plotting in tables
Thierry Banel [Thu, 28 Aug 2014 20:28:27 +0000]
org-table: Add ascii plotting in tables

* org-table.el (orgtbl-ascii-plot): Top-level function.
(orgtbl-ascii-draw), (orgtbl-uc-draw-grid), (orgtbl-uc-draw-cont):
Functions which go in table formulas for drawing bars.
* org.el: key binding and menu binding

Thanks to Michael Brand and Nicolas Goaziou for feedback and
enhancements.

3 days agoox-beamer: Use \columnwidth instead of \textwidth for columns
Nicolas Goaziou [Fri, 29 Aug 2014 07:47:46 +0000]
ox-beamer: Use \columnwidth instead of \textwidth for columns

* lisp/ox-beamer.el (org-beamer--format-block): Use columnwidth
  instead of textwidth.

Thanks to Julien Cubizolles for suggesting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90246

4 days agoob-C: fix missing function org-babel-expand-body:cpp
Ernesto Durante [Mon, 25 Aug 2014 16:16:01 +0000]
ob-C: fix missing function org-babel-expand-body:cpp

4 days agoorg-babel-eval: compilation-mode to deal with errors in (C/C++/D)
Ernesto Durante [Mon, 25 Aug 2014 15:27:24 +0000]
org-babel-eval: compilation-mode to deal with errors in (C/C++/D)

4 days agoox-icalendar: Small fix
Nicolas Goaziou [Thu, 28 Aug 2014 09:23:50 +0000]
ox-icalendar: Small fix

* lisp/ox-icalendar.el (org-icalendar-export-current-agenda): Add
  missing properties.  Also fix typo for body-only argument.

4 days agoMerge branch 'maint'
Nicolas Goaziou [Thu, 28 Aug 2014 09:10:15 +0000]
Merge branch 'maint'

Conflicts:
lisp/org-element.el

4 days agoorg-element: Interpret headlines according to `org-odd-levels-only'
Nicolas Goaziou [Thu, 28 Aug 2014 09:07:24 +0000]
org-element: Interpret headlines according to `org-odd-levels-only'

* lisp/org-element.el (org-element-headline-interpreter): Take into
  consideration `org-odd-levels-only' value.  Small refactoring.

* testing/lisp/test-org-element.el (test-org-element/headline-interpreter):
  Add test.

4 days agoMerge branch 'maint'
Nicolas Goaziou [Wed, 27 Aug 2014 23:04:01 +0000]
Merge branch 'maint'

4 days agoox-texinfo: Fix link export
Nicolas Goaziou [Wed, 27 Aug 2014 22:55:32 +0000]
ox-texinfo: Fix link export

* lisp/ox-texinfo.el (org-texinfo--get-node): Return a node or anchor
  name.
(org-texinfo--sanitize-content): Fix regexp.
(org-texinfo-link): Fix various bugs in link export.

4 days agoFix exporting radio link with missing radio target
Nicolas Goaziou [Wed, 27 Aug 2014 22:48:17 +0000]
Fix exporting radio link with missing radio target

* contrib/lisp/ox-groff.el (org-groff-link):
* lisp/ox-beamer.el (org-beamer-link):
* lisp/ox-html.el (org-html-link):
* lisp/ox-latex.el (org-latex-link):
* lisp/ox-odt.el (org-odt-link): When radio link has no valid
  target (e.g., this is a subtree export and the radio target is not
  in the exported subtree), simply return contents.

Thanks to Daniel Clement for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90218

5 days agoUse `org-clock-string' whenever possible
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.

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

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

6 days 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'

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

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

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

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

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

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

7 days agoFix `org-promote' error
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

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

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

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

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

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

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

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

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

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

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

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

10 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

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

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

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

10 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

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

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

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

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

11 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

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

11 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

11 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

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

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

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

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

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

12 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

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

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

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

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

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

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

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

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

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

Conflicts:
lisp/ox-texinfo.el

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

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

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

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

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

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

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

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

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

3 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

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

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

3 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).

3 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).

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

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

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

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

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

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

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

3 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@}

3 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'.

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

3 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

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

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

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

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

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

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