org-mode.git
6 hours agoMerge branch 'maint' master
Nicolas Goaziou [Fri, 19 Sep 2014 23:06:22 +0000]
Merge branch 'maint'

6 hours agoox-ascii: Fix filling with preserve break maint
Nicolas Goaziou [Fri, 19 Sep 2014 23:05:22 +0000]
ox-ascii: Fix filling with preserve break

* lisp/ox-ascii.el (org-ascii--fill-string): Allow filling even when
  `org-export-preserve-breaks' is non-nil.

7 hours agoMerge branch 'maint'
Nicolas Goaziou [Fri, 19 Sep 2014 22:35:09 +0000]
Merge branch 'maint'

Conflicts:
doc/org.texi

7 hours agoorg.texi: Be more explicit about output file name
Nicolas Goaziou [Fri, 19 Sep 2014 22:33:54 +0000]
org.texi: Be more explicit about output file name

* doc/org.texi (Export settings): Be more explicit about how output
  file name is built.

9 hours agoFix 788780296c0642b723598fa09300f2926a39e9f8
Nicolas Goaziou [Fri, 19 Sep 2014 20:45:22 +0000]
Fix 788780296c0642b723598fa09300f2926a39e9f8

9 hours agoorg.texi: Document case-sensitivity of special blocks
Nicolas Goaziou [Fri, 19 Sep 2014 20:42:35 +0000]
org.texi: Document case-sensitivity of special blocks

* doc/org.texi (Special blocks, HTML doctypes, @LaTeX{} specific
  attributes): Take into account case-sensitivity of special blocks.

10 hours agoMerge branch 'maint'
Nicolas Goaziou [Fri, 19 Sep 2014 19:03:27 +0000]
Merge branch 'maint'

10 hours agoFix headline insertion after an empty headline
Nicolas Goaziou [Fri, 19 Sep 2014 18:55:50 +0000]
Fix headline insertion after an empty headline

* lisp/org.el (org-N-empty-lines-before-current): Make sure to delete
  only empty lines, not trailing whitespaces.

* testing/lisp/test-org.el (test-org/insert-heading): Add test.

Thanks to Oleh for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90876

11 hours agoorg-table: fix docstring
Aaron Ecay [Fri, 19 Sep 2014 18:37:46 +0000]
org-table: fix docstring

* lisp/org-table.el (org-table-get): Fix docstring.

19 hours agoob-R: declare ess-current-process-name
Achim Gratz [Fri, 19 Sep 2014 10:03:43 +0000]
ob-R: declare ess-current-process-name

* lisp/ob-R.el: Forward declare `ess-current-process-name'.

20 hours agoMerge branch 'maint'
Achim Gratz [Fri, 19 Sep 2014 09:53:46 +0000]
Merge branch 'maint'

20 hours agoob-sh: compatibility fix for "Marker does not point anywhere" errors in Emacs 23
Achim Gratz [Fri, 19 Sep 2014 09:52:30 +0000]
ob-sh: compatibility fix for "Marker does not point anywhere" errors in Emacs 23

* lisp/ob-sh.el (org-babel-sh-initiate-session): After initiating a
  session, initialize the marker `comint-last-output-start' since it
  is going to be used by the ANSI color filter without further checks
  in Emacs 23 and throws an error.

20 hours agoob-shell: compatibility fix for "Marker does not point anywhere" errors in Emacs 23
Achim Gratz [Fri, 19 Sep 2014 09:34:09 +0000]
ob-shell: compatibility fix for "Marker does not point anywhere" errors in Emacs 23

* lisp/ob-shell.el (org-babel-sh-initiate-session): After initiating a
  session, initialize the marker `comint-last-output-start' since it
  is going to be used by the ANSI color filter without further checks
  in Emacs 23 and throws an error.

21 hours agoox-texinfo: fix bug in 3432681fbe
Achim Gratz [Fri, 19 Sep 2014 08:39:02 +0000]
ox-texinfo: fix bug in 3432681fbe

