32 min agoox: Small refactoring master
Nicolas Goaziou [Fri, 27 Feb 2015 11:06:37 +0000]
ox: Small refactoring

* lisp/ox.el (org-export-collect-footnote-definitions): Small

45 min agoox: Small refactoring
Nicolas Goaziou [Fri, 27 Feb 2015 10:53:24 +0000]
ox: Small refactoring

* lisp/ox.el (org-export-prune-tree): Small refactoring.

46 min agoorg-element: Fix docstring
Nicolas Goaziou [Fri, 27 Feb 2015 10:53:00 +0000]
org-element: Fix docstring

* lisp/org-element.el (org-element-set-contents): Fix docstring.

15 hours agoox-odt: Small refactoring
Nicolas Goaziou [Thu, 26 Feb 2015 20:39:05 +0000]
ox-odt: Small refactoring

* lisp/ox-odt.el (org-odt--translate-latex-fragments): Small

15 hours agoorg-index.el: release 4.0.0
Marc-Oliver Ihm [Thu, 26 Feb 2015 19:59:26 +0000]
org-index.el: release 4.0.0

20 hours agoox-odt: Small fix
Rasmus [Thu, 26 Feb 2015 15:29:59 +0000]
ox-odt: Small fix

* ox-odt.el (org-odt--translate-latex-fragments): Fix small
  bug in cebdec663d63d6971c20cb99e5502e646ee12187.

20 hours agoorg.el: More general TeX to MathML convert support
Rasmus [Wed, 25 Feb 2015 12:31:52 +0000]
org.el: More general TeX to MathML convert support

* org.el (org-latex-to-mathml-convert-command): Work with
  other converters than mathtoweb.
  (org-latex-to-mathml-convert-command): Add possibility of
  passing latex-fragment.
* org.texi (Working with @LaTeX{} math snippets): Show LaTeXML config.

20 hours agoox-odt: Remove unnecessary space when no date
Rasmus [Tue, 24 Feb 2015 14:13:36 +0000]
ox-odt: Remove unnecessary space when no date

* ox-odt.el (org-odt-template): Remove unnecessary space in header
  when no date.

20 hours agoox-odt: Small fix
Nicolas Goaziou [Thu, 26 Feb 2015 14:45:24 +0000]
ox-odt: Small fix

* lisp/ox-odt.el (org-odt--translate-latex-fragments): Fix bug
  introduced in cebdec663d63d6971c20cb99e5502e646ee12187.

20 hours agoox-odt: Preserve white space when converting LaTeX code
Nicolas Goaziou [Thu, 26 Feb 2015 14:41:35 +0000]
ox-odt: Preserve white space when converting LaTeX code

* lisp/ox-odt.el (org-odt--translate-latex-fragments): Preserve white
  space when converting LaTeX code.

Reported-by: Rasmus <>

21 hours agoorg-macs: Fix `org-string-nw-p'
Nicolas Goaziou [Thu, 26 Feb 2015 14:14:40 +0000]
org-macs: Fix `org-string-nw-p'

* lisp/org-macs.el (org-string-nw-p): Return value doesn't depend
  anymore on the current syntax table.

Reported-by: Rasmus Rasmus <>

27 hours agoSmall fix
Nicolas Goaziou [Thu, 26 Feb 2015 08:06:13 +0000]
Small fix

* lisp/org.el (org-fontify-meta-lines-and-blocks-1): Return a non-nil
  value in any case.  This fixes

36 hours agoPrevent invisible characters in keywords
Nicolas Goaziou [Wed, 25 Feb 2015 23:21:53 +0000]
Prevent invisible characters in keywords

* lisp/org.el (org-fontify-meta-lines-and-blocks-1): Forbid invisible
  characters (e.g. bracket links) in all keywords but TITLE, DATE,
  AUTHOR, CAPTION and EMAIL.  Also remove back-end specific keywords,
  which are treated just like any other regular keyword.

Reported-by: Rasmus <>

36 hours agoox-odt: Fix handling math snippets in captions
Nicolas Goaziou [Wed, 25 Feb 2015 22:45:15 +0000]
ox-odt: Fix handling math snippets in captions

* lisp/ox-odt.el (org-odt--translate-latex-fragments): Fix handling
  math snippets in captions.

Reported-by: Rasmus <>

45 hours agoob-core: Improper lists are returned in fixed-width areas
Nicolas Goaziou [Wed, 25 Feb 2015 13:41:13 +0000]
ob-core: Improper lists are returned in fixed-width areas

* lisp/ob-core.el (org-babel-insert-result): Improper lists are

