org-mode.git
25 hours agoox-latex: support :float nil with caption for minted listings master
Aaron Ecay [Sat, 23 Aug 2014 07:16:11 +0000]
ox-latex: support :float nil with caption for minted listings

* lisp/ox-latex.el (org-latex-src-block): Support :float nil with
caption for minted.
(org-latex-listings): Edit docstring to describe this usecase.
* lisp/org.el (org-latex-default-packages-alist): Add “capt-of”
package.

This takes advantage of the capt-of package’s \captionof command,
which allows to insert a caption (with autogenerated number and
\ref-able label) without creating a floating environment.  One example
of where this is useful is in the case of a minted source code listing
that spans more than one page.  (Latex floats can’t be larger than a
page, generally speaking.)

The listings package already handles this case using its own mechanism.

36 hours agoMerge branch 'maint'
Nicolas Goaziou [Mon, 22 Sep 2014 15:43:30 +0000]
Merge branch 'maint'

Conflicts:
lisp/ox-latex.el

36 hours agoox-latex: Fix link to unnumbered headline maint
Nicolas Goaziou [Mon, 22 Sep 2014 15:40:55 +0000]
ox-latex: Fix link to unnumbered headline

* lisp/ox-latex.el (org-latex-link): Improve test for unnumbered
  headlines.

2 days agoob-ruby: clean up the session code some more and work around an I/O sync problem...
Achim Gratz [Sun, 21 Sep 2014 15:59:49 +0000]
ob-ruby: clean up the session code some more and work around an I/O sync problem in comint

* lisp/ob-ruby.el (org-babel-ruby-evaluate): Clean up the session code
  and remove a superfluous `butlast'.  Work around a problem in comint
  where the first prompt in a session may be printed after the
  evaluation has already started, thus producing a spurious line in
  the output.

* testing/lisp/test-ob-ruby.el (test-ob-ruby/session-output-1,
  test-ob-ruby/session-output-2 test-ob-ruby/session-output-3): Test
  correct transfer of interpreter state across several session
  invocations.

2 days agoob-ruby: fix a24775dc79 again
Achim Gratz [Sun, 21 Sep 2014 10:57:44 +0000]
ob-ruby: fix a24775dc79 again

* lisp/ob-ruby.el (org-babel-ruby-evaluate): Temporarily disable the
  irb prompt to ensure that the output is properly recognized using
  the standard settings from inf-ruby and no extra settings in .irbrc
  or other configuration files from Ruby.  Remove superfluous
  `comint-send-input' that produced a spurious empty line in output.
* testing/lisp/test-ob-ruby.el (test-ob-ruby/session-output): Remove
  spurious emtpy line in expected output.

3 days agoob-sql.el: Clean mysql parameters generation
Steven Rémot [Sat, 20 Sep 2014 13:09:29 +0000]
ob-sql.el: Clean mysql parameters generation

* lisp/ob-sql.el (dbstring-mysql): Rename function and tweak a bit its
  implementation
  (org-babel-execute:sql): Use new function name

Prefix `dbstring-mysql' function with the namespace "org-babel-sql" to
avoid name collisions.

Also replace the call to `remq' by `delq' because it is a bit more
efficient, and also to be consistent with
`org-babel-sql-dbstring-postgresql'.

3 days agoob-sql.el: Enhance postgresql support
Steven Rémot [Sat, 20 Sep 2014 13:02:36 +0000]
ob-sql.el: Enhance postgresql support

* lisp/ob-sql.el (org-babel-sql-dbstring-postgresql): New function
  (org-babel-execute:sql): Use new function.

Before this patch, it was necessary to use :cmdline parameter to
specify host, user and database different the the default ones.  Now,
this can be done using parameters that are independents of the engine
used.

This is not trivial (and not recommended) to pass password as a
command line argument to psql, so :dbpassword is not supported.

3 days agoMerge branch 'maint'
Nicolas Goaziou [Sat, 20 Sep 2014 21:02:20 +0000]
Merge branch 'maint'

3 days agoFix to determine a bulk-markable line
marcowahlsoft@gmail.com [Sat, 20 Sep 2014 20:26:18 +0000]
Fix to determine a bulk-markable line

* lisp/org-agenda.el (org-agenda-bulk-mark,
  org-agenda-bulk-mark-regexp, org-agenda-bulk-toggle-all): This fixes
  e.g. org-agenda-bulk-mark-all when time-grid is shown.

TINYCHANGE

3 days agoMerge branch 'maint'
Achim Gratz [Sat, 20 Sep 2014 19:55:09 +0000]
Merge branch 'maint'

3 days agotest-ob-exp: fix failing test
Achim Gratz [Sat, 20 Sep 2014 19:54:21 +0000]
test-ob-exp: fix failing test

* testing/lisp/test-ob-exp.el (ob-exp/export-from-a-temp-buffer):
  Check for the correct expected output so the test stops failing.

3 days agoox-koma-letter: Fix "to" and "from"
Nicolas Goaziou [Sat, 20 Sep 2014 19:32:52 +0000]
ox-koma-letter: Fix "to" and "from"

* contrib/lisp/ox-koma-letter.el (koma-letter): Properly display
  default "from" address from template.
(org-koma-letter--determine-to-and-from): Do not provide a default
"to" value as it might be set through a LCO file.
(org-koma-letter-template): Remove trailing whitespace.

3 days agoox-ascii: Implement plain-lists own extra margin
Nicolas Goaziou [Sat, 20 Sep 2014 12:40:01 +0000]
ox-ascii: Implement plain-lists own extra margin

* lisp/ox-ascii.el (org-ascii-list-margin): New variable.
(ascii): New property.
(org-ascii--current-text-width, org-ascii-plain-list): Take into
account list margin.

* doc/org.texi (Publishing options):
* etc/ORG-NEWS (argument): Document new variable.

4 days agoMerge branch 'maint'
Nicolas Goaziou [Fri, 19 Sep 2014 23:06:22 +0000]
Merge branch 'maint'

4 days agoox-ascii: Fix filling with preserve break
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.

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

Conflicts:
doc/org.texi

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Conflicts:
lisp/ox-html.el

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

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

6 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

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

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

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

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

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

8 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

8 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

9 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

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

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

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

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

10 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

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

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

11 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

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

11 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

11 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

11 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

12 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

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

12 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

13 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

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

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

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

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

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

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

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

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

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

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

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

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

3 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

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

3 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

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

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

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

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

Conflicts:
lisp/org.el

3 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

3 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

3 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 => :-(

3 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

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

3 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

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

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

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

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

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

Conflicts:
lisp/org-element.el

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