15 hours agoorg-src: Fix escaping in remote editing master
Nicolas Goaziou [Fri, 22 May 2015 18:59:31 +0000]
org-src: Fix escaping in remote editing

* lisp/org-src.el (org-src--contents-area): Include contents to be
  inserted in the edit buffer in return value.
(org-src--edit-element): Apply change above.

Reported-by: Kyle Meyer <>

17 hours agoob-core: Register :file-ext as allowed header argument
Nicolas Goaziou [Fri, 22 May 2015 16:53:38 +0000]
ob-core: Register :file-ext as allowed header argument

* lisp/ob-core.el (org-babel-common-header-args-w-values):
  Allow :file-ext.

Reported-by: Rainer M Krug <>

2 days agoorg.el: Fix bug in af6fdf30718158f
Rasmus [Wed, 20 May 2015 22:44:06 +0000]
org.el: Fix bug in af6fdf30718158f

* org.el (org-return): Fix bug when headline title is empty.

2 days agoorg.el: New function org-delete-indentation
Rasmus [Sat, 16 May 2015 15:19:03 +0000]
org.el: New function org-delete-indentation

* org.el (org-delete-indentation): New function.
  (org-mode-map): Bind org-delete-indentation to M-^.
* test-org.el (test-org-delete-indentation): Test org-delete-indentation.
* ORG-NEWS: Add entry on org-delete-indentation.

2 days agoorg.el: RET breaks headline text
Rasmus [Fri, 15 May 2015 11:08:11 +0000]
org.el: RET breaks headline text

* org.el (org-return): RET breaks headline text.
* test-org.el (test-org/return): Test org-return on headline text.
* ORG-NEWS: Add entry on new org-return behavior.

3 days agoFix two typos
Marco Wahl [Wed, 20 May 2015 08:58:49 +0000]
Fix two typos

* lisp/org.el: Fix in documentation of variable

3 days agoMerge branch 'maint'
Bastien [Wed, 20 May 2015 06:00:54 +0000]
Merge branch 'maint'


3 days agolisp/org-{macs, list}.el: Fix lexical warnings maint
Stefan Monnier [Mon, 4 May 2015 15:32:43 +0000]
lisp/org-{macs, list}.el: Fix lexical warnings

    * lisp/org-{macs,list}.el: Fix lexical warnings

    * lisp/org-list.el (org-list-struct): Remove unused var `ind'.
    (org-list-get-next-item, org-list-get-prev-item)
    (org-list-get-children): Mark unused arg `struct'.
    (org-list-use-alpha-bul-p): Remove unused var `bul'.
    (org-toggle-checkbox): Mark unused var.
    (org-update-checkbox-count): Remove unused var `box-num'.
    (org-adapt-indentation): Declare.
    (org-list-parse-list): Declare var instead of adding a dummy duplicate.
    (org-list-send-list): Remove unused var `txt'.
    (org-list-to-latex, org-list-to-texinfo): Mark unused arg `params'.
    (org-list-to-subtree): Add prefix to dyn-bind var, and declare them.

    * lisp/org-macs.el: Use `declare'.
    (org-with-limited-levels): Declare dyn-bound vars.

3 days agoob-R: Allow more :results values
Nicolas Goaziou [Tue, 19 May 2015 21:22:11 +0000]
ob-R: Allow more :results values

* lisp/ob-R.el (org-babel-header-args:R): Allow "drawer" and "none",
  since they are supported in `org-babel-common-header-args-w-values'.

Reported-by: Andreas Leha <>

3 days agoFix `org-next-block'
Nicolas Goaziou [Tue, 19 May 2015 21:12:17 +0000]
Fix `org-next-block'

* lisp/org.el (org-next-block): Preserve match data, as specified in
  the docstring.

Reported-by: Andreas Leha <>

3 days agoob-core: Allow never-export as :eval value
Nicolas Goaziou [Tue, 19 May 2015 13:38:08 +0000]
ob-core: Allow never-export as :eval value

* lisp/ob-core.el (org-babel-common-header-args-w-values): Allow
  "never-export" as :eval value.

5 days agoorg-inlinetask: Fix visibility toggling
Nicolas Goaziou [Sun, 17 May 2015 17:22:12 +0000]
org-inlinetask: Fix visibility toggling

* lisp/org-inlinetask.el (org-inlinetask-toggle-visibility): Fix
  visibility toggling when starting with a link.

