4 hours agoox-html: Prefer custom ID for links in table of contents master
Nicolas Goaziou [Wed, 1 Jul 2015 12:49:42 +0000]
ox-html: Prefer custom ID  for links in table of contents

* lisp/ox-html.el (org-html--format-toc-headline): Use custom ID when

Reported-by: Mitchel Humpherys <>

4 hours agoMerge branch 'maint'
Nicolas Goaziou [Wed, 1 Jul 2015 12:44:48 +0000]
Merge branch 'maint'

4 hours agoorg-wikinodes: Fix fontification maint
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 <>

44 hours agoUse inactive timestamps when re-scheduling or re-deadlining
Nicolas Goaziou [Mon, 29 Jun 2015 20:19:38 +0000]
Use inactive timestamps when re-scheduling or re-deadlining

* lisp/org.el (org-log-note-headings): Improve docstring.
(org-store-log-note): When re-scheduling or re-deadlining, convert old
or new timestamp to an inactive one so as to not clutter the agenda.

Reported-by:  Karl Voit <>

2 days agoorg-element: Minimize false positives when matching a table.el table
Nicolas Goaziou [Mon, 29 Jun 2015 12:49:00 +0000]
org-element: Minimize false positives when matching a table.el table

* lisp/org-element.el (org-element--set-regexps): Improve regexp for
  table.el tables.

2 days agoBe more strict when matching an Org table
Nicolas Goaziou [Sun, 28 Jun 2015 21:32:38 +0000]
Be more strict when matching an Org table

* lisp/org.el (org-at-table-p): Do not allow "+" character at the
  beginning of a table row.

2 days agoFix `org-decrease-number-at-point'
Nicolas Goaziou [Sun, 28 Jun 2015 19:09:59 +0000]
Fix `org-decrease-number-at-point'

* lisp/org.el (org-decrease-number-at-point): Handle the case when INC
  is nil.

2 days agoorg-element: Fix table and table.el mix
Nicolas Goaziou [Sun, 28 Jun 2015 19:09:16 +0000]
org-element: Fix table and table.el mix

* lisp/org-element.el (org-element-table-parser): Properly parse an
  Org table followed by a line starting with a "+".

* testing/lisp/test-org-element.el (test-org-element/context): Fix

3 days agoSilence byte-compiler
Nicolas Goaziou [Sun, 28 Jun 2015 14:50:08 +0000]
Silence byte-compiler

3 days agoorg-table: Do not modify buffer needlessly when aligning table
Nicolas Goaziou [Sun, 28 Jun 2015 13:45:31 +0000]
org-table: Do not modify buffer needlessly when aligning table

* lisp/org-table.el (org-table-align): Compare new table with old one
  before replacing it.  Only replace modified lines.

3 days agoUse parser for `org-at-table-p' and al.
Nicolas Goaziou [Sun, 28 Jun 2015 12:42:07 +0000]
Use parser for `org-at-table-p' and al.

* lisp/org-table.el (org-table-begin):
(org-table-end): Refactor using parser.

* lisp/org.el (org-at-table-p):
(org-at-table.el-p): Refactor using parser.

(org-meta-return): Use `org-at-table-p'.

(org-table-recognize-table.el): Small refactoring.

3 days agoorg-element: Remove dependency on `org-at-table-p'
Nicolas Goaziou [Sun, 28 Jun 2015 09:37:13 +0000]
org-element: Remove dependency on `org-at-table-p'

* lisp/org-element.el (org-element-table-parser): Do not call
(org-element--current-element): Do not call `org-at-table-p'.

3 days agoORG-NEWS: Fix wrong variable name
Nicolas Goaziou [Sun, 28 Jun 2015 08:37:07 +0000]
ORG-NEWS: Fix wrong variable name

3 days agoorg-table: Remove `org-table-relative-ref-may-cross-hline'
Nicolas Goaziou [Sun, 28 Jun 2015 08:28:53 +0000]
org-table: Remove `org-table-relative-ref-may-cross-hline'

* lisp/org-table.el (org-table-relative-ref-may-cross-hline): Remove

* etc/ORG-NEWS: Document removal.

This variable was declared obsolete in August 2009.  See

3 days agoorg-mobile: Tiny fix in creating file
Sergey Gordienko [Fri, 26 Jun 2015 14:44:20 +0000]
org-mobile: Tiny fix in creating file

* lisp/org-mobile.el (org-mobile-create-index-file):
Eliminate cloning of `#+READONLY' property in the `' file.
A sublists of `org-todo-keywords' don't need to contain the `|'.


