5 min agoFix code comment master
Nicolas Goaziou [Fri, 27 Mar 2015 17:14:59 +0000]
Fix code comment

* lisp/org.el (org-fontify-entities): Fix comment.

3 hours agoox-html: Tiny fix
Rasmus [Fri, 27 Mar 2015 13:51:30 +0000]
ox-html: Tiny fix

* ox-html.el: Remove second :html-html5-fancy.

4 hours agoox-koma-letter: Add hyperref support
Rasmus [Fri, 27 Mar 2015 12:46:08 +0000]
ox-koma-letter: Add hyperref support

* ox-koma-letter.el (org-koma-letter-template): Insert hyperref setup.

5 hours agoox-latex: Utilize change in bcf6970
Rasmus [Fri, 27 Mar 2015 12:04:13 +0000]
ox-latex: Utilize change in bcf6970

* ox-koma-letter.el (org-koma-letter-template),
  ox-latex.el (org-latex--format-spec): Tiny refactor.

5 hours agoox: Always insert creator in metadata
Rasmus [Fri, 27 Mar 2015 11:51:01 +0000]
ox: Always insert creator in metadata

* ox-odt.el (org-odt-template): Always insert creator.
* ox-latex.el (org-latex--format-spec): Creator always available.

21 hours agoFuzzy links to headlines ignore COMMENT keywords
Nicolas Goaziou [Thu, 26 Mar 2015 20:05:27 +0000]
Fuzzy links to headlines ignore COMMENT keywords

* lisp/org.el (org-link-search): Ignore COMMENT keyword.
* testing/lisp/test-org.el (test-org/fuzzy-links): Add test.

Reported-by: Martin Carlé <>

3 days agoorg-macro: Small refactoring
Nicolas Goaziou [Tue, 24 Mar 2015 08:44:27 +0000]
org-macro: Small refactoring

* lisp/org-macro.el (org-macro-initialize-templates): Remove spurious
  lambda funcall.

3 days agoFix c9a52787c14c3a7429bcd3c8975350525e0baa04
Nicolas Goaziou [Tue, 24 Mar 2015 08:27:56 +0000]
Fix c9a52787c14c3a7429bcd3c8975350525e0baa04

* lisp/org-macro.el (org-macro--collect-macros): Ignore macro
  definitions in commented subtrees.
* lisp/ox.el (org-export--get-inbuffer-options): Ignore options in
  commented subtrees.
(org-export--delete-commented-subtrees): Remove function.
(org-export-as): Apply removal.

Removing the whole subtree is not subtle as Babel might want to use
data there.

Reported-by: Robert Klein <>

3 days agoox-beamer: Properly transcode description tags
Nicolas Goaziou [Tue, 24 Mar 2015 08:15:47 +0000]
ox-beamer: Properly transcode description tags

* lisp/ox-beamer.el (org-beamer-item): Make sure description tags are
  transcoded using `beamer' back-end instead of `latex'.

Reported-by: Andreas Leha <>

3 days agoob-latex: htlatex and imagemagick
Andreas Leha [Sat, 21 Mar 2015 22:22:17 +0000]
ob-latex: htlatex and imagemagick

Hi all,

please find attached a small patch that fixes a problem discussed
in [1].

In short, when executing a latex src block and htlatex is a valid
option, it should be used even if imagemagick is part of the headers.



>From 2986826441c24e2f0d6cf5efe6bf8aca75c4bdbb Mon Sep 17 00:00:00 2001
From: Andreas Leha <>
Date: Sat, 21 Mar 2015 22:11:37 +0000
Subject: [PATCH] ob-latex: htlatex preferred over imagemagick

* ob-latex.el (org-babel-execute:latex): change the order of the handlers