Reported-by: Anders Johansson <>

6 days agoFix message format in org-notmuch-search-open
Christopher League [Fri, 15 May 2015 16:11:45 +0000]
Fix message format in org-notmuch-search-open

* org-notmuch.el (org-notmuch-search-open): Bug fix
When opening a notmuch-search link, we use =message= to display the
path at the bottom of the screen.  This would signal "Not enough
arguments for format string" when the path contained %-signs, as it is
likely to when the query contains spaces:

That query appears to be double-escaped, which also might contribute
to the problem, but either way: we should use =(message "%s" str)= to
print arbitrary strings, not =(message str)=.

6 days agoorg-attach.el: Fix check for git annex
Erik Hetzner [Sun, 17 May 2015 02:10:09 +0000]
org-attach.el: Fix check for git annex

* lisp/org-attach.el (org-attach-commit): Check for .git/annex dir in
addition to annex dir in root git dir to ensure that git annex is used


7 days agoMerge branch 'master' of
Nicolas Goaziou [Fri, 15 May 2015 17:20:11 +0000]
Merge branch 'master' of

7 days agoorg.texi: Remove unnecessary @quotation
Nicolas Goaziou [Fri, 15 May 2015 13:29:06 +0000]
org.texi: Remove unnecessary @quotation

* doc/org.texi (The export dispatcher):
(Languages): Remove @quotation.

7 days agoorg.texi: Fix typo
Nicolas Goaziou [Fri, 15 May 2015 13:28:47 +0000]
org.texi: Fix typo

* doc/org.texi (Macro replacement): Fix typo.

7 days agoorg.texi: Add header separator in Babel languages table
Nicolas Goaziou [Fri, 15 May 2015 13:28:15 +0000]
org.texi: Add header separator in Babel languages table

* doc/org.texi (Languages): Add separator.

7 days agoox-html: Less generic names for table aligns.
Rasmus [Wed, 6 May 2015 14:08:44 +0000]
ox-html: Less generic names for table aligns.

* ox-html.el (org-html-style-default):
  (org-html-table-cell, org-html-table): Prefix left, right, center classes.
* test-org-table.el (test-org-table/to-html): Change classes.

Reported-by: Matt Price <>

8 days agoorg.texi: Fix typo
Nicolas Goaziou [Thu, 14 May 2015 14:16:35 +0000]
org.texi: Fix typo

* doc/org.texi (Languages): Fix typo.

8 days agoorg.texi: Reorder languages
Nicolas Goaziou [Thu, 14 May 2015 14:14:49 +0000]
org.texi: Reorder languages

* doc/org.texi (Languages): Reorder languages.

8 days agoorg.texi: Add Fortran to supported languages
Nicolas Goaziou [Thu, 14 May 2015 14:10:35 +0000]
org.texi: Add Fortran to supported languages

* doc/org.texi (Languages): Add Fortran.

Reported-by: Alain Cochard <>

9 days agoorg-element: Tiny refactoring
Nicolas Goaziou [Wed, 13 May 2015 10:37:53 +0000]
org-element: Tiny refactoring

* lisp/org-element.el (org-element-link-parser): Use `string-to-char'
  instead of (aref STRING 0).

9 days agoImprove docstrings
Nicolas Goaziou [Wed, 13 May 2015 10:35:24 +0000]
Improve docstrings

* lisp/org.el (org-metaleft):
(org-metaright): Improve docstrings.

Suggested-by: Alain Cochard <>

12 days agoox: Tiny refactoring
Nicolas Goaziou [Sun, 10 May 2015 23:33:24 +0000]
ox: Tiny refactoring

* lisp/ox.el (org-export-resolve-fuzzy-link): Use `string-to-char'
  instead of (aref STRING 0).

12 days agoox: Tiny refactoring
Nicolas Goaziou [Sun, 10 May 2015 23:30:45 +0000]
ox: Tiny refactoring