* lisp/ox-texinfo.el: Add missing argument to call of
  `org-element-property'.

21 hours agoorg-table: for compatibility, use org-file-equal-p
Achim Gratz [Fri, 19 Sep 2014 08:05:15 +0000]
org-table: for compatibility, use org-file-equal-p

* lisp/org-table.el: Predicate function `file-equal-p' is not
  available in older Emacsen, use compatibility function
  `org-file-equal-p' instead.

33 hours agoMerge branch 'master' of orgmode.org:org-mode
Nicolas Goaziou [Thu, 18 Sep 2014 20:09:40 +0000]
Merge branch 'master' of orgmode.org:org-mode

33 hours agoMerge branch 'maint'
Nicolas Goaziou [Thu, 18 Sep 2014 20:08:30 +0000]
Merge branch 'maint'

Conflicts:
lisp/ox-html.el

33 hours agoob-R: make it work with older ESS versions
Achim Gratz [Thu, 18 Sep 2014 19:56:53 +0000]
ob-R: make it work with older ESS versions

* lisp/ob-R.el (org-babel-R-initiate-session): The PROC argument is
  mandatory for older ESS versions.

34 hours agoox-html: Fix linking to deep level headlines
Nicolas Goaziou [Thu, 18 Sep 2014 19:37:07 +0000]
ox-html: Fix linking to deep level headlines

* lisp/ox-html.el (org-html-headline): Make sure even listified
  headlines have proper anchors so internal links can refer to them.
  Small refactoring.

Thanks to Bruce Gilstrap for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90835

2 days agolisp/ob-R.el: use `ess-wait-for-process' to assure clean session startup
chasberry [Wed, 17 Sep 2014 02:57:59 +0000]
lisp/ob-R.el: use `ess-wait-for-process' to assure clean session startup

* lisp/ob-R.el (org-babel-R-initiate-session): Make sure that (R) has
finished before `rename-buffer' is run.

TINYCHANGE

2 days agoParsing and exporting special blocks preserve case
Nicolas Goaziou [Wed, 17 Sep 2014 17:38:06 +0000]
Parsing and exporting special blocks preserve case

* lisp/org-element.el (org-element-special-block-parser):
* lisp/ox-latex.el (org-latex-special-block):
* lisp/ox-html.el (org-html-special-block):
* lisp/ox-man.el (org-man-special-block):
* lisp/ox-odt.el (org-odt-special-block):
* lisp/ox-texinfo.el (org-texinfo-special-block):
* contrib/lisp/ox-groff.el (org-groff-special-block): Preserve case.

* testing/lisp/test-org-element.el (test-org-element/special-block-parser):
  Add test.

3 days agoTiny refactoring
Nicolas Goaziou [Tue, 16 Sep 2014 07:30:29 +0000]
Tiny refactoring

* lisp/org.el (org-hide-block-toggle-maybe): Tiny refactoring.

3 days agoFix `org-hide-block-toggle' return value
Nicolas Goaziou [Tue, 16 Sep 2014 07:25:09 +0000]
Fix `org-hide-block-toggle' return value

* lisp/org.el (org-hide-block-toggle-maybe): Do not return a non-nil
  value when toggling failed.
(org-hide-block-toggle): Update docstring.

* testing/lisp/test-org.el (test-org/hide-block-toggle-maybe): New
  test.

4 days agoFix `org-hide-block-toggle-maybe'
Nicolas Goaziou [Mon, 15 Sep 2014 18:21:20 +0000]
Fix `org-hide-block-toggle-maybe'

* lisp/org.el (org-hide-block-toggle-maybe): Never throw an error.
  Improve docstring.
(org-hide-block-toggle): Improve docstring.

4 days agoFix `org-up-heading-safe'
Nicolas Goaziou [Mon, 15 Sep 2014 16:47:22 +0000]
Fix `org-up-heading-safe'

* lisp/org.el (org-up-heading-safe): Do not throw any error, as
  advertised in the docstring.

4 days agoob-gnuplot: Fix error when table contains dates
Nicolas Goaziou [Mon, 15 Sep 2014 11:47:20 +0000]
ob-gnuplot: Fix error when table contains dates