When a list cannot be turned into a table, return it in a fixed-width
area so that it can be removed.

Suggested-by: Charles C. Berry <>

2 days agoox: Fix custom link handling in anonymous back-end
Nicolas Goaziou [Tue, 24 Feb 2015 14:54:01 +0000]
ox: Fix custom link handling in anonymous back-end

* lisp/ox.el (org-export-custom-protocol-maybe): Change signature.
* contrib/lisp/ox-groff.el (org-groff-link):
* lisp/ox-ascii.el (org-ascii-link):
* lisp/ox-beamer.el (org-beamer-link):
* lisp/ox-html.el (org-html-link):
* lisp/ox-latex.el (org-latex-link):
* lisp/ox-man.el (org-man-link):
* lisp/ox-md.el (org-md-link):
* lisp/ox-odt.el (org-odt-link):
* lisp/ox-org.el (org-org-link):
* lisp/ox-texinfo.el (org-texinfo-link): Apply signature change.

* testing/lisp/test-ox.el (test-org-export/custom-protocol-maybe):
  Update test.

Provide explicitly back-end used instead of guessing it from INFO
channel as an anonymous back-end could be used, masquerading the real

Reported-by: Christian Moe <>

3 days agoob-core: Fix inserting improper lists
Nicolas Goaziou [Mon, 23 Feb 2015 17:37:37 +0000]
ob-core: Fix inserting improper lists

* lisp/ob-core.el (org-babel-insert-result): Fix output when result is
  an improper list, which cannot be turned into a table.

* testing/lisp/test-ob.el (test-ob/org-babel-insert-result--improper-lists):
  New test.

Reported-by: Daniele Pizzolli <>

4 days agoorg-habit: Fix 6652baa39db26df8a8ac5dbbe40f3de91bf1a6b1
Nicolas Goaziou [Sun, 22 Feb 2015 16:26:21 +0000]
org-habit: Fix 6652baa39db26df8a8ac5dbbe40f3de91bf1a6b1

* lisp/org-habit.el (org-habit-parse-todo): Fix regexp introduced in

4 days agoorg-habit: Small refactoring
Nicolas Goaziou [Sun, 22 Feb 2015 16:12:56 +0000]
org-habit: Small refactoring

* lisp/org-habit.el (org-habit-parse-todo): Small refactoring.

4 days agoSimplify `org-show-context' configuration
Nicolas Goaziou [Mon, 16 Feb 2015 20:43:35 +0000]
Simplify `org-show-context' configuration

* lisp/org.el (org-show-context-detail): New variable.
(org-context-choice, org-show-following-heading, org-show-siblings,
org-show-entry-below, org-show-hierarchy-above): Remove variables.
(org-show-set-visibility): New function.
(org-convert-to-oddeven-levels, org-get-location, org-show-context,
org-reveal): Use new function.
(org-link-search): Update docstring.

* lisp/org-agenda.el (org-agenda-cycle-show): Use new function.
(org-agenda-show): Replace missing variable.

* testing/lisp/test-org.el (test-org/show-set-visibility): New test.

* doc/org.texi (Sparse trees):
* doc/orgguide.texi (Sparse trees): Document changes.

* etc/ORG-NEWS: Signal changes.

Configuration of `org-show-context' is done with a single variable
offering six different views, instead of four variables for a total
of 16 configurations.

5 days agoSmall fix
Nicolas Goaziou [Sun, 22 Feb 2015 10:41:01 +0000]
Small fix

* lisp/org.el (org-mode-flyspell-verify): Small fix.

5 days agoAdd documentation regarding reserved keywords in @node Headlines
Arni Magnusson [Sat, 21 Feb 2015 16:08:43 +0000]
Add documentation regarding reserved keywords in @node Headlines

6 days agoox: Allow to narrow scope in footnotes API
Nicolas Goaziou [Sat, 21 Feb 2015 08:34:15 +0000]
ox: Allow to narrow scope in footnotes API

* lisp/ox.el (org-export--footnote-reference-map,
  org-export-get-footnote-number): Allow to specify scope, through
  a new optional argument.

* lisp/ox-odt.el (org-odt-footnote-reference): Apply API change.

* testing/lisp/test-ox.el (test-org-export/footnote-first-reference-p,
  test-org-export/collect-footnote-definitions): Update tests.

6 days agoox: Small refactoring
Nicolas Goaziou [Fri, 20 Feb 2015 17:50:27 +0000]
ox: Small refactoring

* lisp/ox.el (org-export-document-properties): New variable.
(org-export-prune-tree, org-export-remove-uninterpreted-data): Use new variable.

6 days agoox: Change `org-export-collect-footnote-definitions' signature
Nicolas Goaziou [Fri, 20 Feb 2015 17:06:23 +0000]
ox: Change `org-export-collect-footnote-definitions' signature

* lisp/ox.el (org-export-collect-footnote-definitions): Refactor
  code.  Change signature.

* testing/lisp/test-ox.el (test-org-export/collect-footnote-definitions):
  New test.
(test-org-export/footnotes): Update test.

* lisp/ox-ascii.el (org-ascii-inner-template):
* lisp/ox-html.el (org-html-footnote-section): Apply signature change.

* etc/ORG-NEWS: Document signature change.

This change makes `org-export-collect-footnote-definitions' compatible
with `org-export-get-footnote-number' and

6 days agoorg-habit: Update copyright year
Nicolas Goaziou [Fri, 20 Feb 2015 15:25:08 +0000]
org-habit: Update copyright year

7 days agoorg-habit: Extend tracking to done notes
Nicolas Goaziou [Fri, 20 Feb 2015 09:45:59 +0000]
org-habit: Extend tracking to done notes

* lisp/org-habit.el (org-habit-parse-todo): Also find timestamps when
  `org-log-done' is `note'.