* lisp/ox.el (org-export-expand-include-keyword):
(org-export-with-backend): Wrap line of code within 80 columns.
(org-export--inclusion-absolute-lines): Remove unecessary `format'
call for error message.

12 days agoorg-table: Fix durations extracted from node properties
Nicolas Goaziou [Sun, 10 May 2015 23:20:37 +0000]
org-table: Fix durations extracted from node properties

* lisp/org-table.el (org-table-formula-substitute-names): Convert
  durations when needed.  Refactor code.

* testing/lisp/test-org-table.el (test-org-table/duration): New test.

Reported-by: Daniele Pizzolli <>

13 days agoorg.texi: Fix typo
Nicolas Goaziou [Sun, 10 May 2015 09:58:34 +0000]
org.texi: Fix typo

* doc/org.texi (Macro replacement): Fix typo introduced in

13 days ago* etc/ORG-NEWS: Document new {{{property}}} optional argument
Nicolas Goaziou [Sun, 10 May 2015 09:57:02 +0000]
* etc/ORG-NEWS: Document new {{{property}}} optional argument

13 days agoAllow optional argument to {{{property}}} for remote entries
Nicolas Goaziou [Sun, 10 May 2015 09:48:13 +0000]
Allow optional argument to {{{property}}} for remote entries

* lisp/org-macro.el (org-macro-initialize-templates): "property"
  template accepts an optional argument, as a search option to grab
  properties from other headlines.

* doc/org.texi (Macro replacement): Document new feature.  Improve
(An example): Update documentation.

* testing/lisp/test-org-macro.el (test-org/macro-replace-all): Add

13 days agoorg-macro: Fix incomplete docstring
Nicolas Goaziou [Sun, 10 May 2015 08:05:46 +0000]
org-macro: Fix incomplete docstring

* lisp/org-macro.el (org-macro-replace-all): Document missing KEYWORDS
  optional argument.

2 weeks agotest-org-element: Add tests for latex fragments parsing
Nicolas Goaziou [Sat, 9 May 2015 08:01:35 +0000]
test-org-element: Add tests for latex fragments parsing

* testing/lisp/test-org-element.el (test-org-element/latex-fragment-parser):
  Add tests.

2 weeks agoFix detection of latex fragments
Titus von der Malsburg [Fri, 8 May 2015 22:25:06 +0000]
Fix detection of latex fragments

* org-element.el (org-element-latex-fragment-parser):
* org.el (org-latex-regexps): Fix the detection of latex
  fragments.  Uses syntax tables to detect whitespaces and punctuation
  marks following the final $ sign.

In order to qualify as a math delimiter, the final $ sign of a LaTeX
fragment has to be followed by a whitespace or punctuation mark but the
regexp used in the previous code matched only a small number of
punctuation marks and therefore missed some latex fragments.

2 weeks agoorg-capture: Fix "org-find-olp: Wrong type argument: stringp, nil"
Nicolas Goaziou [Fri, 8 May 2015 09:08:09 +0000]
org-capture: Fix "org-find-olp: Wrong type argument: stringp, nil"

* lisp/org-capture.el (org-capture-expand-file): Empyt string defaults
  to `org-default-notes-file'.
* lisp/org.el (org-default-notes-file): Do not fallback on
`remember-data-file' since "org-capture.el" is not based off
"remember.el" anymore.

Reported-by: Florian Lindner <>

2 weeks agoFix TBLFM line handling
Nicolas Goaziou [Fri, 8 May 2015 08:46:07 +0000]
Fix TBLFM line handling

* lisp/org-table.el (org-table-TBLFM-begin-regexp): Take into
  consideration that table lines are not required to end with "|".
(org-table-calc-current-TBLFM): Properly clean markers at the end of
the process.
(org-table-TBLFM-begin): Small refactoring.
* lisp/org.el (org-at-TBLFM-p): Prevent false positives.

Suggested-by: Oleg Sivokon <>

2 weeks agoFix indentation in empty items
Nicolas Goaziou [Fri, 8 May 2015 08:08:11 +0000]
Fix indentation in empty items

* lisp/org.el (org--get-expected-indentation): Fix indentation on
  in empty items.
* testing/lisp/test-org.el (test-org/indent-line): Add test.

Reported-by: Leo Ufimtsev <>

2 weeks agoorg-element: Fix parsing bug in items
Nicolas Goaziou [Thu, 7 May 2015 21:45:41 +0000]
org-element: Fix parsing bug in items

* lisp/org-element.el (org-element-item-parser): When contents are
  empty, do not find a zero-width paragraph within.

2 weeks agoox-publish: Allow external references outside of publishing
Nicolas Goaziou [Thu, 7 May 2015 20:15:00 +0000]
ox-publish: Allow external references outside of publishing

* lisp/ox-publish.el (org-publish-resolve-external-link): Warn instead
  of throwing an error when a reference to a non-published external
  file is encountered.

2 weeks agoorg-list: Preserve newline characters when changing description lists
Nicolas Goaziou [Wed, 6 May 2015 23:16:32 +0000]
org-list: Preserve newline characters when changing description lists

* lisp/org-list.el (org-list-to-generic): Preserve newline characters
  after description in description lists.

Reported-by: Leo Ufimtsev <>

2 weeks agoox-publish: Throw an error for external reference outside of publish
Nicolas Goaziou [Wed, 6 May 2015 22:57:22 +0000]
ox-publish: Throw an error for external reference outside of publish

* lisp/ox-publish.el (org-publish-resolve-external-link): Throw an
  error when trying to resolve an external reference while not in
  a publishing process.

Reported-by: Rainer M Krug <>

2 weeks agoox-publish: Fix space matching in external fuzzy links
Nicolas Goaziou [Wed, 6 May 2015 22:48:36 +0000]
ox-publish: Fix space matching in external fuzzy links

* lisp/ox-publish.el (org-publish--collect-references):
(org-publish-resolve-external-link): Treat consecutive blank
characters as a single space, not 0.

2 weeks agoorg-footnote: Make `org-footnote-create-definition' non-interactive
Nicolas Goaziou [Wed, 6 May 2015 21:23:54 +0000]
org-footnote: Make `org-footnote-create-definition' non-interactive

* lisp/org-footnote.el (org-footnote-create-definition): Remove
  `interactive' status.  Allow to insert definitions outside of
  narrowed part of buffer.  Preserve position.  Return beginning
  position of created definition.