3 days agoorg-add-planning-info: Improve deletion handling
Kyle Meyer [Sat, 27 Jun 2015 01:33:34 +0000]
org-add-planning-info: Improve deletion handling

* lisp/org.el (org-add-planning-info): Reset point before each
  planning entry search.  Clean up extra spaces.

* testing/lisp/test-org.el (test-org/add-planning-info): Add tests.

- Reposition save-excursion call to reset point every dolist
  iteration.  Otherwise, the order of the entries to be removed
  matters, and a call like

      (org-add-planning-info nil nil 'scheduled 'deadline)


      DEADLINE: <2015-06-26 Fri> SCHEDULED: <2015-06-26 Fri>

  will fail to remove the deadline entry.

- Delete leading white space even when at the beginning of the line so
  that, when org-adapt-indentation is nil, a space is not inserted
  when removing the leading planning info entry.

  This prevents headings with repeating entries like

      SCHEDULED: <2015-06-26 Fri +1w>

  from being closed and recycled with an extra space in front of

- Add leading white space to the planning info entry regexp to prevent
  leftover white space when removing entries other than the first

5 days agoox-latex: Fix backslash escaping in plain text
Nicolas Goaziou [Fri, 26 Jun 2015 07:50:22 +0000]
ox-latex: Fix backslash escaping in plain text

* lisp/ox-latex.el (org-latex-plain-text): Fix backslash escaping.

6 days agoox: Properly fix internal regexps after each buffer change
Nicolas Goaziou [Tue, 23 Jun 2015 21:41:30 +0000]
ox: Properly fix internal regexps after each buffer change

* lisp/ox.el (org-export-as): Refresh regexps before executing Babel
  code, running last hook and parsing buffer so precomputed regular
  expressions are correct at each of these steps.

This is not necessary before macros since those are not expected to
rely on computed expression.  Actually, advanced macros, i.e. with
"(eval ...)" syntax, could make use of them, but a Babel snippet is
more likely in this situation.

Reported-by: Robert Klein <>

6 days agoorg-capture: Place capture buffer in other window
Eric S Fraga [Thu, 25 Jun 2015 07:58:34 +0000]
org-capture: Place capture buffer in other window

* org-capture.el (org-capture-fill-template): The capture template
  buffer will be displayed in another window, keeping original window
  visible if appropriate.

7 days agolisp/org-agenda.el: Fix non-persistent category filters in sticky agenda
Grégoire Jadi [Wed, 24 Jun 2015 07:50:36 +0000]
lisp/org-agenda.el: Fix non-persistent category filters in sticky agenda

* lisp/org-agenda.el (org-agenda-prepare): Use the correct key for
  category filter.

`org-agenda-prepare-window' uses 'cat whereas `org-agenda-prepare' used 'car.

7 days agolisp/org-agenda.el: Fix non-persistent filters when refreshing sticky agenda
Grégoire Jadi [Wed, 24 Jun 2015 07:51:34 +0000]
lisp/org-agenda.el: Fix non-persistent filters when refreshing sticky agenda

* lisp/org-agenda.el (org-agenda-prepare): Fix non-persistent filters when refreshing sticky agenda

When a sticky agenda is buried, then reviving and refreshing, existing
filters are ignored even when org-agenda-persistent-filter is `t'.

Reported and fixed by Daniel Borchmann

7 days agoorg-contacts.el: Catch `nextfile' in `org-contacts-db'
Philippe Crama [Wed, 10 Jun 2015 09:25:46 +0000]
org-contacts.el: Catch `nextfile' in `org-contacts-db'

* org-contacts.el (org-contacts-db): Catch `nextfile'.

When a file in the list returned by the `org-contacts-files' function
doesn't exist and the user selects the option to attempt to remove it
from the `org-agenda-files' list, 'nextfile is thrown.  Catch it and
skip processing that file instead of failing.


7 days agoorg.texi: Fix the :post example
Alan Schmitt [Tue, 23 Jun 2015 20:36:26 +0000]
org.texi: Fix the :post example

* doc/org.texi (post): Add a missing colon in the example.

7 days agoox: Handle subtree properties referring to multiple options
Nicolas Goaziou [Tue, 23 Jun 2015 20:09:43 +0000]
ox: Handle subtree properties referring to multiple options

* lisp/ox.el (org-export--get-subtree-options): When multiple options
  refer to the same keyword, and, as a consequence, to the same export
  property, make sure all of them get updated.
* testing/lisp/test-ox.el (test-org-export/get-subtree-options): Add

Reported-by: Myles English <>

8 days agoox-koma-letter: Parse more keywords
Rasmus [Thu, 18 Jun 2015 08:34:17 +0000]
ox-koma-letter: Parse more keywords

* ox-koma-letter.el (koma-letter): Parse author, phone-number,
  opening, closing and signature.
  (org-koma-letter-template): parse closing.

8 days agoox-latex: Remove useless call to `org-latex--wrap-latex-math-block'
Nicolas Goaziou [Tue, 23 Jun 2015 13:31:09 +0000]
ox-latex: Remove useless call to `org-latex--wrap-latex-math-block'

* lisp/ox-latex.el (org-latex-footnote-reference): Remove call to
  `org-latex--wrap-latex-math-block' since definitions are already
  taken care of at the filter parse tree level, since