When `imagemagick' is given this entry acts as an else option.
So, it should always come last.

3 days agoox: Ignore export settings in commented subtrees
Nicolas Goaziou [Mon, 23 Mar 2015 23:32:15 +0000]
ox: Ignore export settings in commented subtrees

* lisp/ox.el (org-export--delete-commented-subtrees): New function.
(org-export-as): Use new function.

* testing/lisp/test-ox.el (org-test-with-parsed-data,
  test-org-export/get-inbuffer-options): Use new function.
(test-org-export/expand-macro): Add tests.

Reported-by: Andreas Leha <>

3 days agoox: Rename some internal functions
Nicolas Goaziou [Mon, 23 Mar 2015 23:06:56 +0000]
ox: Rename some internal functions

* lisp/ox.el (org-export--prune-tree): Renamed from
  `org-export-prune-tree'.  Move it close to its caller.
(org-export--remove-uninterpreted-data): Renamed from
`org-export-remove-uninterpreted-data'.  Move it close to its caller.
(org-export--remove-uninterpreted-data-1): Move internal function
close to its caller.
(org-export-as): Apply renaming.

* testing/lisp/test-ox.el (org-test-with-parsed-data): Apply renaming.

3 days agoorg-list: Modify M-RET on a description tag
Nicolas Goaziou [Mon, 23 Mar 2015 22:35:57 +0000]
org-list: Modify M-RET on a description tag

* lisp/org-list.el (org-list-insert-item): On a description tag,
  insert item before current one.  However, past the colons, insert it
* testing/lisp/test-org-list.el (test-org-list/insert-item): Add

Reported-by: Leo Ufimtsev <>

4 days agoDocument how to scroll calendar by one year at date prompt
Gregor Zattler [Sun, 22 Mar 2015 21:54:13 +0000]
Document how to scroll calendar by one year at date prompt

* doc/org.texi (The date/time prompt): Add respective keys to the Key
  index.  Also justify the lines in this block to look prettier in


4 days agoChange "\..." entities into "\_ "
Nicolas Goaziou [Sun, 22 Mar 2015 20:45:00 +0000]
Change "\..." entities into "\_   "

* lisp/org-element.el (org-element--set-regexps):
(org-element-entity-parser): Update regexps.

* lisp/org-entities.el (org-entities): Modify syntax for space

* lisp/org.el (org-fontify-entities): Update comment.

* lisp/org-clock.el (org-clocktable-indent-string): Apply syntax

* etc/ORG-NEWS (title): Update announce.

Use a less verbose syntax, which cannot interfere with file paths.

5 days agoox-ascii: Remove dubious spacing in UTF8 titles
Nicolas Goaziou [Sun, 22 Mar 2015 14:19:36 +0000]
ox-ascii: Remove dubious spacing in UTF8 titles

* lisp/ox-ascii.el (org-ascii-template--document-title): Remove
  spurious newline characters in title when exporting to UTF8.

Suggested-by: Rasmus <>

5 days agoorg-element: Fix 22f942b4812d4c499738c0faae4d37180a64375b
Nicolas Goaziou [Sun, 22 Mar 2015 09:09:29 +0000]
org-element: Fix 22f942b4812d4c499738c0faae4d37180a64375b

* lisp/org-element.el (org-element-entity-parser): Fix regexp groups.

5 days agoorg-clock: Use new entities for clock table
Nicolas Goaziou [Sun, 22 Mar 2015 00:53:42 +0000]
org-clock: Use new entities for clock table

* lisp/org-clock.el (org-clocktable-indent-string): Use new entities.
  Update docstring.

Fixes: bug#18870

5 days agoImplement new entity family "\...."
Nicolas Goaziou [Sun, 22 Mar 2015 00:40:17 +0000]
Implement new entity family "\...."

* lisp/org-element.el (org-element--set-regexps):
(org-element-entity-parser): Update regexps for entities.

* lisp/org-entities.el (org-entities): Add new entities.

* lisp/org.el (org-fontify-entities): Add comment.

* etc/ORG-NEWS (title): Introduce new entities.

"\..." are used to insert an arbitrary number of spaces in various
back-ends.  In particular, this family can be used to introduce
leading spaces within table cells.

Also, unlike to other entities, these can be used mid-word, e.g.,


Curly brackets can still be added before a dot, e.g.,

  This is the end\...{}.

5 days agoorg-entities: Remove unused variable and functions
Nicolas Goaziou [Sat, 21 Mar 2015 23:32:24 +0000]
org-entities: Remove unused variable and functions

* lisp/org-entities.el (org-entities-ascii-explanatory): Remove
(org-entities--user-safe-p): Refactor.
(org-entities-user): Delete reference to removed variable.  Small
docstring fix.
(org-entity-get-representation, org-entity-latex-math-p): Remove

* etc/ORG-NEWS (Skipping): Document variable removal.

6 days agoorg-element: `org-element-parse-secondary-string' accepts nil argument
Nicolas Goaziou [Sat, 21 Mar 2015 08:43:45 +0000]
org-element: `org-element-parse-secondary-string' accepts nil argument

* lisp/org-element.el (org-element-parse-secondary-string): Accept nil
  argument as a special case.

Reported-by: Rasmus <>

6 days agoox-s5: Small fix
Rasmus [Fri, 20 Mar 2015 22:12:40 +0000]
ox-s5: Small fix

* ox-s5.el: Require cl during compilation.

6 days agoox-koma-letter: Fix bug introduced in 304a5cb
Rasmus [Fri, 20 Mar 2015 21:14:12 +0000]
ox-koma-letter: Fix bug introduced in 304a5cb

* ox-koma-letter.el (org-koma-letter-template): Handle empty SUBJECT.

6 days agoRevert "ox-koma-letter: fix bug introduced in 304a5cb"
Rasmus [Fri, 20 Mar 2015 21:12:35 +0000]
Revert "ox-koma-letter: fix bug introduced in 304a5cb"

This reverts commit 1ce810f9abc0db10037c88dfb60cf5e4c7656268.

6 days agoox-koma-letter: fix bug introduced in 304a5cb
Rasmus [Fri, 20 Mar 2015 21:08:29 +0000]
ox-koma-letter: fix bug introduced in 304a5cb

* ox-koma-letter.el (org-koma-letter-template): Handle empty SUBJECT.

6 days agoox-koma-letter: Interpret #+SUBJECT.
Rasmus [Wed, 18 Mar 2015 12:33:42 +0000]
ox-koma-letter: Interpret #+SUBJECT.

* ox-koma-letter.el (org-koma-letter-template): Interpret #+SUBJECT.

6 days agoox-koma-letter: Stricter subject inference
Rasmus [Thu, 19 Mar 2015 11:10:30 +0000]
ox-koma-letter: Stricter subject inference

* ox-koma-letter.el (org-koma-letter--special-tag): New function.
  (org-koma-letter-headline): Use org-koma-letter--special-tag
  and do not guess opening.
  (org-koma-letter-template): Directly infer subject from first
  non-special headline.

6 days agoox-koma-letter: Tiny refactor
Rasmus [Thu, 19 Mar 2015 11:10:08 +0000]
ox-koma-letter: Tiny refactor

ox-koma-letter.el (org-koma-letter--get-tagged-contents): Use

7 days agoORG-NEWS: Mention change in grouptags functionality
Gustav Wikström [Thu, 19 Mar 2015 20:55:18 +0000]
ORG-NEWS: Mention change in grouptags functionality

* etc/ORG-NEWS: Mention change of previous commits for grouptags:

Entries added to ORG-NEWS for the description of:

 - ecfd00c org.texi: Complement info for group tags

 - 8562bd0 org: Nesting grouptags

 - 6c6ae99 org-agenda: Filtering in the agenda on grouptags

 - ee45258 org: Grouptags not unique and can contain regexp

7 days agoorg-index.el: version 4.2.1
Marc-Oliver Ihm [Thu, 19 Mar 2015 21:16:46 +0000]
org-index.el: version 4.2.1

9 days agoox: Throw an error on unresolved id links
Nicolas Goaziou [Tue, 17 Mar 2015 22:24:03 +0000]
ox: Throw an error on unresolved id links

* lisp/ox.el (org-export-get-environment): Properly find file
  associated to id link.
(org-export-resolve-id-link): Throw an error on unresolved id links.

Use `org-id-find' instead of `org-id-find-id-file' as the latter may
returns the file attached to current buffer on search failure.