Reported-by: Andrew Francis Swann <>

7 days agoorg.el: Backwards compatibility
Rasmus [Fri, 20 Feb 2015 00:35:34 +0000]
org.el: Backwards compatibility

* org.el (org-cdlatex-environment-indent): Remove cl-prefixes for

7 days agoFix bug introduced in 438d75c
Rasmus [Thu, 19 Feb 2015 23:05:56 +0000]
Fix bug introduced in 438d75c

* ox-latex.el (org-latex--format-spec): Fix bug.

7 days agoox-latex: Format-spec for hyperref and title
Rasmus [Wed, 11 Feb 2015 01:18:09 +0000]
ox-latex: Format-spec for hyperref and title

* ox-latex.el (org-latex--format-spec): New function with format-specs.
  (org-latex-template): Use org-latex--format-spec.
  (org-latex-hyperref-template): New defaults and use
  (org-latex-title-command): Use org-latex--format-spec.
* ORG-NEWS: Mention change.

7 days agoorg.el: Change indention for cdlatex environments
Rasmus [Tue, 10 Feb 2015 11:02:59 +0000]
org.el: Change indention for cdlatex environments

* org.el (org-cdlatex-environment-indent): Use different indent
  algorithm based on content above the new latex-environment.

8 days agoFix `org-time-stamp'
Nicolas Goaziou [Thu, 19 Feb 2015 09:33:26 +0000]
Fix `org-time-stamp'

* lisp/org.el (org-time-stamp): Properly insert time when specified.

This fixes e50baa4cf7b97cc2e9b6991560be2bd970106e1e.

Reported-by: Rasmus <>

8 days agoob-core: Allow spaces in NAME
Nicolas Goaziou [Wed, 18 Feb 2015 14:02:22 +0000]
ob-core: Allow spaces in NAME

* lisp/ob-core.el (org-babel-src-name-w-name-regexp): Allow spaces as
  NAME value.

Suggested-by: Joost Helberg <>

8 days agoorg-src: Update copyright year
Nicolas Goaziou [Wed, 18 Feb 2015 13:58:36 +0000]
org-src: Update copyright year

9 days agoorg-src: Small refactoring
Nicolas Goaziou [Wed, 18 Feb 2015 01:05:57 +0000]
org-src: Small refactoring

* lisp/org-src.el (org-src--remove-overlay): New function.
(org-src--edit-element, org-src-mode-configure-edit-buffer): Use new

9 days agoMerge branch 'maint'
Nicolas Goaziou [Wed, 18 Feb 2015 01:04:39 +0000]
Merge branch 'maint'

9 days agoFix "Wrong type argument: overlayp" maint
Nicolas Goaziou [Wed, 18 Feb 2015 00:59:51 +0000]
Fix "Wrong type argument: overlayp"

* lisp/org-src.el (org-src-mode-configure-edit-buffer): Fix "Wrong
  type argument: overlayp".

Changing major mode in a source edit buffer resets local variables
used to link it to source buffer.  As a consequence, overlay in source
buffer can no longer be found nor deleted.

11 days agoFix documentation-function for elisp-mode in emacs24
Łukasz Gruner [Mon, 16 Feb 2015 05:05:30 +0000]
Fix documentation-function for elisp-mode in emacs24