(org-footnote-action): Apply changes above.

2 weeks agoorg-footnote: Rename `org-footnote-goto-local-insertion-point'
Nicolas Goaziou [Wed, 6 May 2015 21:21:10 +0000]
org-footnote: Rename `org-footnote-goto-local-insertion-point'

* lisp/org-footnote.el (org-footnote--goto-local-insertion-point):
  Renamed from `org-footnote-goto-local-insertion-point'.
(org-footnote-normalize): Use function above.  Small refactoring.

* testing/lisp/test-org-footnote.el (test-org-footnote/normalize-in-org):
  Small refactoring.

2 weeks agoorg-footnote: Add optional argument to `org-footnote-goto-definition'
Nicolas Goaziou [Wed, 6 May 2015 21:15:42 +0000]
org-footnote: Add optional argument to `org-footnote-goto-definition'

* lisp/org-footnote.el (org-footnote-goto-definition): Add an optional
  argument in order to avoid duplicating calls to
  `org-footnote-get-definition'.  Return non-nil when move was

2 weeks agoorg-footnote: Fix type error when creating a new footnote
Nicolas Goaziou [Mon, 4 May 2015 07:38:32 +0000]
org-footnote: Fix type error when creating a new footnote

* lisp/org-footnote.el (org-footnote-get-definition): Fix type error
  when creating a new footnote.

When footnote definition is new, contents are nil.

2 weeks agoorg-footnote: Offer to widen buffer when trying to move to a definiton
Nicolas Goaziou [Sat, 2 May 2015 13:56:42 +0000]
org-footnote: Offer to widen buffer when trying to move to a definiton

* lisp/org-footnote.el (org-footnote-action): Offer to widen buffer if
  definition is outside of narrow part of buffer.

2 weeks agoorg-footnote: Fix `org-footnote-get-definition'
Nicolas Goaziou [Sat, 2 May 2015 13:34:31 +0000]
org-footnote: Fix `org-footnote-get-definition'

* lisp/org-footnote.el (org-footnote-get-definition): Footnotes
  definitions are global, so ignore narrowing right from the start.
  Also skip false positives.

2 weeks agoorg-src: Allow to edit inline footnote references
Nicolas Goaziou [Sat, 2 May 2015 06:37:37 +0000]
org-src: Allow to edit inline footnote references

* lisp/org-src.el (org-src--edit-element): Do not rely on :value to
  extract contents.  Small refactoring.
(org-src--contents-area): Renamed from
  `org-src--element-contents-area'.  Throw an error on unknown
(org-src--on-datum-p): Rename from `org-src--on-element-p'.  Handle
(org-edit-export-block, org-edit-src-code,
org-edit-fixed-width-region, org-edit-table.el): Apply renaming.
(org-edit-src-save, org-edit-src-exit): Handle inline text.
(org-edit-src-exit): Allow empty or blank code.  Handle inline text.
(org-src--edit-element): Rename an argument
(org-edit-footnote-reference): Allow to edit inline definitions.