Reported-by: Jacob Gerlach <>

9 days agoox.el: Issue error for unresolved fuzzy link
Jacob Gerlach [Thu, 12 Mar 2015 02:39:11 +0000]
ox.el: Issue error for unresolved fuzzy link

* lisp/ox.el (org-export-resolve-fuzzy-link): Throw an error instead
  of returning nil when link can't be resolved.

* testing/lisp/test-ox.el (test-org-export/resolve-fuzzy-link): Change
  last test from should-not to should-error

In addition to throwing an error, don't store the failed match in the
link cache.


9 days agoox: Throw an error on unresolved coderef
Nicolas Goaziou [Tue, 17 Mar 2015 21:28:39 +0000]
ox: Throw an error on unresolved coderef

* lisp/ox.el (org-export-resolve-coderef): Throw an error on
  unresolved coderef.

* testing/lisp/test-ox.el (test-org-export/resolve-coderef): Update

10 days agoD is supported by Babel
Thierry Banel [Mon, 16 Mar 2015 21:38:05 +0000]
D is supported by Babel

* doc/org.texi: added D in the list of Babel supported languages

10 days agoox: Fix defcustom
Nicolas Goaziou [Tue, 17 Mar 2015 14:47:40 +0000]
ox: Fix defcustom

* lisp/ox.el (org-export-with-title): Fix :package-information value.