11 days agoUpdated org-drill to version 2.4.5.
Paul Sexton [Mon, 16 Feb 2015 02:12:10 +0000]
Updated org-drill to version 2.4.5.

11 days agoUpdate some copyright years
Nicolas Goaziou [Mon, 16 Feb 2015 00:40:07 +0000]
Update some copyright years

11 days agoorg-element: Forbid footnote references in parsed keywords
Nicolas Goaziou [Sun, 15 Feb 2015 20:37:26 +0000]
org-element: Forbid footnote references in parsed keywords

* lisp/org-element.el (org-element-object-restrictions): Forbid
  footnote references in parsed keywords.

Inserting footnote references in parsed keywords (e.g., TITLE or
CAPTION) can lead to subtle bugs.  Indeed, it is impossible to know in
time if that particular footnote is going to be used in the output,
and, therefore, if it should count, e.g., in

11 days agoorg-footnote: Be more strict about location for new footnotes
Nicolas Goaziou [Sun, 15 Feb 2015 20:30:29 +0000]
org-footnote: Be more strict about location for new footnotes

* lisp/org-footnote.el (org-footnote--allow-reference-p): New
(org-footnote-new): Use new function.

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

In particular, Org now refuses to add a footnote reference in
a keyword, e.g., TITLE.

11 days agoorg-element: Faster inline footnotes parsing
Nicolas Goaziou [Sun, 15 Feb 2015 12:33:25 +0000]
org-element: Faster inline footnotes parsing

* lisp/org-element.el (org-element--pair-square-table): New variable.
(org-element-footnote-reference-parser): Use new variable.

13 days agoorg-list: Fix continuated items repair
Nicolas Goaziou [Sat, 14 Feb 2015 11:37:41 +0000]
org-list: Fix continuated items repair

* lisp/org-list.el (org-list-struct-apply-struct): Preserve disparate
  indentation in contuated contents, i.e., contents after a plain list
  still within an item.

* testing/lisp/test-org-list.el (test-org-list/repair): Add test.

This fixes the following case:

  - item
     - child
     item contents
       with different indentation

Reported-by: Mark Edgington <>

13 days agoFix `org-return' on list items
Nicolas Goaziou [Sat, 14 Feb 2015 01:07:18 +0000]
Fix `org-return' on list items

* lisp/org.el (org-return): Properly preserve list structure when
  calling `org-return-indent' on an item.

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

Reported-by: Rasmus <>

13 days agoFix `org-time-stamp'
Nicolas Goaziou [Fri, 13 Feb 2015 20:54:21 +0000]
Fix `org-time-stamp'

* lisp/org.el (org-time-stamp): Correctly match repeater, if any.
  Refactor code.

* testing/lisp/test-org.el (test-org/time-stamp): New test.

Reported-by: Nicolas Richard <>

13 days agoox-odt: Fix nested footnotes export
Nicolas Goaziou [Fri, 13 Feb 2015 13:14:39 +0000]
ox-odt: Fix nested footnotes export

* lisp/ox-odt.el (org-odt-footnote-reference): Fix nested footnotes

Reported-by: Vaidheeswaran <>

13 days agoox: Add optional order argument to some footnotes related functions
Nicolas Goaziou [Fri, 13 Feb 2015 13:10:51 +0000]
ox: Add optional order argument to some footnotes related functions

* lisp/ox.el (org-export--footnote-reference-map): New function.
org-export-get-footnote-number): Allow to change order when footnotes
references are contained within footnote definitions.

* testing/lisp/test-ox.el (test-org-export/footnote-first-reference-p):
(test-org-export/get-footnote-number):  New tests.
(test-org-export/footnotes): Update test.

2 weeks agoob-core.el: Fix numeric error and add header-args
Rainer M. Krug [Tue, 10 Feb 2015 08:32:46 +0000]
ob-core.el: Fix numeric error and add header-args

* lisp/ob-core.el (org-babel-view-src-block-info): when a property
  value was numeric, an error was raised. Fixed by converting property
  value to string before evauation.

* lisp/ob-core.el (org-babel-view-src-block-info): Add property string
  "header args" to output of org-babel-view-src-block-info to make
  debugging of header-args setting problems easier.

* lisp/ob-core.el (org-babel-view-src-block-info): Add property string
  for language specific "header args:LANG" to output of org-babel-view-src-block-info to make
  debugging of header-args setting problems easier.

2 weeks agoox-publish: Clean-up `org-publish-find-date'
Nicolas Goaziou [Thu, 12 Feb 2015 23:33:17 +0000]
ox-publish: Clean-up `org-publish-find-date'

* lisp/ox-publish.el (org-publish-find-date): Remove useless cond

:date property is never a single timestamp, so the first branch is
always false.

Reported-by: Rasmus <>

2 weeks agoorg.texi: Add missing `org-export-with-date'
Nicolas Goaziou [Thu, 12 Feb 2015 23:28:04 +0000]
org.texi: Add missing `org-export-with-date'

* doc/org.texi (Export settings): Add `org-export-with-date'.
(Publishing options): Add `org-export-with-date' and

2 weeks agoorg.texi: Fix typo
Rasmus [Thu, 12 Feb 2015 10:56:21 +0000]
org.texi: Fix typo

* org.texi (Export settings): Fix typo in vindex.

2 weeks agoFix bugs introduced in b39dd5a
Rasmus [Thu, 12 Feb 2015 09:59:30 +0000]
Fix bugs introduced in b39dd5a

* ox-man.el (org-man-template),
  ox-texinfo.el (org-texinfo-template): Fix bug.

2 weeks agoorg.texi: Fix bug
Rasmus [Thu, 12 Feb 2015 09:41:21 +0000]
org.texi: Fix bug

* org.texi: Fix bug introduced in e6fcc853c.

2 weeks agoox: Optional export of title
Rasmus [Tue, 10 Feb 2015 23:09:39 +0000]
ox: Optional export of title

* ox.el (org-export-with-title): New variable.
* ox (org-export-options-alist),
  ox-ascii.el (org-ascii-template--document-title),
  ox-beamer.el (org-beamer-template), ox-html.el (org-html-template),
  ox-latex.el (org-latex-template), ox-man.el (org-man-template),
  ox-odt.el (org-odt-template), ox-org.el (org-org-template),
  ox-publish.el (org-publish-project-alist),
  ox-texinfo.el (org-texinfo-template),
  ox-groff.el (org-groff--mt-head): Use new variable.
* ox-koma-letter.el (org-koma-letter-use-title): Mark obsolete.
* test-ox.el (test-org-export/parse-option-keyword): Add :with-title.
* ORG-NEWS, org.texi: Mention org-export-with-title.

This is useful in e.g. ox-html where title can be set via
`org-html-preamble-template' or when using the {{{title}}}-macro.