* etc/ORG-NEWS: Document new feature.

3 weeks agoorg-src: Make area being edited read-only
Nicolas Goaziou [Fri, 1 May 2015 19:14:19 +0000]
org-src: Make area being edited read-only

* lisp/org-src.el (org-src--make-source-overlay): Add read-only
  feature to overlay.
(org-edit-src-save): Adapt to change above.

3 weeks agoorg-src: Remove `org-src--type'
Nicolas Goaziou [Fri, 1 May 2015 16:46:33 +0000]
org-src: Remove `org-src--type'

* lisp/org-src.el (org-src--type): Remove variable.
(org-src--contents-for-write-back): Apply removal.
(org-edit-src-code): Add indentation in post-process.

3 weeks agoob-core: Remove `org-babel-src-name-w-name-regexp'
Nicolas Goaziou [Fri, 1 May 2015 12:28:15 +0000]
ob-core: Remove `org-babel-src-name-w-name-regexp'

* lisp/ob-core.el (org-babel-get-src-block-info):
(org-babel-src-block-names): Use
`org-babel-named-src-block-regexp-for-name' instead.

3 weeks agoob-core: Change `org-babel-named-src-block-regexp-for-name' signature
Nicolas Goaziou [Fri, 1 May 2015 12:23:49 +0000]
ob-core: Change `org-babel-named-src-block-regexp-for-name' signature

* lisp/ob-core.el (org-babel-named-src-block-regexp-for-name): Allow
  to match any name.

3 weeks agoob-core: Use `org-next-block'
Nicolas Goaziou [Fri, 1 May 2015 11:55:04 +0000]
ob-core: Use `org-next-block'

* lisp/ob-core.el (org-babel-find-named-block):
(org-babel-src-block-names): Use `org-next-block'.

3 weeks agoob-core: Fix regexp
Nicolas Goaziou [Fri, 1 May 2015 11:53:47 +0000]
ob-core: Fix regexp

* lisp/ob-core.el (org-babel-named-src-block-regexp-for-name): NAME
  needs no be the last affiliated keyword.

3 weeks agoFix `org-next-block'
Nicolas Goaziou [Fri, 1 May 2015 10:08:57 +0000]
Fix `org-next-block'

* lisp/org.el (org-next-block): Use Element API.

* testing/lisp/test-org.el (test-org/next-block):
(test-org/previous-block): New tests.

3 weeks agoorg-src: Fix "not in a sub-edit buffer" error on save
Nicolas Goaziou [Fri, 1 May 2015 08:29:05 +0000]
org-src: Fix "not in a sub-edit buffer" error on save

* lisp/org-src.el (org-src-mode): Fix "not in a sub-edit buffer" error
  on save.

Reported-by: Detlef Steuer <>

3 weeks agoorg-src: Fix docstrings
Nicolas Goaziou [Fri, 1 May 2015 08:03:17 +0000]
org-src: Fix docstrings

* lisp/org-src.el (org-src-mode-hook):
(org-edit-src-code): Fix docstrings.

3 weeks agoorg-src: Fix docstrings
Nicolas Goaziou [Fri, 1 May 2015 07:49:14 +0000]
org-src: Fix docstrings

* lisp/org-src.el (org-src-mode-hook):
(org-src-mode): Fix docstring.
(org-src-mode-map): Refactor.

3 weeks agoorg-element: Tolerate missing space after colon in keywords
Nicolas Goaziou [Fri, 1 May 2015 07:23:35 +0000]
org-element: Tolerate missing space after colon in keywords

* lisp/org-element.el (org-element--set-regexps):
(org-element--affiliated-re): Tolerate missing space after colon in

3 weeks agoorg.el: Fix use of org-open-at-point with shell and midnight cleaning
Luke Amdor [Tue, 28 Apr 2015 22:44:17 +0000]
org.el: Fix use of org-open-at-point with shell and midnight cleaning