10 days agoox: Remove `comment' special value for `org-export-with-creator'
Nicolas Goaziou [Tue, 17 Mar 2015 14:40:52 +0000]
ox: Remove `comment' special value for `org-export-with-creator'

* lisp/ox.el (org-export-with-creator): Change default value.

* lisp/ox-ascii.el (org-ascii-template):
* lisp/ox-beamer.el (org-beamer-template):
* lisp/ox-latex.el (org-latex-template):
* lisp/ox-odt.el (org-odt-template):
* lisp/ox-org.el (org-org-template):
* lisp/ox-texinfo.el (org-texinfo-template): Treat
  `org-export-with-creator' as a boolean.

* testing/lisp/test-ox.el (test-org-export/parse-option-keyword):
  Update test.

* doc/org.texi (Export settings): Update allowed values in

* etc/ORG-NEWS: Signal change.

Special `comment' value isn't meaningful for all back-ends and is not
implemented in every back-end where it makes sense anyway.

It is possible to add a comment including creator at the end of the
document using a body filter instead.

10 days agoox-odt: Fix bugs in metadata generation
Rasmus [Tue, 17 Mar 2015 00:09:50 +0000]
ox-odt: Fix bugs in metadata generation

* ox-odt.el (org-odt-template): Use empty quotes when keyword and
  description is missing.  Fill the generator field like ox-latex.

10 days agoorg.texi: Complement info for group tags
Gustav Wikström [Thu, 5 Mar 2015 00:45:57 +0000]
org.texi: Complement info for group tags

group tags are more general and a name-change (or addition) is made in
the manual: tag groups are now called tag hierarchy.

Adding information about the added tag hierarchy functionality and

10 days agoorg: Nesting grouptags
Gustav Wikström [Sat, 24 Jan 2015 01:47:47 +0000]
org: Nesting grouptags

* lisp/org.el (org-tags-expand): Nesting grouptags.

  Allowing subtags to be defined as groups themselves.

  : #+TAGS: [ Group : SubOne(1) SubTwo ]
  : #+TAGS: [ SubOne : SubOne1 SubOne2 ]
  : #+TAGS: [ SubTwo : SubTwo1 SubTwo2 ]

  Should be seen as a tree of tags:
  - Group
    - SubOne
      - SubOne1
      - SubOne2
    - SubTwo
      - SubTwo1
      - SubTwo2

  Searching for "Group" should return all tags defined above.

10 days agoorg-agenda: Filtering in the agenda on grouptags
Gustav Wikström [Sat, 24 Jan 2015 01:47:35 +0000]
org-agenda: Filtering in the agenda on grouptags

Filtering in the agenda on grouptags filter also subcategories.
Exception if filter is applied with a (double) prefix-argument.