* lisp/ob-gnuplot.el (org-babel-gnuplot-table-to-data): Dynamically
  bind `org-babel-gnuplot-timestamp-fmt' instead of making it
  buffer-local, since export takes place in another buffer anyway.

Thanks to Thomas Holst for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90709

4 days agoFix "Not at a block" error on dynamic blocks
Nicolas Goaziou [Mon, 15 Sep 2014 11:32:50 +0000]
Fix "Not at a block" error on dynamic blocks

* lisp/org.el (org-hide-block-toggle, org-indent-block): Recognize
  dynamic blocks.

Thanks to Eric S Fraga for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90711

5 days agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Sun, 14 Sep 2014 09:02:51 +0000]
Merge branch 'master' of orgmode.org:org-mode

5 days agoTable formula: Fix for Lisp return value nil
Michael Brand [Sun, 14 Sep 2014 08:44:28 +0000]
Table formula: Fix for Lisp return value nil

* lisp/org-table.el (org-table-eval-formula): Substitute `listp' with
`consp'.

* testing/lisp/test-org-table.el (test-org-table/lisp-return-value):
Fix test.

5 days agoTable formula: Add ERT for Lisp return values
Michael Brand [Sun, 14 Sep 2014 08:43:37 +0000]
Table formula: Add ERT for Lisp return values

* testing/lisp/test-org-table.el (test-org-table/lisp-return-value):
Add test with TODO.

6 days agoorg-element: Fix outdated comment
Nicolas Goaziou [Sat, 13 Sep 2014 20:34:15 +0000]
org-element: Fix outdated comment

6 days agoorg-element: Fix planning parsing
Nicolas Goaziou [Sat, 13 Sep 2014 20:31:06 +0000]
org-element: Fix planning parsing

* lisp/org-element.el (org-element-planning-parser): Remove useless
  check.
(org-element--next-mode): Change signature.
(org-element--parse-elements, org-element--parse-to): Apply signature
change.

* testing/lisp/test-org-element.el (test-org-element/planning-parser):
  Add test.

6 days agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Sat, 13 Sep 2014 13:52:17 +0000]
Merge branch 'master' of orgmode.org:org-mode

6 days agoorg-table: Use "ox.el" internally for radio tables
Nicolas Goaziou [Sat, 23 Aug 2014 23:31:56 +0000]
org-table: Use "ox.el" internally for radio tables

* lisp/org-table.el (org-table-clean-before-export, orgtbl-get-fmt,
  orgtbl-apply-fmt, orgtbl-eval-str, orgtbl-format-line,
  orgtbl-format-section): Remove functions.
(org-table-clean-did-remove-column, *orgtbl-table*, *orgtbl-rtn*,
  *orgtbl-hline*, *orgtbl-sep*, *orgtbl-default-fmt*, *orgtbl-fmt*,
  *orgtbl-efmt*, *orgtbl-lfmt*, *orgtbl-llfmt*, *orgtbl-lstart*,
  *orgtbl-llstart*, *orgtbl-lend*, *orgtbl-llend*): Remove variables.

(org-table-export, orgtbl-send-table): Apply function removal.  Do not
set `org-table-last-alignment' and `org-table-last-column-widths'
anymore.
(org-table-to-lisp, orgtbl-send-replace-tbl): Small refactoring.