* lisp/org.el (org-open-at-point): Make sure org shell output buffer
  is a string of buffer name before appending to
  `clean-buffer-list-kill-buffer-names' for cleaning later.


3 weeks agoMerge branch 'maint'
Nicolas Goaziou [Wed, 29 Apr 2015 21:32:05 +0000]
Merge branch 'maint'

3 weeks agoorg-agenda: Fix invalid face error for priority #B
Nicolas Goaziou [Wed, 29 Apr 2015 21:29:36 +0000]
org-agenda: Fix invalid face error for priority #B

* lisp/org-agenda.el (org-agenda-fontify-priorities): Ensure face
  doesn't inherit from nil.

Reported-by: Renato <>

3 weeks agoorg-src: Tiny fix
Nicolas Goaziou [Wed, 29 Apr 2015 11:25:34 +0000]
org-src: Tiny fix

* lisp/org-src.el (org-src-mode): Tiny fix.

3 weeks agoorg-src: Small fix to auto-save feature
Nicolas Goaziou [Wed, 29 Apr 2015 11:21:17 +0000]
org-src: Small fix to auto-save feature

* lisp/org-src.el (org-src-mode): Trigger auto-save even when current
  buffer is not and edit buffer.

3 weeks agoorg-src: Small refactoring
Nicolas Goaziou [Wed, 29 Apr 2015 11:16:21 +0000]
org-src: Small refactoring

* lisp/org-src.el (org-src--auto-save-timer): Renamed from
(org-src-mode): Enable auto-save features in minor mode.  Apply
variable renaming.

3 weeks agoMerge branch 'maint'
Bastien [Wed, 29 Apr 2015 05:57:07 +0000]
Merge branch 'maint'

3 weeks agoBackport commit 25166a91 from Emacs master branch.
Bastien [Wed, 29 Apr 2015 05:56:37 +0000]
Backport commit 25166a91 from Emacs master branch.

3 weeks agoob-core: Update allowed values for :eval header arg
Nicolas Goaziou [Tue, 28 Apr 2015 20:10:21 +0000]
ob-core: Update allowed values for :eval header arg

* lisp/ob-core.el (org-babel-common-header-args-w-values):
  Recognize :eval no.

Reported-by: Thomas S. Dye <>

3 weeks agoob-core: Update allowed values for :eval header arg
Nicolas Goaziou [Tue, 28 Apr 2015 07:50:35 +0000]
ob-core: Update allowed values for :eval header arg

* lisp/ob-core.el (org-babel-common-header-args-w-values): Add allowed
  values for :eval arg.

Reported-by: Thomas S. Dye <>

3 weeks agoFix `org-refresh-category-properties'
Konubinix [Tue, 28 Apr 2015 06:55:10 +0000]
Fix `org-refresh-category-properties'

* lisp/org.el (org-refresh-category-properties): Prevent the `put-text-property'
  to change the point in order to take into account the CATEGORY
  property in subtrees also.

* testing/lisp/test-org.el (test-org/entry-properties): Add test.

3 weeks agoox-odt: Fix defcustom keywords
Nicolas Goaziou [Mon, 27 Apr 2015 22:25:11 +0000]
ox-odt: Fix defcustom keywords

* lisp/ox-odt.el (org-odt-inline-image-rules): Update keywords.

Default value changed in 8e89c0e3b40bb2a140bbbb85def17b1c190eb158.

3 weeks agoMerge branch 'master' of
Nicolas Goaziou [Mon, 27 Apr 2015 22:24:05 +0000]
Merge branch 'master' of

3 weeks agoorg-src: Fix editing remotely empty footnote definitions
Nicolas Goaziou [Mon, 27 Apr 2015 22:22:20 +0000]
org-src: Fix editing remotely empty footnote definitions

* lisp/org-src.el (org-src--element-contents-area):
(org-edit-footnote-reference): Take into consideration
that :contents-begin and :contents-end may be nil.

Reported-by: Rasmus <>

3 weeks agoox-odt: Allow attaching SVG images by default
Vicente Vera Parra [Mon, 27 Apr 2015 21:02:22 +0000]
ox-odt: Allow attaching SVG images by default

* lisp/ox-odt.el (org-odt-inline-image-rules): Modify default rule to
  allow including inline SVG images in exported ODT documents.


3 weeks agoorg.texi: Document C-c ' key for footnotes
Rasmus [Mon, 27 Apr 2015 13:04:49 +0000]
org.texi: Document C-c ' key for footnotes

* org.texi (Footnotes): Add documentation on C-c '.

3 weeks agoox-latex: Use standard LaTeX label prefixes
Rasmus [Mon, 20 Apr 2015 13:06:55 +0000]
ox-latex: Use standard LaTeX label prefixes

* ox-latex.el (org-latex--label): Use standard LaTeX prefixes.
  (org-latex-math-environments-re): New defconst.