Filtering in the agenda on subcategories does not filter the "above"
levels anymore.

If a grouptag contains a regular expression the regular expression
is also used as a filter.

* lisp/org-agenda.el (org-agenda-filter-by-tag): improved UI and

  Now uses the argument arg and optional argument exclude instead of
  strip and narrow.  ARG because the argument has multiple purposes
  and makes more sense than strip now.  The term narrowing is changed
  to exclude.

* lisp/org-agenda.el (org-agenda-filter-by-tag-refine): name change in
  argument to match org-agenda-filter-by-tag.

* lisp/org-agenda.el (org-agenda-filter-make-matcher): new optional
  argument EXPAND and refactoring.

* lisp/org-agenda.el (org-agenda-filter-make-matcher-tag-exp): new
  function, previously baked into org-agenda-filter-make-matcher.

* lisp/org-agenda.el (org-agenda-filter-apply): New optional parameter
  EXPAND, used in call to org-agenda-filter-make-matcher.

* lisp/org-agenda.el (org-agenda-reapply-filters): Uses another
  parameter (the new optional one) in call to org-agenda-filter-apply.

* lisp/org-agenda.el (org-agenda-finalize): use of new parameter in
  call to org-agenda-filter-apply.

* lisp/org-agenda.el (org-agenda-redo): Use of new parameter in call
  to org-agenda-filter-apply.

10 days agoorg: Grouptags not unique and can contain regexp
Gustav Wikström [Sat, 24 Jan 2015 01:47:26 +0000]
org: Grouptags not unique and can contain regexp

* lisp/org.el (org-tags-expand): Grouptags can have regular expressions as

  The regular expressions in the group must be marked up within { }.
  Example use:

  : #+TAGS: [ Project : {P@.+} ]

  Searching for the tag Project will now list all tags also including
  regular expression matches for P@.+.  Good for example if tags for a
  certain project is tagged with a common project-identifier,
  i.e. P@2014_OrgTags.

* lisp/org.el (org-tag-alist) : New symbols for grouptags when the
  tags in the group don't have to be distinct on a heading.

  Grouptags had to previously be defined with { }.  This syntax is
  already used for exclusive tags and Grouptags need their own,
  non-exclusive syntax.  This behaviour is achieved with [ ].  Note: {
  } can still be used also for Grouptags but then only one of the
  given tags can be used on the headline at the same time.  Example:

  [ group : sub1 sub2 ]

  Grouptags also are not filtered when setting up tags.  This means
  they can exist multiple times in org-tag-alist list.  It will be
  usable if nesting of grouptags is ever to become reality.

  There is a slightly annoying side-effect when setting tags in that a
  tag which is both a part of a grouptag and a grouptag of it's own
  will get multiple key-choices in the selection-UI.

* lisp/org.el (org--setup-process-tags): Adaption for the added syntax
  for non-distinct grouptags.

* lisp/org.el (org-fast-tag-selection): Add support for the added,
  non-unique, grouptag-syntax.  Minor (if ...) to (when ...) refactor.

11 days agoMerge branch 'maint'
Rasmus [Sun, 15 Mar 2015 20:53:13 +0000]
Merge branch 'maint'

11 days agoox-man: Change dispatcher key to 'M' maint
Rasmus [Sun, 15 Mar 2015 20:50:07 +0000]
ox-man: Change dispatcher key to 'M'

* ox-man.el (man): Move man-export to 'M' in the ox dispatcher.

Reported by:  Brice Waegenire <>

12 days agoorg-plot: Fix empty cells handling
Nicolas Goaziou [Sun, 15 Mar 2015 17:10:43 +0000]
org-plot: Fix empty cells handling

* lisp/org-plot.el (org-plot/gnuplot-script): Fix empty cells

Reported-by: Anders Wirzenius <>

12 days agoorg-plot: Tiny fixes
Nicolas Goaziou [Sun, 15 Mar 2015 16:12:01 +0000]
org-plot: Tiny fixes

* lisp/org-plot.el (org-plot/gnuplot-script, org-plot/gnuplot): Tiny