8 days agoox: Add external footnotes definitions in parse tree
Nicolas Goaziou [Tue, 23 Jun 2015 13:28:01 +0000]
ox: Add external footnotes definitions in parse tree

* lisp/ox.el (org-export-get-environment):
Remove :footnote-definition-alist property.
(org-export-get-footnote-definition): Apply removal of property.

(org-export--merge-external-footnote-definitions): New function.
(org-export-as): Use new function.

* testing/lisp/test-ox.el (test-org-export/footnotes): Update tests.

This change allows to have all footnote definitions within the parse
tree, so they can be reached with, e.g., a parse tree filter.

8 days agoorg-element: Implement `org-element-create'
Nicolas Goaziou [Tue, 23 Jun 2015 09:18:36 +0000]
org-element: Implement `org-element-create'

* lisp/org-element.el (org-element-create): New function.
(org-element-adopt-elements): Small refactoring.

8 days agoorg.texi: Remove reference to unexistent filter
Nicolas Goaziou [Tue, 23 Jun 2015 06:50:45 +0000]
org.texi: Remove reference to unexistent filter

* doc/org.texi (Advanced configuration): Remove reference to
  quote-section filter.

8 days agoox-latex: Introduce :environment attribute for example blocks
Nicolas Goaziou [Tue, 23 Jun 2015 06:43:07 +0000]
ox-latex: Introduce :environment attribute for example blocks

* lisp/ox-latex.el (org-latex-example-block): Implement :environment
  attribute, which allows to override "verbatim" environment.
* doc/org.texi (@LaTeX{} specific attributes): Document change.

8 days agoorg-clone-subtree-with-time-shift: Accept 0 clones
Kyle Meyer [Mon, 22 Jun 2015 01:46:54 +0000]
org-clone-subtree-with-time-shift: Accept 0 clones

* lisp/org.el (org-clone-subtree-with-time-shift): Allow argument
  specifying number of clones to be 0.

* testing/lisp/test-org.el (test-org/clone-with-time-shift): Add

This makes it possible to clone a subtree with a repeating timestamp
so that the repeater is removed from the original subtree and a single
shifted, repeating clone is created.  If the original subtree does not
have a repeating timestamp, no clones will be made.

9 days agoTiny speed-up for `org-entry-properties'
Nicolas Goaziou [Mon, 22 Jun 2015 08:01:51 +0000]
Tiny speed-up for `org-entry-properties'

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

10 days agoorg.texi: Fix typo
myq larson [Sat, 20 Jun 2015 22:00:04 +0000]
org.texi: Fix typo

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


13 days agoox-koma-letter: Fix a docstring
Nicolas Goaziou [Thu, 18 Jun 2015 13:31:09 +0000]
ox-koma-letter: Fix a docstring

* contrib/lisp/ox-koma-letter.el (org-koma-letter--special-contents-as-macro):
  Fix docstring.  Tiny refactoring.

13 days agoox: Tiny refactoring
Nicolas Goaziou [Thu, 18 Jun 2015 13:21:02 +0000]
ox: Tiny refactoring

* lisp/ox.el (org-export-replace-region-by): Refactor.

2 weeks agoob-core: Small refactoring
Nicolas Goaziou [Wed, 17 Jun 2015 09:55:57 +0000]
ob-core: Small refactoring

* lisp/ob-core.el (org-babel-params-from-properties): Refactor code to
  avoid nesting `mapcar' calls.

2 weeks agoox: Simplify fuzzy link matching
Nicolas Goaziou [Tue, 16 Jun 2015 21:05:29 +0000]
ox: Simplify fuzzy link matching

* lisp/ox.el (org-export-resolve-fuzzy-link): When a fuzzy link
  matches more than one headline, prefer the first one in the parse

* testing/lisp/test-ox.el (test-org-export/fuzzy-link): Remove a test.

This behaviour is consistent with `org-open-at-point'.  Also, it
allows to cache destinations.