2 weeks agoTurn momentarily planning keywords into defvar
Nicolas Goaziou [Wed, 11 Feb 2015 23:42:59 +0000]
Turn momentarily planning keywords into defvar

* lisp/org.el (org-closed-string, org-deadline-string,
  org-scheduled-string): Use a defvar.

DEADLINE, SCHEDULED and CLOSED are now meant to be constants. However,
we preserve backward-compatibility during obsolencence phase.

2 weeks agoorg-agenda: Ignore sticky feature when picking date from calendar
Nicolas Goaziou [Wed, 11 Feb 2015 22:42:52 +0000]
org-agenda: Ignore sticky feature when picking date from calendar

* lisp/org-agenda.el (org-calendar-goto-agenda): Ignore sticky

Reported-by: Tory S. Anderson <>

2 weeks agoorg-agenda: Fix small bug
Nicolas Goaziou [Tue, 10 Feb 2015 22:13:56 +0000]
org-agenda: Fix small bug

* lisp/org-agenda.el (org-todo-list): `org-last-args' property
  contains a list, not an atom.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Tue, 10 Feb 2015 21:27:12 +0000]
Merge branch 'maint'

2 weeks agoox-odt: Fix exporting target link without a description
Nicolas Goaziou [Tue, 10 Feb 2015 21:23:40 +0000]
ox-odt: Fix exporting target link without a description

* lisp/ox-odt.el (org-odt-link--infer-description): Fix comment.
(org-odt-link): When link to target has no description, use a number.

Reported-by: Christian Moe <>

2 weeks agoFix typo
Nicolas Goaziou [Tue, 10 Feb 2015 16:41:54 +0000]
Fix typo

* lisp/org.el (org-read-date-analyze): Fix typo.

Reported-by: Charles Millar <>

2 weeks agoorg.texi: New example on babel :post header
rasmus [Mon, 26 Jan 2015 17:24:39 +0000]
org.texi: New example on babel :post header

* org.texi (post): Clarification and new example.

2 weeks agoorg-element: Interpret pseudo objects without declaration
Nicolas Goaziou [Mon, 9 Feb 2015 11:02:16 +0000]
org-element: Interpret pseudo objects without declaration

* lisp/org-element.el (org-element-object-containers): New variable
(org-element-interpret-data): Remove optional argument.
(org-element--interpret-data-1): Remove optional argument.  Guess when
a given element or object has a pseudo type.

* lisp/ox-latex.el (org-latex-pseudo-objects): Remove variable.
(org-latex-table, org-latex--math-table): Apply signature change above.

* testing/lisp/test-org-element.el (test-org-element/interpret-data):
  Update test.

2 weeks agoORG-NEWS: Document `org-element-copy'
Nicolas Goaziou [Mon, 9 Feb 2015 09:58:57 +0000]
ORG-NEWS: Document `org-element-copy'

2 weeks agoorg-element: Fix docstring
Nicolas Goaziou [Mon, 9 Feb 2015 09:57:39 +0000]
org-element: Fix docstring

* lisp/org-element.el (org-element-copy): Fix docstring.

2 weeks agoUse `org-element-copy'
Nicolas Goaziou [Mon, 9 Feb 2015 09:13:50 +0000]
Use `org-element-copy'

* lisp/org.el (org-timestamp-split-range): Use `org-element-copy'.  Do
  not preserve :parent property anymore.