12 days agoFix `org-delete-property-globally'
Nicolas Goaziou [Sun, 15 Mar 2015 15:51:36 +0000]
Fix `org-delete-property-globally'

* lisp/org.el (org-delete-property-globally): Ignore false positive.

12 days agoFix `org-entry-delete' with accumulated properties
Nicolas Goaziou [Sun, 15 Mar 2015 15:06:42 +0000]
Fix `org-entry-delete' with accumulated properties

* lisp/org.el (org-entry-delete): Remove all occurrences of
  accumulated properties, too.  Return a non-nil value when some
  property was removed.

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

12 days agoFix `org-find-entry-with-id'
Nicolas Goaziou [Sun, 15 Mar 2015 11:08:24 +0000]
Fix `org-find-entry-with-id'

* lisp/org.el (org-find-entry-with-id): Ignore false positive ID
  properties when looking for a specific ID.

12 days agoFix CUSTOM_ID search
Nicolas Goaziou [Sun, 15 Mar 2015 11:07:40 +0000]
Fix CUSTOM_ID search

* lisp/org.el (org-link-search): Avoid false positives when searching
  CUSTOM_ID property.

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

12 days agoImplement `org-find-property'
Nicolas Goaziou [Sun, 15 Mar 2015 10:15:43 +0000]
Implement `org-find-property'

* lisp/org.el (org-find-property): New function.
* testing/lisp/test-org.el (test-org/find-property): New test.

13 days agoorg.texi: Fix typos
Rasmus [Sat, 14 Mar 2015 15:05:50 +0000]
org.texi: Fix typos

* org.texi (@LaTeX{} and PDF export): Correct typo.  Remove warning
  about ox-latex documents are incompatible with xetex and luatex.

Reported by: Reuben Thomas <>

13 days agoorg.texi: Small fix
Rasmus [Sat, 14 Mar 2015 12:56:23 +0000]
org.texi: Small fix

* org.texi (In-buffer settings): Include ODT_STYLES_FILE and fix typo.

13 days agoox-html: Handle missing title better
Rasmus [Sat, 14 Mar 2015 00:25:48 +0000]
ox-html: Handle missing title better

* ox-html.el (org-html-template): Only insert title when nonnil.

Empty headings trigger a W3 Validator warning.

13 days agoox-beamer: Fix hyperref bug
Rasmus [Fri, 13 Mar 2015 20:55:21 +0000]
ox-beamer: Fix hyperref bug

* ox-beamer.el (org-beamer-template): Typeset hyperref as in

13 days agoorg.el: Declare org-element-update-syntax
Rasmus [Thu, 12 Mar 2015 12:55:06 +0000]
org.el: Declare org-element-update-syntax

* org.el: Declare org-element-update-syntax.  Required by org-add-link-type.

2 weeks agoob-exp: Use `user-error' over `error' when applicable
Nicolas Goaziou [Fri, 13 Mar 2015 08:09:18 +0000]
ob-exp: Use `user-error' over `error' when applicable

* lisp/ob-exp.el (org-babel-exp-process-buffer): Use `user-error'.
  Also keep lines within 80 characters.

2 weeks agoob-exp.el: org-babel-exp-process-buffer reports src block w/o language
Charles Berry [Thu, 12 Mar 2015 02:11:11 +0000]
ob-exp.el: org-babel-exp-process-buffer reports src block w/o language

* lisp/ob-exp.el (org-babel-exp-process-buffer): Issue an error when a
  src block with no language is processed.

Throw an error with an informative message when trying to export buffer
containing `#+src_block\n'.

Reported-by: XIE Yuheng <>

2 weeks agoorg.texi: Remove references to deprecated syntax
Nicolas Goaziou [Wed, 11 Mar 2015 16:33:22 +0000]
org.texi: Remove references to deprecated syntax

* doc/org.texi (Moving subtrees):
(Weekly/daily agenda):
(Categories): Remove references to deprecated syntax.

2 weeks agoFix CATEGORY property
Nicolas Goaziou [Wed, 11 Mar 2015 16:12:49 +0000]
Fix CATEGORY property