2 weeks agoSanitize link encoding
Nicolas Goaziou [Tue, 16 Jun 2015 20:11:16 +0000]
Sanitize link encoding

* lisp/org.el (org-store-link): Improve docstring.
(org-make-link-string): Escape internal links only when absolutely
(org-link-escape-chars): Add percent character.
(org-link-escape-chars-browser): Make space character more visible.
(org-link-escape): Refactor code.
(org-display-inline-images): Properly unescape path before creating
the link.
(org-extract-attributes): Remove function.

* lisp/ox.el (org-export-resolve-fuzzy-link): Decode path before
  resolving link.

* testing/lisp/test-ox.el (test-org-export/resolve-fuzzy-link): Add

2 weeks agoox-beamer: Wrap labels in braces
Suvayu Ali [Tue, 16 Jun 2015 19:04:21 +0000]
ox-beamer: Wrap labels in braces

* ox-beamer.el (org-beamer--get-label): Wrap labels in braces.

The colon in the label name causes an argument parsing problem, for
more see <>.

2 weeks agoSmall refactoring
Nicolas Goaziou [Tue, 16 Jun 2015 14:51:53 +0000]
Small refactoring

* lisp/org.el (org-link-unescape): Refactor code.

2 weeks agoox-beamer: Add %R and %O placeholders for extra environments
Nicolas Goaziou [Tue, 16 Jun 2015 13:26:47 +0000]
ox-beamer: Add %R and %O placeholders for extra environments

* lisp/ox-beamer.el (org-beamer-environments-extra): Handle "%R" and
  "%O" placeholders.
(org-beamer--format-block): Fill template with appropriate values for
placeholders above.

Suggested-by: Suvayu Ali <>

2 weeks agoox-beamer: Fix labels to headlines
Nicolas Goaziou [Tue, 16 Jun 2015 12:00:36 +0000]
ox-beamer: Fix labels to headlines

* lisp/ox-beamer.el (org-beamer--get-label): Use headline's internal
  reference instead of using numbers.

2 weeks agoob-tangle: Silence byte-compiler
Nicolas Goaziou [Mon, 15 Jun 2015 22:09:20 +0000]
ob-tangle: Silence byte-compiler

2 weeks agoob-tangle: Small refactoring
Nicolas Goaziou [Mon, 15 Jun 2015 19:38:14 +0000]
ob-tangle: Small refactoring

* lisp/ob-tangle.el (org-babel-tangle-collect-blocks): Refactor.

2 weeks agoox-koma-letter: Fix void `with-title' variable
Nicolas Goaziou [Mon, 15 Jun 2015 16:49:24 +0000]
ox-koma-letter: Fix void `with-title' variable

* contrib/lisp/ox-koma-letter.el (org-koma-letter-template): Let-bind

Reported-by: Thomas Holst <>

2 weeks agoorg-element: Fix cache bug for orphaned elements
Nicolas Goaziou [Sun, 14 Jun 2015 12:52:04 +0000]
org-element: Fix cache bug for orphaned elements

* lisp/org-element.el (org-element--cache-sync-requests): Remove a now
  useless element from requests
(org-element--cache-submit-request): Apply change to sync request.
(org-element--cache-process-request): Apply change to sync requests.
Fix removal of orphaned elements, i.e., elements not affected by
a change, but with an ancestor that was.

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

Reported-by: Suvayu Ali <>

2 weeks agoox-koma-letter: Fix missing \begin{document}
Nicolas Goaziou [Thu, 11 Jun 2015 20:44:39 +0000]
ox-koma-letter: Fix missing \begin{document}

* contrib/lisp/ox-koma-letter.el (org-koma-letter-template): Insert
  "\begin{document}" even if :with-title and :with-subject are both

Reported-by: Dieter Faulbaum <>

2 weeks agoox-koma-letter: Fix typo in docstring
Nicolas Goaziou [Thu, 11 Jun 2015 20:44:15 +0000]
ox-koma-letter: Fix typo in docstring

* contrib/lisp/ox-koma-letter.el (org-koma-letter-prefer-subject): Fix

3 weeks agoox-html: Prefer custom ID over internal references for links to headlines
Nicolas Goaziou [Wed, 10 Jun 2015 11:31:16 +0000]
ox-html: Prefer custom ID over internal references for links to headlines