* lisp/ox.el (org-export-as): Use `org-element-copy'.

* testing/lisp/test-org.el (test-org/timestamp-split-range): Update test.

2 weeks agoorg-element: Implement `org-element-copy'
Nicolas Goaziou [Mon, 9 Feb 2015 09:07:34 +0000]
org-element: Implement `org-element-copy'

* lisp/org-element.el (org-element-copy): New function.
* testing/lisp/test-org-element.el (test-org-element/copy): New test.

2 weeks agoox.el: {{{date}}} formatting argument
Rasmus [Sun, 8 Feb 2015 20:34:43 +0000]
ox.el: {{{date}}} formatting argument

* ox.el (org-export-as): Allow {{{date}}} to take formatting-argument.
* org.texi (Macro replacement): Document {{{date}}} formatting.
* test-ox.el (test-org-export/expand-macro): Test {{{data(format)}}}
* org-NEWS: Mention optional {{{data}}} argument.

Optional argument to {{{date}}} like {{{date(FMT)}}} are treated
similar to {{{time(FMT)}}} if \#+DATE is a timestamp.

2 weeks agoFix timestamp-based sorting of tags-based entries in agenda
Yuri D. Lensky [Sat, 7 Feb 2015 18:37:46 +0000]
Fix timestamp-based sorting of tags-based entries in agenda

* lisp/org.el (org-scan-tags): Fix agenda org tags scans to properly
  add timestamp property, completely analogously to
* lisp/org-agenda.el (org-agenda-entry-get-agenda-timestamp,
  org-agenda-get-todos): Factored timestamp retrieval code out to
  separate function org-agenda-entry-get-agenda-timestamp from

Before this fix, timestamps were ignored when sorting agenda views of
the 'tags' and 'tags-todo' types.


2 weeks agoorg.texi: Consistent formatting of non-nil
Rasmus [Sun, 8 Feb 2015 21:48:57 +0000]
org.texi: Consistent formatting of non-nil

* org.texi: All occurances of non-nil changed to non-@code{nil}.

2 weeks agoorg.texi: Document all predefined macros
Rasmus [Sun, 8 Feb 2015 21:43:25 +0000]
org.texi: Document all predefined macros

* org.texi (Macro replacement): Document all predefined macros.

2 weeks agoCall `org-insert-heading' instead of (insert "* ")
Nicolas Goaziou [Sun, 8 Feb 2015 00:45:38 +0000]
Call `org-insert-heading' instead of (insert "* ")

* lisp/org-agenda.el (org-agenda-insert-diary-as-top-level):
* lisp/org.el (org-link-search):  Call `org-insert-heading' instead
  of (insert "* ").

This allows, in particular, to run `org-insert-heading-hook' and
possibly fix up blank lines around.

2 weeks ago`org-insert-heading' can be forced to insert top-level headline
Nicolas Goaziou [Sun, 8 Feb 2015 00:43:30 +0000]
`org-insert-heading' can be forced to insert top-level headline

* lisp/org.el (org-insert-heading): Change signature.  Tiny refactoring.
* testing/lisp/test-org.el (test-org/insert-heading): Add tests.

2 weeks agoFunction `org-link-search' does exact headline search
Alan Schmitt [Fri, 12 Dec 2014 07:26:05 +0000]
Function `org-link-search' does exact headline search

* lisp/org.el (org-link-search): Change headline search such that it
always does an exact search, ignoring spaces.

* testing/lisp/test-org.el (test-org/fuzzy-links): Test exact headline
match with spaces and cookies.

* doc/org.texi (External links): Cleanup footnote about the
`org-link-search-must-match-exact-headline' option for text searches
and add a footnote about the effect of the same option for heading