* doc/org.texi (Special properties): Remove "CATEGORY"

* lisp/org.el (org-special-properties): Remove "CATEGORY".
(org-property-get-allowed-values): Ignore "CATEGORY".
(org-entry-get): Make sure to get CATEGORY value using

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

"CATEGORY" is not a special property as it can also be set using
a properties drawer.

2 weeks agoorg-index.el: version 4.2.0
Marc-Oliver Ihm [Tue, 10 Mar 2015 20:46:52 +0000]
org-index.el: version 4.2.0

2 weeks agoorg-index.el: version 4.2.0
Marc-Oliver Ihm [Tue, 10 Mar 2015 20:45:14 +0000]
org-index.el: version 4.2.0

2 weeks agoox-beamer.el: Update BEAMER_HEADER placement
Matthew Gidden [Mon, 9 Mar 2015 21:25:15 +0000]
ox-beamer.el: Update BEAMER_HEADER placement

* lisp/ox-beamer.el (`beamer-header'): Move BEAMER_HEADER injection to
  final part of preamble (after themes, title, etc.).  Allows for
  custom short titles, etc., with #+BEAMER_HEADER:

* doc/org.texi: Updated BEAMER_HEADER entry with a relevant footnote.

Previously, TITLE, etc., was being injected after BEAMER_HEADER, so
short titles (and related) could not be added.  BEAMER_HEADER now
serves as a final preamble injection point.


2 weeks agoTiny refactoring
Nicolas Goaziou [Sun, 8 Mar 2015 17:34:09 +0000]
Tiny refactoring

* lisp/org.el (org-timestamp--to-internal-time): New function.
(org-timestamp-format): Use new function.
(org-timestamp-split-range): Fix docstring.

2 weeks agoox-ascii: Fix TOC keyword
Nicolas Goaziou [Sun, 8 Mar 2015 16:47:04 +0000]
ox-ascii: Fix TOC keyword

* lisp/ox-ascii.el (org-ascii--build-toc): Fix TOC keyword.

Reported-by: Rasmus <>

2 weeks agoRevert "org-agenda: Fix small bug"
Nicolas Goaziou [Sun, 8 Mar 2015 00:19:45 +0000]
Revert "org-agenda: Fix small bug"

This reverts commit d92ef9517079359de022465b69fd3f99813d993e.

Reported-by: Ken Mankoff <>

2 weeks agoorg-habit: Add support for "++" and "+" repeater types
Nicolas Goaziou [Sat, 7 Mar 2015 18:29:40 +0000]
org-habit: Add support for "++" and "+" repeater types

* lisp/org-habit.el (org-habit-parse-todo): Add repeater type to
(org-habit-repeat-type): New function.
(org-habit-build-graph): Handle "++" and "+" repeater types.

Reported-by: Leo He <>

2 weeks agoFix LaTeX fragment display from remote documents
Nicolas Goaziou [Sat, 7 Mar 2015 09:01:27 +0000]
Fix LaTeX fragment display from remote documents

* lisp/org.el (org-toggle-latex-fragment): Fix display from remote
  documents by creating images in temporary directory.

Reported-by: Dustin Paluch <>

2 weeks agoorg-element: Fix indentation removal with line breaks
Nicolas Goaziou [Sat, 7 Mar 2015 00:52:58 +0000]
org-element: Fix indentation removal with line breaks

* lisp/org-element.el (org-element-line-break-parser): Tiny
(org-element-normalize-contents): Take into consideration line breaks
when removing common indentation.  Small refactoring.

* testing/lisp/test-org-element.el (test-org-element/normalize-contents):
  Add tests.

3 weeks agoorg.texi: Correct reference to `org-agenda-persistent-marks'
Robert Pluim [Fri, 6 Mar 2015 10:52:51 +0000]
org.texi: Correct reference to `org-agenda-persistent-marks'

* org.texi (Agenda commands): Correct reference to

3 weeks agoChange `org-toggle-latex-fragment' behaviour
Nicolas Goaziou [Fri, 27 Feb 2015 23:30:43 +0000]
Change `org-toggle-latex-fragment' behaviour

* lisp/org.el (org-remove-latex-fragment-image-overlays): Allow to
  limit overlay removal through optional arguments.  Define a new
  return value.
(org-toggle-latex-fragment): Change behaviour.  Update docstring
(org-format-latex): Update docstring.  Remove overlay when LaTeX
fragment is deleted.

* etc/ORG-NEWS: Signal change.

The new behaviour is the following:

  - With a double prefix argument or with a single prefix argument
    when point is before the first headline, toggle overlays in the
    whole buffer;

  - With a single prefix argument, toggle overlays in the current

  - On latex code, toggle overlay at point;

  - Otherwise, toggle overlays in the current section.

Suggested-by: <>

3 weeks agoorg-index.el: version 4.1.2
Marc-Oliver Ihm [Thu, 5 Mar 2015 21:08:34 +0000]
org-index.el: version 4.1.2

3 weeks agoAdd org-babel functions for Mathematica language
Yi Wang [Thu, 5 Mar 2015 10:56:16 +0000]
Add org-babel functions for Mathematica language

3 weeks agoAdd support for mathematica for
Yi Wang [Thu, 5 Mar 2015 10:55:06 +0000]
Add support for mathematica for

3 weeks agoorg-index.el version 4.1.1
Marc-Oliver Ihm [Tue, 3 Mar 2015 21:08:14 +0000]
org-index.el version 4.1.1

3 weeks agoorg-element: Elements can accept multiple secondary strings
Nicolas Goaziou [Sun, 1 Mar 2015 16:03:02 +0000]
org-element: Elements can accept multiple secondary strings

* lisp/org-element.el (org-element-secondary-value-alist): Turn
  secondary properties into a list.
(org-element-secondary-p, org-element-map): Apply changes to variable

3 weeks agoorg-agenda: Nicer error message when accessing killed buffer
Nicolas Richard [Fri, 27 Feb 2015 12:16:36 +0000]
org-agenda: Nicer error message when accessing killed buffer

* lisp/org-agenda.el (org-agenda-switch-to): Throw an error if marker
  points to no buffer.

3 weeks agoorg-clock: Fix ignored integer values for `org-clock-into-drawer'
Nicolas Goaziou [Fri, 27 Feb 2015 23:43:37 +0000]
org-clock: Fix ignored integer values for `org-clock-into-drawer'

* lisp/org-clock.el (org-clock-into-drawer): Fix ignored integer

Reported-by: Rainer Stengele <>

3 weeks agoorg-index.el version 4.1.0
Marc-Oliver Ihm [Fri, 27 Feb 2015 22:00:51 +0000]
org-index.el version 4.1.0

3 weeks agoFix void `orgtbl-line-start-regexp' in orgstruct++ mode
Nicolas Goaziou [Fri, 27 Feb 2015 17:25:03 +0000]
Fix void `orgtbl-line-start-regexp' in orgstruct++ mode

* lisp/org.el (org-adaptive-fill-function): Use
  `org-table-line-regexp' instead of `orgtbl-line-start-regexp', which
  may not be defined.

Reported-by: Eric Abrahamsen <>

4 weeks agoox-html: Use upstream MathJax CDN
Rasmus [Mon, 16 Feb 2015 01:04:02 +0000]
ox-html: Use upstream MathJax CDN

* ox-html.el (org-html-mathjax-options): Add multlinewidth,
  autonumber, tagindent, font, linebreaks and tagside.  Remove MathML.
  Change default indent to correspond to upstream default.  Change
  default MathJax path to point to upstream CDN.
  (org-html--build-mathjax-config): Remove MathML-related parts.
  (org-html-mathjax-template): Simplifiy template.
* org.texi (@LaTeX{} fragments), (Math formatting in HTML export):
  Reflect change in default CDN.
* ORG-NEWS: Document changes.

4 weeks agoox: Small refactoring
Nicolas Goaziou [Fri, 27 Feb 2015 11:06:37 +0000]
ox: Small refactoring

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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