3 weeks agoorg-element: Fix parapraph parsing
Nicolas Goaziou [Mon, 27 Apr 2015 20:24:00 +0000]
org-element: Fix parapraph parsing

* lisp/org-element.el (org-element--set-regexps): Refine
(org-element-paragraph-parser): Fix paragraph parsing when followed by
a dual keyword or an ill-formed latex environment.

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

Reported-by: Jacob Gerlach <>

3 weeks agoox: Refresh buffer properties after including files
Nicolas Goaziou [Mon, 27 Apr 2015 18:40:28 +0000]
ox: Refresh buffer properties after including files

* lisp/ox.el (org-export-as): Call `org-set-regexps-and-options'.

Suggested-by: Detlef Steuer <>

3 weeks agoox-latex: Allow alt titles in starred sectionning commands
Nicolas Goaziou [Mon, 27 Apr 2015 15:43:18 +0000]
ox-latex: Allow alt titles in starred sectionning commands

* lisp/ox-latex.el (org-latex-headline): Allow alt titles in starred
  sectionning commands.

Reported-by: Vikas Rawal <>

3 weeks agoMerge branch 'maint'
Bastien [Mon, 27 Apr 2015 12:17:00 +0000]
Merge branch 'maint'


3 weeks agoorg-clock.el (org-x11idle-exists-p): Be honest about which command is actually sent...
Stefan Monnier [Thu, 16 Apr 2015 02:04:45 +0000]
org-clock.el (org-x11idle-exists-p): Be honest about which command is actually sent to the shell.

* org-clock.el (org-x11idle-exists-p): Be honest about which
command is actually sent to the shell.

3 weeks agoox-latex: Fix footnote bug when narrowed buffer
Rasmus [Fri, 24 Apr 2015 16:00:30 +0000]
ox-latex: Fix footnote bug when narrowed buffer

* ox-latex.el (org-latex-footnote-reference): Support math in outside
  footnotes when narrowed.

3 weeks agoORG-NEWS: Document remote editing of footnote definitions
Nicolas Goaziou [Sun, 26 Apr 2015 13:13:39 +0000]
ORG-NEWS: Document remote editing of footnote definitions

3 weeks agoorg-src: Refuse to edit remotely inline footnotes
Nicolas Goaziou [Sun, 26 Apr 2015 12:57:36 +0000]
org-src: Refuse to edit remotely inline footnotes

* lisp/org-src.el (org-edit-footnote-reference): Throw an error when
  definition is inline.

3 weeks agoorg-src: Allow editing footnote definitions
Nicolas Goaziou [Sun, 26 Apr 2015 08:40:30 +0000]
org-src: Allow editing footnote definitions

* lisp/org-src.el (org-src--element-contents-area): Make a special
  case for footnote definitions.
(org-edit-footnote-reference): New function.
* lisp/org.el (org-edit-special): Use new function.

3 weeks agoorg-src: Allow editing elements remotely
Nicolas Goaziou [Sun, 26 Apr 2015 08:32:20 +0000]
org-src: Allow editing elements remotely

* lisp/org-src.el (org-src--remote-p): New variable.
(org-src--edit-element): Add optional argument.
(org-edit-src-exit): Handle new optional argument.

3 weeks agoorg-src: Allow to post-process edit buffer
Nicolas Goaziou [Sun, 26 Apr 2015 08:04:55 +0000]
org-src: Allow to post-process edit buffer

* lisp/org-src.el (org-src--allow-write-back): Rename from

(org-edit-src-exit): Apply renaming.

(org-edit-fixed-width-region): Use post-process.

3 weeks agoorg-cycle: Cycle visibility when point is at the end of a folded headline
Charles Berry [Sat, 25 Apr 2015 18:18:26 +0000]
org-cycle: Cycle visibility when point is at the end of a folded headline

* lisp/org.el: (org-cycle): Ignore invisible newlines and cycle
  visibility when point is visibly on a headline.

Requested by: Nikolaus Rath <>

4 weeks agoorg-footnote: Fix 5954f6aa25b51a3a9a8f258fb0f15ef51be31366
Nicolas Goaziou [Sat, 25 Apr 2015 09:09:05 +0000]
org-footnote: Fix 5954f6aa25b51a3a9a8f258fb0f15ef51be31366

* lisp/org-footnote.el (org-footnote-goto-definition): Better check
  for narrowed scope.
* testing/lisp/test-org-footnote.el (test-org-footnote/goto-definition):
  Add test.

4 weeks agoorg-footnote: Do not move point if definition is unreachable
Nicolas Goaziou [Sat, 25 Apr 2015 08:36:35 +0000]
org-footnote: Do not move point if definition is unreachable

* lisp/org-footnote.el (org-footnote-goto-definition): Throw an error
  when definition is outside narrowed part of buffer.  Do not move
  point either.

* testing/lisp/test-org-footnote.el (test-org-footnote/goto-definition):
  New test.

Reported-by: Rasmus <>

4 weeks agoob-processing.el: Support for Processing language
Jarmo Hurri [Tue, 14 Apr 2015 13:51:15 +0000]
ob-processing.el: Support for Processing language

* lisp/ob-processing.el: New file.

* doc/org.texi (Languages): Signal new language.

This library implements necessary functions for implementing editing
of Processing code blocks, viewing the resulting sketches in an
external viewer, and HTML export of the sketches.

Editing Processing blocks requires processing2-emacs mode. Viewing
Processing blocks embedded in Org buffer in an external viewer also
requires processing2-emacs. This viewing is bound to C-c C-v C-k and
produces no results in Org buffer. HTML export of the results of a
Processing block is also supported, assuming that the processing.js
module is available: the sketch is then drawn by the browser when the
HTML page is viewed. This drawing is implemented by embedding the
Processing code in a script using the processing.js module. The user
is responsible for making sure that processing.js is available in the
correct location.

Console output from a Processing block produced e.g. by println() is
shown in the Processing compilation window when the code is executed
in Org buffer, and in text area (console) of the browser when the code
is embedded in HTML.

4 weeks agoorg.el: Remove org-timer-cancel-timer binding
Kyle Meyer [Fri, 24 Apr 2015 16:53:43 +0000]
org.el: Remove org-timer-cancel-timer binding

* lisp/org.el (org-mode-map): Remove binding for deleted command

The command org-timer-cancel-timer was removed in 173b0cb6d6.

4 weeks agoox-html: Fix typo
Nicolas Goaziou [Fri, 24 Apr 2015 19:24:57 +0000]
ox-html: Fix typo

* lisp/ox-html.el (org-html-paragraph): Fix typo introduced in

4 weeks agoox-html: Fix paragraph class in footnote definitions
Nicolas Goaziou [Fri, 24 Apr 2015 19:21:22 +0000]
ox-html: Fix paragraph class in footnote definitions

* lisp/ox-html.el (org-html-footnote-section):
(org-html-paragraph): Add "footpara" class for footnote definitions.

Reported-by: Rasmus <>

4 weeks agoorg-element: Keep ARCHIVE tag in headline tags
Nicolas Goaziou [Fri, 24 Apr 2015 12:28:17 +0000]
org-element: Keep ARCHIVE tag in headline tags

* lisp/org-element.el (org-element-headline-parser): Do not remove
  ARCHIVE tag.
(org-element-headline-interpreter): Apply change.

* testing/lisp/test-org-element.el (test-org-element/headline-archive-tag):
Update tests.


4 weeks agoox-odt: Fix bug links without labels.
Rasmus [Thu, 23 Apr 2015 10:35:43 +0000]
ox-odt: Fix bug links without labels.

* ox-odt.el (org-odt-format-label): Determine label more carefully.

Reported-by: Vicente Vera <>

4 weeks agoorg.el: Handle nil org-latex-to-mathml-jar-file
Rasmus [Thu, 23 Apr 2015 09:16:29 +0000]
org.el: Handle nil org-latex-to-mathml-jar-file

* org.el (org-create-math-formula): Handle nil

4 weeks agoTiny refactoring
Nicolas Goaziou [Wed, 22 Apr 2015 12:30:59 +0000]
Tiny refactoring

* lisp/org.el (org-iread-file-name): Refactor.

`read-file-name' already applies `read-file-name-function' when

4 weeks agoorg-pcomplete: Update copyright year
Nicolas Goaziou [Wed, 22 Apr 2015 12:23:19 +0000]
org-pcomplete: Update copyright year

4 weeks agoox: Tiny fix to code comments
Nicolas Goaziou [Wed, 22 Apr 2015 12:05:51 +0000]
ox: Tiny fix to code comments

* lisp/ox.el (org-export--get-subtree-options): Tiny fix.