(org-table--to-generic-table, org-table--to-generic-row,
org-table--to-generic-cell): New functions.
(orgtbl-to-generic): Rewrite function.  Handle :skip and :skipcols
parameters.
(orgtbl-to-latex, orgtbl-to-html, orgtbl-to-texinfo, orgtbl-to-orgtbl,
orgtbl-to-unicode): Use new `orgtbl-to-generic' features.

* testing/lisp/test-org-table.el (test-org-table/to-generic,
  test-org-table/to-latex, test-org-table/to-texinfo,
  test-org-table/to-html, test-org-table/to-unicode,
  test-org-table/send-region): New tests.

* doc/org.texi (Radio tables, A @LaTeX{} example, Translator
  functions): Update documentation.

* etc/ORG-NEWS (argument): Document new features.

7 days agoox-latex: Tweak table row export
Nicolas Goaziou [Tue, 9 Sep 2014 20:48:10 +0000]
ox-latex: Tweak table row export

* lisp/ox-latex.el (org-latex-table-row): Rewrite code to distinguish
  between regular rows and separators.

7 days agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Fri, 12 Sep 2014 19:40:17 +0000]
Merge branch 'master' of orgmode.org:org-mode

7 days agoFix "Not at a block" error on export blocks
Nicolas Goaziou [Fri, 12 Sep 2014 18:58:47 +0000]
Fix "Not at a block" error on export blocks

* lisp/org.el (org-hide-block-toggle): Fix "Not at a block" error on
  export blocks.

7 days agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Fri, 12 Sep 2014 17:02:50 +0000]
Merge branch 'master' of orgmode.org:org-mode

7 days agoFix "Not at a block" error on special blocks
Nicolas Goaziou [Fri, 12 Sep 2014 16:38:52 +0000]
Fix "Not at a block" error on special blocks

* lisp/org.el (org-hide-block-toggle): Fix "Not at a block" error on
  special blocks.

Thanks to Fabrice Popineau for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90663

7 days agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Fri, 12 Sep 2014 12:14:03 +0000]
Merge branch 'master' of orgmode.org:org-mode

8 days agoorg-element: Fix cache error on empty drawers
Nicolas Goaziou [Thu, 11 Sep 2014 21:19:22 +0000]
org-element: Fix cache error on empty drawers

* lisp/org-element.el (org-element--cache-for-removal): Handle case
  when greater element is totally empty.

Thanks to Malcolm Purvis for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90639

8 days agoMerge branch 'maint'
Nicolas Goaziou [Thu, 11 Sep 2014 16:27:22 +0000]
Merge branch 'maint'

8 days agoorg-src: Fix idle auto-save feature
Nicolas Goaziou [Thu, 11 Sep 2014 16:19:21 +0000]
org-src: Fix idle auto-save feature

* lisp/org-src.el (org-edit-src-code): Fix regexp.
(org-edit-src-exit): Do not remove auto-save timer.  This is
handled by the timer itself.

`org-edit-src-save' calls `org-edit-src-exit', which then clears the
auto-save timer, thus preventing any further auto-saves before the
next `org-edit-src-code' call.

Thanks to Adriaan Sticker for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90650

9 days agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Wed, 10 Sep 2014 09:45:20 +0000]
Merge branch 'master' of orgmode.org:org-mode

9 days agoob-eval: Do not use read-only mode, switch to compilation mode only once
Achim Gratz [Wed, 10 Sep 2014 09:22:43 +0000]
ob-eval: Do not use read-only mode, switch to compilation mode only once

* lisp/ob-eval.el (org-babel-eval): Switch to compilation mode only if
  the current mode is not already (a derived mode of)
  compilation-mode.  Remove the read-only state from the buffer
  directly without using `read-only-mode'.

9 days agoMerge branch 'maint'
Achim Gratz [Wed, 10 Sep 2014 08:51:02 +0000]
Merge branch 'maint'

9 days agomk/org-fixup.el: Do not use toggle-read-only
Achim Gratz [Wed, 10 Sep 2014 08:50:05 +0000]
mk/org-fixup.el: Do not use toggle-read-only

* mk/org-fixup.el (org-make-org-version, org-make-org-loaddefs,
  org-make-local-mk, org-make-letterformat): Do not use
  `toggle-read-only' as it has been obsoleted in 24.4 and the
  replacement read-only-mode should not be used from Lisp in most
  cases. Bind `inhibit-read-only' to t instead.

11 days agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Mon, 8 Sep 2014 13:00:00 +0000]
Merge branch 'master' of orgmode.org:org-mode

11 days agoMerge branch 'maint'
Nicolas Goaziou [Mon, 8 Sep 2014 10:10:28 +0000]
Merge branch 'maint'

11 days agoRevert "ox: Implement predicate for export blocks"
Nicolas Goaziou [Mon, 8 Sep 2014 10:09:52 +0000]
Revert "ox: Implement predicate for export blocks"

This reverts commit 2160b3d2422fb877fbcc6283ae561a9c59b5621a.

11 days agoRevert "ORG-NEWS: Document `export-block' type removal"
Nicolas Goaziou [Mon, 8 Sep 2014 10:01:35 +0000]
Revert "ORG-NEWS: Document `export-block' type removal"

This reverts commit 98b719fb597a9fd03febffe1779115510ef61399.

Conflicts:
etc/ORG-NEWS

11 days agoRevert "Merge export and special blocks within back-ends"
Nicolas Goaziou [Mon, 8 Sep 2014 09:57:27 +0000]
Revert "Merge export and special blocks within back-ends"

This reverts commit fbc7097ffa30225ace2b80e9f7466ee387491c44.

Conflicts:
lisp/ox-texinfo.el

13 days agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Sat, 6 Sep 2014 22:44:33 +0000]
Merge branch 'master' of orgmode.org:org-mode

13 days agoox-html: Fix 9a34a1
Nicolas Goaziou [Sat, 6 Sep 2014 17:03:18 +0000]
ox-html: Fix 9a34a1

* lisp/ox-html.el (org-html-paragraph): Only apply special rule in
  list items.