* doc/ORG-NEWS: Document changes.

2 weeks agoorg-wikinodes: Fix fontification
Nicolas Goaziou [Sat, 7 Feb 2015 21:01:38 +0000]
org-wikinodes: Fix fontification

* contrib/lisp/org-wikinodes.el (org-wikinodes-add-to-font-lock-keywords):
  Properly install fontification mechanism.  Small refactoring.

Suggested-by: Scott Campbell <>

3 weeks agoorg-agenda: Fix logging with bulk agenda commands
Nicolas Goaziou [Fri, 6 Feb 2015 08:52:25 +0000]
org-agenda: Fix logging with bulk agenda commands

* lisp/org-agenda.el (org-agenda-new-marker): Make sure data inserted
  inserted in the heading above marker updates it.
(org-agenda-bulk-action): Enforce calling `org-add-log-note' after
each action.

Reported-by: Maxim Baz <>

3 weeks agoTiny refactoring
Nicolas Goaziou [Thu, 5 Feb 2015 17:12:23 +0000]
Tiny refactoring

* lisp/org.el (org-ctrl-c-ctrl-c): Tiny refactoring.

3 weeks agoorg-texi: Fix typo
Nicolas Goaziou [Thu, 5 Feb 2015 16:44:48 +0000]
org-texi: Fix typo

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

This fixes e3bd15a8ddb7d8343b7e632695714cc0fa438aac.

3 weeks agoorg.texi: Fix typo
Nicolas Goaziou [Thu, 5 Feb 2015 16:42:20 +0000]
org.texi: Fix typo

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

Reported-by: J. David Boyd <>

3 weeks agoox-html: Properly escape ampersands in links
Nicolas Goaziou [Thu, 5 Feb 2015 11:56:23 +0000]
ox-html: Properly escape ampersands in links

* lisp/ox-html.el (org-html-link): Properly escape ampersands in
(org-html-encode-plain-text): Small refactoring.

Reported-by: Karl Voit <>

3 weeks agoMerge branch 'maint'
Marco Wahl [Thu, 5 Feb 2015 09:19:48 +0000]
Merge branch 'maint'

3 weeks agocontrib/org-drill.el: update to v2.4.4
Marco Wahl [Thu, 5 Feb 2015 09:18:15 +0000]
contrib/org-drill.el: update to v2.4.4

3 weeks agoorg-agenda: Fix adding diary entries
Nicolas Goaziou [Thu, 5 Feb 2015 09:00:46 +0000]
org-agenda: Fix adding diary entries

* lisp/org-agenda.el (org-agenda-insert-diary-make-new-entry): Fix
  adding adding diary entries the same day.

This is a follow-up to a1116aa54ee4befd8fa52e3f92207db200ebfd59.

Reported-by: Gregor Zattler <>

3 weeks agoorg-element: Externalize docview links
Nicolas Goaziou [Tue, 3 Feb 2015 22:00:21 +0000]
org-element: Externalize docview links

* lisp/org-element.el (org-element-link-type-is-file): Remove.
(org-element-link-parser): Do not treat specially anymore "docview"
link type.

* testing/lisp/test-org-element.el (test-org-element/link-parser):
  Update test.

* lisp/org-docview.el (org-docview-export): Fix path.

"docview" is a custom link type handled in its own library.  There is
no reason to include it in core parser.

3 weeks agoorg.texi: Fix typo
Nicolas Goaziou [Tue, 3 Feb 2015 20:46:22 +0000]
org.texi: Fix typo

* doc/org.texi (Filtering/limiting agenda items): Fix typo.

3 weeks agoFix `org-toggle-heading'
Nicolas Goaziou [Tue, 3 Feb 2015 20:39:30 +0000]
Fix `org-toggle-heading'

* lisp/org.el (org-toggle-heading): Avoid adding spurious stars when
  changing a plain list into a subtree.

Reported-by: Rainer Stengele <>

3 weeks agoorg-download.el: Update to commit d01bdfd6
Oleh Krehel [Tue, 3 Feb 2015 18:46:05 +0000]
org-download.el: Update to commit d01bdfd6

3 weeks agoorg.texi: Fix typo
Nicolas Goaziou [Tue, 3 Feb 2015 11:19:02 +0000]
org.texi: Fix typo

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

Suggested-by: Thierry Pellé <>

3 weeks agoMerge branch 'maint'
Achim Gratz [Tue, 3 Feb 2015 08:23:58 +0000]
Merge branch 'maint'

3 weeks agomk/ correct file globs for contrib/lisp
Achim Gratz [Tue, 3 Feb 2015 08:23:20 +0000]
mk/ correct file globs for contrib/lisp

3 weeks agoorg-agenda: Fix agenda diary corruption
Nicolas Goaziou [Mon, 2 Feb 2015 17:19:30 +0000]
org-agenda: Fix agenda diary corruption

* lisp/org-agenda.el (org-agenda-insert-diary-make-new-entry): Do not
  save excursion or final position is lost.

Reported-by: Gregor Zattler <>

3 weeks agoMake use of `org-insert-heading' instead of inserting the * character
Konubinix [Thu, 6 Nov 2014 10:02:23 +0000]
Make use of `org-insert-heading' instead of inserting the * character

* lisp/org-agenda.el (org-agenda-insert-diary-as-top-level): Make
  use of `org-insert-heading' instead of inserting the * character