* lisp/ox-html.el (org-html-link): Use custom ID if present instead of
  internal reference.

Reported-by: Oleh Krehel <>

3 weeks agoorg-mac-link.el: Reduce Outlook App confusion
Mike McLean [Tue, 9 Jun 2015 20:09:35 +0000]
org-mac-link.el: Reduce Outlook App confusion

* org-mac-link.el (org-mac-outlook-message-open, org-as-get-selected-outlook-mail): Specify Microsoft non-ambiguously

If the user has:
- a virtual solution (Parallels, etc.)
- with Office for PC installed
- and configured to expose WinTel applications to the Macintosh Finder

The AppleScript commands may try to select the WinTel version of
"Microsoft Outlook". This—obviously—doesn’t work. By adding the Mac file extension and path, we reduce this confusion and more
reliably call the Macintosh version of Outlook.


Signed-off-by: Alan Schmitt <>

3 weeks agoox-html: Reorder output of meta data in head
Arun Persaud [Tue, 9 Jun 2015 04:48:26 +0000]
ox-html: Reorder output of meta data in head

* lisp/ox-html.el (org-html--build-meta-info): Charset and viewport
  meta data should come first in `head'.  Only reordered output, no
  other code changes.

See, for example:


3 weeks agoorg-list: Silence byte-compiler
Nicolas Goaziou [Tue, 9 Jun 2015 15:14:13 +0000]
org-list: Silence byte-compiler

3 weeks agoorg-list: Fix checkbox update with inlinetasks
Nicolas Goaziou [Tue, 9 Jun 2015 15:06:17 +0000]
org-list: Fix checkbox update with inlinetasks

* lisp/org-list.el (org-update-checkbox-count): Change algorithm.  Use
  Element parser.

* testing/lisp/test-org-list.el (test-org-list/update-checkbox-count):
  New test.

Reported-by: Eric S Fraga <>

3 weeks agoorg-element: Fix structure for list elements containing a drawer
Nicolas Goaziou [Tue, 9 Jun 2015 15:05:21 +0000]
org-element: Fix structure for list elements containing a drawer

* lisp/org-element.el (org-element--list-struct): Fix return value
  when a drawer is found within an item.

3 weeks agoorg-table: Fix formulas with relative ranges in current row
Nicolas Goaziou [Tue, 9 Jun 2015 12:53:18 +0000]
org-table: Fix formulas with relative ranges in current row

* lisp/org-table.el (org-table-eval-formula): Fix formulas with
  relative ranges in current row.

Reported-by: Eric S Fraga <>

3 weeks agoox-latex: Fix b8ade2e79e92dad10f2b045bc55fbeaf133e5598
Nicolas Goaziou [Sun, 7 Jun 2015 13:17:52 +0000]
ox-latex: Fix b8ade2e79e92dad10f2b045bc55fbeaf133e5598

* lisp/ox-latex.el (org-latex-inline-src-block): Fix

3 weeks agoox-latex: Do not use \verb command anymore
Nicolas Goaziou [Sat, 6 Jun 2015 23:13:51 +0000]
ox-latex: Do not use \verb command anymore

* lisp/ox-latex.el (org-latex-text-markup-alist): Remove \verb from
  default value.
(org-latex--protect-text): New function.
(org-latex-inline-src-block): Use new function.

Suggested-by: Titus von der Malsburg <>

3 weeks agoFix 1a7364177046b8a57ade0aeb9f52bacfc0b8b088
Nicolas Goaziou [Sat, 6 Jun 2015 22:38:58 +0000]
Fix 1a7364177046b8a57ade0aeb9f52bacfc0b8b088

* lisp/org.el (org-icompleting-read): Let `completing-read' or
  equivalent sort out type of completion.
(org-olpath-completing-read): Revert partially

3 weeks agoORG-NEWS: Document changes to `org-timer-default-timer'
Nicolas Goaziou [Sat, 6 Jun 2015 07:30:07 +0000]
ORG-NEWS: Document changes to `org-timer-default-timer'

3 weeks agoFix logging in indirect buffers
Nicolas Goaziou [Sat, 6 Jun 2015 07:06:21 +0000]
Fix logging in indirect buffers

* lisp/org.el (org-store-log-note): Ensure insertion point is
  available in the narrowed part of the current buffer.

Reported-by: Mark Edgington <>