Thanks to Richard Lawrence for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90532

13 days agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Sat, 6 Sep 2014 08:47:11 +0000]
Merge branch 'master' of orgmode.org:org-mode

13 days agoox: Implement body filter
Nicolas Goaziou [Sat, 6 Sep 2014 08:22:26 +0000]
ox: Implement body filter

* lisp/ox.el (org-export-filters-alist): Add body filter.
(org-export-filter-body-functions): New variable.
(org-export-as): Call body filter.

* doc/org.texi (Advanced configuration):
* etc/ORG-NEWS (argument): Document new filter.

2 weeks agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Fri, 5 Sep 2014 01:06:12 +0000]
Merge branch 'master' of orgmode.org:org-mode

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Thu, 4 Sep 2014 20:15:04 +0000]
Merge branch 'maint'

2 weeks agoorg.texi: Tiny fix
Nicolas Goaziou [Thu, 4 Sep 2014 20:14:23 +0000]
org.texi: Tiny fix

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Wed, 3 Sep 2014 17:56:47 +0000]
Merge branch 'maint'

2 weeks agoorgguide.texi: Small fixes
Nicolas Goaziou [Wed, 3 Sep 2014 17:55:20 +0000]
orgguide.texi: Small fixes

* doc/orgguide.texi (Export options): Small fixes.

Thanks to Alexis Roda for reporting them.

2 weeks agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Tue, 2 Sep 2014 21:34:12 +0000]
Merge branch 'master' of orgmode.org:org-mode

2 weeks agoorg-element: Do not consider property drawers as robusts
Nicolas Goaziou [Tue, 2 Sep 2014 19:18:40 +0000]
org-element: Do not consider property drawers as robusts

* lisp/org-element.el (org-element--cache-for-removal): Do not
  consider property drawers as robusts: if contents are modified,
  remove the whole drawer from cache.

2 weeks agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Tue, 2 Sep 2014 14:23:05 +0000]
Merge branch 'master' of orgmode.org:org-mode

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Tue, 2 Sep 2014 12:56:16 +0000]
Merge branch 'maint'

2 weeks agoorg.texi: Fix Texinfo export documentation
Nicolas Goaziou [Tue, 2 Sep 2014 12:53:24 +0000]
org.texi: Fix Texinfo export documentation

2 weeks agoFix failing tests
Nicolas Goaziou [Tue, 2 Sep 2014 10:45:07 +0000]
Fix failing tests

* lisp/org.el (org--align-node-property): Fix failing tests.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Tue, 2 Sep 2014 10:34:47 +0000]
Merge branch 'maint'

Conflicts:
lisp/org.el

2 weeks agoFix 37bf05
Nicolas Goaziou [Tue, 2 Sep 2014 10:30:57 +0000]
Fix 37bf05

* lisp/org.el (org-re-property): Fix regexp.  Improve docstring.
* testing/lisp/test-org-element.el (test-org-element/node-property):
  Update test.

Thanks to Daimrod for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90383

2 weeks agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Mon, 1 Sep 2014 05:07:37 +0000]
Merge branch 'master' of orgmode.org:org-mode

2 weeks agoob-comint.el: Fix bug.
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 => :-(

2 weeks agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Mon, 1 Sep 2014 03:09:41 +0000]
Merge branch 'master' of orgmode.org:org-mode

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

2 weeks agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Sun, 31 Aug 2014 15:41:45 +0000]
Merge branch 'master' of orgmode.org:org-mode

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

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

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

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

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

Conflicts:
lisp/org-element.el

2 weeks agoorg-element: Make properties parsing more robust
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 weeks agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Fri, 29 Aug 2014 08:34:50 +0000]
Merge branch 'master' of orgmode.org:org-mode

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

3 weeks agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Thu, 28 Aug 2014 16:39:50 +0000]
Merge branch 'master' of orgmode.org:org-mode

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

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

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

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

Conflicts:
lisp/org-element.el

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

3 weeks agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Thu, 28 Aug 2014 08:19:41 +0000]
Merge branch 'master' of orgmode.org:org-mode

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

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

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

3 weeks agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Wed, 27 Aug 2014 12:39:47 +0000]
Merge branch 'master' of orgmode.org:org-mode

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

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

3 weeks agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Tue, 26 Aug 2014 14:23:36 +0000]
Merge branch 'master' of orgmode.org:org-mode

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

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

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