Therefore, the hooks associated to the insertion of a heading will be
triggered.  Since those hooks may cause the creation of some
metadata.  `org-end-of-meta-data' is used afterward.

3 weeks agoorg-table: Allow accentuated characters in remote table names
Nicolas Goaziou [Sun, 1 Feb 2015 00:03:45 +0000]
org-table: Allow accentuated characters in remote table names

* lisp/org-table.el (org-table-eval-formula): Allow a larger set of
  characters in remote name.

Reported-by: flav <>

3 weeks agoorg.el: org-babel-load-file loads first tangle file
Sami Airaksinen [Thu, 29 Jan 2015 21:10:02 +0000]
org.el: org-babel-load-file loads first tangle file

(org-babel-load-file): When org-mode FILE has multiple target files
for tangle blocks, `exported-file' will be set to last found
target file, which might not be the `file'.

Therefore fix for this bug is to select the last element of that
tangled file list, which is the tangle target file of the first found
tangle block, most typically the `file'.


3 weeks agoorg-index.el: sorting in idle-timer; add now does updates too.
Marc-Oliver Ihm [Sat, 31 Jan 2015 20:47:05 +0000]
org-index.el: sorting in idle-timer; add now does updates too.

3 weeks agotesting/lisp/test-ob.el: Add `test-ob/remove-inline-result'
Charles Berry [Sat, 31 Jan 2015 19:05:18 +0000]
testing/lisp/test-ob.el: Add `test-ob/remove-inline-result'

* testing/lisp/test-ob.el (test-ob/remove-inline-result): Check that
  whitespace in `src_emacs-lisp{1} {{{results(=1=)}}}.' is removed by
  `org-babel-remove-inline-result', and that whitespace following the
  macro (if any) is left intact.

3 weeks agoorg-clock: Fix `org-clock-in-last' with universal argument
Nicolas Goaziou [Sat, 31 Jan 2015 11:46:50 +0000]
org-clock: Fix `org-clock-in-last' with universal argument

* lisp/org-clock.el (org-clock-in-last): `org-clock-in' expects an
  universal argument, not the return value of `org-clock-select-task'.

Reported-by: Peter Münster <>

3 weeks agoob-core.el: inline src block removal bugfix
Charles Berry [Sat, 31 Jan 2015 03:27:54 +0000]
ob-core.el: inline src block removal bugfix

* ob.core.el (org-babel-remove-inline-result): Removing an inline src
  block result removes all whitespace preceding it. The function is
  now `interactive'.

  * ob-core.el (org-babel-insert-result): The call to
  `org-babel-remove-inline-result' preceeds insertion of whitespace
  and setting location of local variable `inlinep'.

  Daniele Pizzolli reported that cleaning a buffer by evaluating
  `org-babel-remove-inline-result' can leave unwanted whitespace.  That
  bug is fixed, and the function is made `interactive'.

3 weeks agoSmall refactoring
Nicolas Goaziou [Fri, 30 Jan 2015 18:41:02 +0000]
Small refactoring

* lisp/org.el (org-log-beginning):
* lisp/org-agenda.el (org-agenda-insert-diary-make-new-entry): Small

3 weeks agoReplace `org-end-of-meta-data-and-drawers'
Nicolas Goaziou [Fri, 30 Jan 2015 18:26:36 +0000]
Replace `org-end-of-meta-data-and-drawers'

* lisp/org.el (org-end-of-meta-data): New function.
(org-end-of-meta-data-and-drawers): Remove function.

* lisp/org-capture.el (org-capture-place-plain-text): Use new

* testing/lisp/test-org.el (test-org/end-of-meta-data): New test.

* etc/ORG-NEWS: Document removal.