3 weeks agoRevert "ox-html.el (org-html-fontify-code): Possibly deactivate fci-mode"
Nicolas Goaziou [Fri, 5 Jun 2015 07:00:39 +0000]
Revert "ox-html.el (org-html-fontify-code): Possibly deactivate fci-mode"

This reverts commit 44aaaad8c0e347fdfd724090d598ad3a9153058c.

See <>.

4 weeks agoorg-timer.el: hh:mm:ss format for setting a timer
Brice Waegeneire [Tue, 2 Jun 2015 20:49:38 +0000]
org-timer.el: hh:mm:ss format for setting a timer

* lisp/org-timer.el (org-timer-set-timer): Add support for hh:mm:ss
(org-timer-default-timer): Type changed from number to string.
* testing/lisp/test-org-timer.el (test-org-timer/set-timer): Add
hh:mm:ss format in the test.

4 weeks agoorg-colview: Tiny speed-up
Nicolas Goaziou [Tue, 2 Jun 2015 20:01:06 +0000]
org-colview: Tiny speed-up

* lisp/org-colview.el (org-columns): Use buffer position instead of
  line number.

4 weeks agoorg-colview: Handle user-defined inheritance in agenda colview
Nicolas Goaziou [Tue, 2 Jun 2015 19:56:50 +0000]
org-colview: Handle user-defined inheritance in agenda colview

* lisp/org-colview.el (org-agenda-columns): Use `org-entry-get'
  instead of `org-entry-properties' to handle inheritance for
  user-provided properties.

4 weeks agoorg-colview: Update docstring
Nicolas Goaziou [Tue, 2 Jun 2015 19:14:55 +0000]
org-colview: Update docstring

* lisp/org-colview.el (org-columns-compile-format): Update docstring.

4 weeks agoorg-src: Fix `org-(un)escape-code-in-region'
Nicolas Goaziou [Tue, 2 Jun 2015 15:17:17 +0000]
org-src: Fix `org-(un)escape-code-in-region'

* lisp/org-src.el (org-escape-code-in-region):
(org-unescape-code-in-region): Fix functions.

Reported-by: Daimrod <>

4 weeks agoorg-colview: Handle user-defined inheritance
Nicolas Goaziou [Tue, 2 Jun 2015 15:02:55 +0000]
org-colview: Handle user-defined inheritance

* lisp/org-colview.el (org-columns): Rely on `org-entry-get' instead
  of `org-entry-properties' in order to handle inheritance properly.
  Also limit search to properties actually used as columns instead of
  all properties.

Reported-by: Nik Clayton <>

4 weeks agoEnsure special properties ignore inheritance
Nicolas Goaziou [Tue, 2 Jun 2015 14:34:33 +0000]
Ensure special properties ignore inheritance

* lisp/org.el (org-entry-get): Ensure special properties ignore user's
  inheritance rules.

4 weeks agoFix typo
Nicolas Goaziou [Tue, 2 Jun 2015 13:39:50 +0000]
Fix typo

* lisp/org.el (org-check-before-date):
(org-check-dates-range): Fix typo.

Reported-by: Michael Strey <>

4 weeks agoFix `org-olpath-completing-read'
Nicolas Goaziou [Mon, 1 Jun 2015 16:20:46 +0000]
Fix `org-olpath-completing-read'

* lisp/org.el (org-olpath-completing-read): Feed
  `org-icompleting-read' with COLLECTION argument too.

4 weeks agoRevert "Silence byte-compiler"
Nicolas Goaziou [Mon, 1 Jun 2015 07:32:32 +0000]
Revert "Silence byte-compiler"

This reverts commit 722b5e724e6f1fb1ae906e00446cf3f2c18d1da7.

4 weeks agoSilence byte-compiler
Nicolas Goaziou [Mon, 1 Jun 2015 07:24:42 +0000]
Silence byte-compiler

* lisp/org.el (format-spec): Silence byte-compiler when using "make

4 weeks agoTiny fix
Nicolas Goaziou [Mon, 1 Jun 2015 07:21:47 +0000]
Tiny fix

* lisp/org.el (org-create-formula-image): Atoms shouldn't be quoted
  when used as `case' keys.

4 weeks agoFix storing link in edit buffer
Nicolas Goaziou [Sat, 30 May 2015 23:54:49 +0000]
Fix storing link in edit buffer

* lisp/org.el (org-store-link): When creating a link from an edit
  buffer, re-use label on current line, if any.  Give up if call is
  non-interactive, as it would otherwise ask for user's input.

Reported-by: Samuel Wales <>

4 weeks agoOrg Babel now supports sed scripts
Bjarte Johansen [Thu, 28 May 2015 11:29:09 +0000]
Org Babel now supports sed scripts

* doc/org.texi: Signal new babel language.

* lisp/ob-sed.el:
* testing/examples/
* testing/lisp/test-ob-sed.el: New files.

4 weeks agoSilence byte-compiler
Nicolas Goaziou [Sat, 30 May 2015 12:28:35 +0000]
Silence byte-compiler

* lisp/org-footnote.el:
* lisp/org-list.el:
* lisp/org-macro.el:
* lisp/org-src.el:
* lisp/org.el: Silence byte-compiler.

4 weeks agoox-texinfo: Change output for links to targets with no description
Nicolas Goaziou [Sat, 30 May 2015 11:52:26 +0000]
ox-texinfo: Change output for links to targets with no description

* lisp/ox-texinfo.el (org-texinfo-link): Change output for links to
  targets with no description.

See <>.

4 weeks agoox-texinfo: Refer to "Top" instead of "top"
Nicolas Goaziou [Sat, 30 May 2015 10:29:50 +0000]
ox-texinfo: Refer to "Top" instead of "top"

* lisp/ox-texinfo.el (org-texinfo-link): Refer to "Top" instead of

4 weeks agoox-texinfo: Fix link to headlines
Nicolas Goaziou [Sat, 30 May 2015 10:20:10 +0000]
ox-texinfo: Fix link to headlines

* lisp/ox-texinfo.el (org-texinfo-link): Reverse behaviour whether
  headline is numbered or not.

4 weeks agoorg: Fix typo
Nicolas Goaziou [Fri, 29 May 2015 22:06:54 +0000]
org: Fix typo

* lisp/org.el (org-not-done-heading-regexp): Fix a typo and make
  variable buffer-local, as expected.

Reported-by: Alexander Borkowski <>

4 weeks agoorg.el: Add documentation for grffile
Rasmus [Fri, 29 May 2015 10:43:52 +0000]
org.el: Add documentation for grffile

* org.el (org-latex-default-packages-alist): Add documentation for

4 weeks agoorg.el: Add grffile to default latex packages
Rasmus [Fri, 29 May 2015 09:54:46 +0000]
org.el: Add grffile to default latex packages

* org.el (org-latex-default-packages-alist): Add grffile for files
  with spaces and periods.

Reported-by: Vaidheeswaran C <>

4 weeks agoox-texinfo: Fix generated label
Nicolas Goaziou [Fri, 29 May 2015 09:43:28 +0000]
ox-texinfo: Fix generated label

* lisp/ox-texinfo.el (org-texinfo-src-block):
(org-texinfo-table): Use `org-export-get-reference' to build internal

4 weeks agoox-texinfo: Put Texinfo output into `compilation-mode'
Nicolas Goaziou [Fri, 29 May 2015 09:31:01 +0000]
ox-texinfo: Put Texinfo output into `compilation-mode'

* lisp/ox-texinfo.el (org-texinfo-compile): Put Texinfo output into

Suggested-by: Vaidheeswaran C <>

4 weeks agoox-texinfo: Fix labelled images without caption
Nicolas Goaziou [Fri, 29 May 2015 09:27:10 +0000]
ox-texinfo: Fix labelled images without caption

* lisp/ox-texinfo.el (org-texinfo--inline-image): Add an @anchor for
  labelled images without a caption.

Reported-by: Vaidheeswaran C <>

4 weeks agoorg-src: Fix indentation rampage when editing src blocks
Nicolas Goaziou [Fri, 29 May 2015 07:55:56 +0000]
org-src: Fix indentation rampage when editing src blocks

* lisp/org-src.el (org-edit-src-code): Do not add indentation at every
  edit when `org-src-preserve-indentation' is non-nil.

Function taking care of indentation cannot check
`org-src--preserve-indentation' since the variable is buffer-local and
indentation happens in a temporary buffer.

Reported-by: Rainer M Krug <>

5 weeks agoob-latex: Define LaTeX-specific headers
Nicolas Goaziou [Wed, 27 May 2015 10:23:59 +0000]
ob-latex: Define LaTeX-specific headers

* lisp/ob-latex.el (org-babel-header-args:latex): New variable.

Reported-by: Andreas Leha <>

5 weeks agoob-core: Do not return results on writing to file
Bjarte Johansen [Tue, 26 May 2015 10:54:14 +0000]
ob-core: Do not return results on writing to file

* ob-core (org-babel-result-cond): Add "file" as a param that returns
  a scalar result.

When writing the result to file we do not need to first convert the
data to a table since it is just converted back when
org-babel-execute-src-block serializes the result to file.

5 weeks agoorg-src: Change ambiguous variable name
Nicolas Goaziou [Tue, 26 May 2015 19:47:05 +0000]
org-src: Change ambiguous variable name

* lisp/org-src.el (org-src--preserve-indentation): New variable.
(org-edit-src-code): Use new change.

Before this change `org-src-preserve-indentation' was both a defcustom
and an internal local variable.  Both uses are now separated.

5 weeks agoob-lilypond: Fix a few variables
Nicolas Goaziou [Tue, 26 May 2015 19:37:04 +0000]
ob-lilypond: Fix a few variables

* lisp/ob-lilypond.el (org-babel-lilypond-ly-command):
(org-babel-lilypond-midi-command): Turn into a defvar.  Improve
(org-babel-lilypond-arrange-mode): Improve docstring.

5 weeks agotest-ob: Simplify a test
Nicolas Goaziou [Tue, 26 May 2015 19:24:20 +0000]
test-ob: Simplify a test

* testing/lisp/test-ob.el (test-org-babel/inline-src-blocks): Make
  test self-contained.  Do not use `macrolet' either.

5 weeks agoorg-src: Fix auto-save feature
Nicolas Goaziou [Tue, 26 May 2015 15:06:53 +0000]
org-src: Fix auto-save feature

* lisp/org-src.el (org-src-mode): Do not stop auto save feature when
  current buffer is no longer an edit buffer.

Reported-by: Andreas Leha <>

5 weeks agoFix visibility with `org-cycle-separator-lines' at -1
Nicolas Goaziou [Tue, 26 May 2015 14:00:21 +0000]
Fix visibility with `org-cycle-separator-lines' at -1

* lisp/org.el (org-cycle-show-empty-lines): Fix visibility cycling
  with `org-cycle-separator-lines' set to -1.

Reported-by: Michael Crouch <>

5 weeks agoob-core: Fix indented cached result returning nil
Bjarte Johansen [Sun, 24 May 2015 11:42:20 +0000]
ob-core: Fix indented cached result returning nil

Fix a problem where a source block would return nil oif the result was
cached and it was indented.

* lisp/ob-core.el (org-babel-execute-src-block): Move point to the the
 first character of the result instead of the beginning of the line.

* testing/lisp/test-ob.el
 (test-org-babel/indented-cached-org-bracket-link): Added test to
 to see if the indented cached result returns what it should return.

5 weeks agoORG-NEWS: Document caption changes in Texinfo back-end
Nicolas Goaziou [Tue, 26 May 2015 08:07:18 +0000]
ORG-NEWS: Document caption changes in Texinfo back-end

5 weeks agoox-texinfo: Handle listings with captions and list of listings
Nicolas Goaziou [Tue, 26 May 2015 08:02:36 +0000]
ox-texinfo: Handle listings with captions and list of listings

* lisp/ox-texinfo.el (org-texinfo-keyword): Handle "#+TOC: listings".
(org-texinfo-src-block): Wrap listings with captions within @float.

5 weeks agoox-texinfo: Handle tables with captions and list of tables
Nicolas Goaziou [Tue, 26 May 2015 07:52:02 +0000]
ox-texinfo: Handle tables with captions and list of tables

* lisp/ox-texinfo.el (org-texinfo-table): Wrap captionned tables
  within a @float command.
(org-texinfo-keyword): Handle "#+TOC: tables".

5 weeks agoox-texinfo.el: Refactor caption code
Nicolas Goaziou [Tue, 26 May 2015 07:37:43 +0000]
ox-texinfo.el: Refactor caption code

* lisp/ox-texinfo.el (org-texinfo--wrap-float): New function.
(org-texinfo--inline-image): Use new function.

5 weeks agoox-texinfo: Rename an internal function
Nicolas Goaziou [Tue, 26 May 2015 07:22:53 +0000]
ox-texinfo: Rename an internal function

* lisp/ox-texinfo.el (org-texinfo--filter-section-blank-lines):
  Renamed from `org-texinfo-filter-section-blank-lines'.
(texinfo): Apply renaming.

5 weeks agoox-texinfo: Improve caption handling
Nicolas Goaziou [Tue, 26 May 2015 07:18:00 +0000]
ox-texinfo: Improve caption handling

* lisp/ox-texinfo.el (org-texinfo--inline-image): Apply appropriate
  restrictions if caption is meant to be also used in list of floats.