16 months agoorg.el (org-deadline, org-schedule): Fix bug release_8.2.3 release_8.2.3a
Bastien Guerry [Mon, 11 Nov 2013 17:13:08 +0000]
org.el (org-deadline, org-schedule): Fix bug

* org.el (org-deadline, org-schedule): Fix bug: allow to
update scheduled/deadline information anywhere in the subtree.

16 months agoREADME_maintainer: Fix erroneous statement
Bastien Guerry [Mon, 11 Nov 2013 15:59:19 +0000]
README_maintainer: Fix erroneous statement

* README_maintainer: Fix erroneous statement.

16 months agoox-texinfo: Fix incorrect @documentencoding
Nicolas Goaziou [Mon, 11 Nov 2013 09:09:21 +0000]
ox-texinfo: Fix incorrect @documentencoding

* lisp/ox-texinfo.el (org-texinfo-supported-coding-systems): New
(org-texinfo-template): Find appropriate encoding among those

Reported-by: Suvayu Ali <>

16 months agoox: Fix next/previous element getters
Nicolas Goaziou [Mon, 11 Nov 2013 00:54:01 +0000]
ox: Fix next/previous element getters

* lisp/ox.el (org-export-get-previous-element,
  org-export-get-next-element): Fix return value for non plain text
  objects in a secondary string.
* testing/lisp/test-ox.el: Add tests.

16 months agoorg-element: Fix infloops
Nicolas Goaziou [Sun, 10 Nov 2013 10:28:14 +0000]
org-element: Fix infloops

* lisp/org-element.el (org-element-center-block-parser)
  (org-element-drawer-parser, org-element-dynamic-block-parser)
  (org-element-inlinetask-parser, org-element-property-drawer-parser)
  (org-element-quote-block-parser, org-element-comment-block-parser)
  (org-element-diary-sexp-parser, org-element-example-block-parser)
  (org-element-keyword-parser, org-element-latex-environment-parser)
  (org-element-paragraph-parser, org-element-src-block-parser)
  (org-element-table-parser, org-element-verse-block-parser): Fix
  infloop when buffer ends with a non-empty blank line after the
* testing/lisp/test-org-element.el: Add tests.

16 months agoorg-element: Fix infloop
Nicolas Goaziou [Sun, 10 Nov 2013 09:18:17 +0000]
org-element: Fix infloop

* lisp/org-element.el (org-element-comment-parser): Fix infloop when
  a non-empty blank line follows a comment at the end of the buffer.
* testing/lisp/test-org-element.el: Add test.

16 months agoorg.el (org-align-tags-here): Fix bug: move to the correct position
Bastien Guerry [Sat, 9 Nov 2013 16:47:59 +0000]
org.el (org-align-tags-here): Fix bug: move to the correct position

* org.el (org-align-tags-here): Fix bug: move to the correct

Thanks to Reuben Garrett for reporting this bug.

16 months agoox-latex: Remove all temporary files when compiling release_8.2.2
Nicolas Goaziou [Fri, 8 Nov 2013 07:54:52 +0000]
ox-latex: Remove all temporary files when compiling

* lisp/ox-latex.el (org-latex-compile): Remove all numbered temporary
  files after compiling.

16 months agoox-org: Fix headline level during subtree export
Nicolas Goaziou [Wed, 6 Nov 2013 18:14:14 +0000]
ox-org: Fix headline level during subtree export

* lisp/org-element.el (org-element-headline-interpreter): Take into
  consideration `org-odd-levels-only' when building a headline.
* lisp/ox-org.el (org-org-headline): Correctly set transcoded headline
  level during subtree export.

16 months agoorg-inlinetask: Hide inline tasks in 'children visibility state
Jonas Hoersch [Wed, 30 Oct 2013 14:39:33 +0000]
org-inlinetask: Hide inline tasks in 'children visibility state

* lisp/org.el (org-cycle-hide-inline-tasks): Re-hide inline tasks when
  switching to 'children visibility state.


16 months agoorg-capture.el (org-capture-refile): Don't finalize prematurely
Bastien Guerry [Wed, 6 Nov 2013 15:26:38 +0000]
org-capture.el (org-capture-refile): Don't finalize prematurely

* org-capture.el (org-capture-refile): Don't finalize

Thanks to Rodrigo Amestica for reporting this.

16 months agoorg.el (org-agenda-prepare-buffers): Restore the point position
Bastien Guerry [Wed, 6 Nov 2013 15:15:45 +0000]
org.el (org-agenda-prepare-buffers): Restore the point position

* org.el (org-agenda-prepare-buffers): Restore the point

Thanks to Samuel Wales for spotting this.

16 months agoox-html: Add TODO keyword to TOC entries
Nicolas Goaziou [Wed, 6 Nov 2013 14:26:53 +0000]
ox-html: Add TODO keyword to TOC entries

* lisp/ox-html.el (org-html--format-toc-headline): TOC entries are
  closer to regular headline formatting.

16 months agoorg-capture: Fix bug when capturing with templates using `function'
Bastien Guerry [Wed, 6 Nov 2013 14:51:57 +0000]
org-capture: Fix bug when capturing with templates using `function'

* org-capture.el (org-capture): Store :return-to-wconf
(org-capture-place-template): Don't store :return-to-wconf
when called from a capture template using `function', rely on
the early :return-to-wconf value store from `org-capture'.

Thanks to Brett Viren for raising this issue.

16 months agoorg-agenda: Fix bug when showing the new time
Bastien Guerry [Wed, 6 Nov 2013 08:59:46 +0000]
org-agenda: Fix bug when showing the new time

* org-agenda.el (org-agenda-show-new-time): Ignore invisible
text when inserting the new time as a text property.

* org-compat.el (org-move-to-column): New argument
`ignore-invisible' to turn on `buffer-invisibility-spec'.

Thanks to Marcin Borkowski and Karl Voit for reporting this.

16 months agoorg.el (org-insert-link): Don't remove brackets when they belong to a timestamp in...
Bastien Guerry [Tue, 5 Nov 2013 20:54:12 +0000]
org.el (org-insert-link): Don't remove brackets when they belong to a timestamp in a headline

* org.el (org-insert-link): Don't remove brackets when they
belong to a timestamp in a headline.

Thanks to David Belohrad for spotting this.

16 months agoorg-agenda.el (org-agenda-filter-make-matcher): Fix regression
Bastien Guerry [Tue, 5 Nov 2013 18:41:41 +0000]
org-agenda.el (org-agenda-filter-make-matcher): Fix regression

* org-agenda.el (org-agenda-filter-make-matcher): When
filtering tags and hitting space, filter out entries with
tags, only keep those without tags.

Thanks to Serguei Son for reporting this regression.

16 months agoox-odt.el (org-odt-table-style-format): Use %s for inserting the rel-width property...
Bastien Guerry [Tue, 5 Nov 2013 16:26:46 +0000]
ox-odt.el (org-odt-table-style-format): Use %s for inserting the rel-width property as a string

* ox-odt.el (org-odt-table-style-format): Use %s for inserting
the rel-width property as a string.
(org-odt-template): Fall back on a string for :rel-width.

Thanks to Derek Feichtinger for reporting this bug.

16 months agoSome clean-up related to org-remember being removed
Bastien Guerry [Tue, 5 Nov 2013 11:13:46 +0000]
Some clean-up related to org-remember being removed

* org.el (org-directory, org-default-notes-file)
(org-reverse-note-order): Don't use the `org-remember'
customization group.
(org-require-autoloaded-modules): Don't require

* org-capture.el: Update commentary section to reflect the
fact that org-remember.el is not used anymore.

16 months agocontrib/lisp/ox-rss.el: Enhance RFC822 formatting string
Bastien Guerry [Mon, 4 Nov 2013 23:14:03 +0000]
contrib/lisp/ox-rss.el: Enhance RFC822 formatting string

* contrib/lisp/ox-rss.el (org-rss-headline)
(org-rss-build-channel-info): Use %b instead of %h for RFC822

Thanks to Andrea Rossetti for reporting this.

16 months agoorg-agenda.el (org-agenda-drag-line-forward): Fix bugs
Bastien Guerry [Mon, 4 Nov 2013 22:36:18 +0000]
org-agenda.el (org-agenda-drag-line-forward): Fix bugs

* org-agenda.el (org-agenda-drag-line-forward)
(org-agenda-drag-line-backward): Fix bugs: don't drag lines
without text and don't drag lines before/after hidden lines.

Thanks to Thomas Morgan for reporting bugs in this area.

16 months agoorg.texi (Catching invisible edits): Fix typo
Bastien Guerry [Mon, 4 Nov 2013 11:45:22 +0000]
org.texi (Catching invisible edits): Fix typo

* org.texi (Catching invisible edits): Fix typo.

Thanks to Cyprien Gay for reporting this.

16 months agoorg.el (org-babel-load-file): Set `exported-file' correctly
Bastien Guerry [Mon, 4 Nov 2013 11:19:45 +0000]
org.el (org-babel-load-file): Set `exported-file' correctly

* org.el (org-babel-load-file): Set `exported-file' correctly,
in case the file as been tangled using a buffer-local value.

* ob-tangle.el (org-babel-tangle-file): Return the list of
tangled files.

Thanks to Sam Flint for reporting this.

16 months agoorg-element: Fix error when parsing lowercase keywords
Nicolas Goaziou [Sun, 3 Nov 2013 16:47:55 +0000]
org-element: Fix error when parsing lowercase keywords

* lisp/org-element.el (org-element-context): Fix error when parsing
  affiliated keywords, e.g. "caption".
* testing/lisp/test-org-element.el: Add test.

16 months agoFix flyspell behaviour on verbatim objects
Nicolas Goaziou [Sun, 3 Nov 2013 13:18:19 +0000]
Fix flyspell behaviour on verbatim objects

* lisp/org.el (org-do-emphasis-faces): Look for verbatim status at
  correct location.

16 months agoFix wrong-type-argument error when opening id link
Nicolas Goaziou [Sun, 3 Nov 2013 12:06:14 +0000]
Fix wrong-type-argument error when opening id link

* lisp/org.el (org-open-at-point): Check if link is non-nil before
  matching it.

Reported-by: Daniel Clemente <>

16 months agoox: Fix OPTIONS in default template
Nicolas Goaziou [Sun, 3 Nov 2013 10:35:31 +0000]
ox: Fix OPTIONS in default template

* lisp/ox.el (org-export-insert-default-template): Make sure strings
  are properly quoted when inserting a template.  Specifically,
  default value for drawers should be d:(not "LOGBOOK"), not d:(not

17 months agoorg-inlinetask: fix inlinetask unfolding
Jonas Hoersch [Tue, 29 Oct 2013 16:07:49 +0000]
org-inlinetask: fix inlinetask unfolding

* lisp/org-inlinetask.el (org-inlinetask-toggle-visibility): Don't use
  `org-show-entry` as it cannot unfold an inlinetask properly.


17 months agoox-latex: Don't quote const in defcustom
Rüdiger Sonderfeld [Tue, 29 Oct 2013 16:20:20 +0000]
ox-latex: Don't quote const in defcustom

* lisp/ox-latex.el (org-latex-listings): Don't quote const value.

Quoting it would set `org-export-latex' not to `minted' but `(quote
minted)' and thus breaking the export.

Signed-off-by: Rüdiger Sonderfeld <>

17 months agoFix `org-insert-heading' at buffer boundaries
Nicolas Goaziou [Tue, 29 Oct 2013 08:55:01 +0000]
Fix `org-insert-heading' at buffer boundaries

* lisp/org.el (org-insert-heading): Do not error out when inserting is
  to be done at one of the buffer's boundaries.
* testing/lisp/test-org.el: Add tests.

17 months agoFix org-insert-todo-heading-respect-content in plain list item
Ingo Lohmar [Sun, 27 Oct 2013 16:34:22 +0000]
Fix org-insert-todo-heading-respect-content in plain list item

* lisp/org.el (org-insert-todo-heading-respect-content): Pass correct
prefix arg to always insert heading.


This function used a second argument t, which is eventually passed to
org-insert-heading, adding a list item when inside a plain list.  Use
the proper argument '(4) now, to always create a heading, just like
the function's name and documentation imply.

17 months agoCorrectly indent BEGIN_SRC and END_SRC lines
Joost Diepenmaat [Fri, 25 Oct 2013 09:08:46 +0000]
Correctly indent BEGIN_SRC and END_SRC lines

* lisp/org.el (org-indent-region): BEGIN_SRC and END_SRC lines should
  not be considered part of the source block for the purposes of


17 months agoox-latex: Fix docstring
Nicolas Goaziou [Sat, 26 Oct 2013 19:00:03 +0000]
ox-latex: Fix docstring

* lisp/ox-latex.el (org-latex-listings-options): Use correct number of
  backslash characters in the example.

Reported-by: Thomas S. Dye <>

17 months agoorg-element: Use `org-latex-regexps', not `org-format-latex-options'
Nicolas Goaziou [Thu, 24 Oct 2013 15:15:23 +0000]
org-element: Use `org-latex-regexps', not `org-format-latex-options'

* lisp/org-element.el (org-element-latex-or-entity-successor,
  org-element-latex-fragment-parser): Use `org-latex-regexps' instead
  of `org-format-latex-options'.
* testing/lisp/test-org-element.el: Fix tests.

`org-latex-regexps' defines the correct syntax for LaTeX code within
an Org buffer.  On the other hand, `org-format-latex-options'
determines which syntax can be previewed within the buffer.

17 months agoorg.texi: Remove reference to quoted underscores
Nicolas Goaziou [Thu, 24 Oct 2013 09:16:19 +0000]
org.texi: Remove reference to quoted underscores

* doc/org.texi (Subscripts and superscripts): Remove reference to
  quoted underscores until this mechanism is implemented again.

17 months agoorg.texi: Improve Beamer export documentation
Nicolas Goaziou [Thu, 24 Oct 2013 09:14:55 +0000]
org.texi: Improve Beamer export documentation

* doc/org.texi (Beamer export): Be more accurate about BEAMER_OPT

17 months agoox-odt: Stop adding leading space after line break
Christian Moe [Wed, 23 Oct 2013 16:49:03 +0000]
ox-odt: Stop adding leading space after line break

* lisp/ox-odt.el (org-odt-line-break, org-odt-plain-text): Remove
newline after line-break tag.

The exporter was pretty-printing the ODT XML with newlines after
forced line breaks, but LibreOffice would interpret those as
spaces.  This led to a leading space after every manual line break.

17 months agoox-taskjuggler: Fix effort property
Nicolas Goaziou [Wed, 23 Oct 2013 16:22:39 +0000]
ox-taskjuggler: Fix effort property

* contrib/lisp/ox-taskjuggler.el (org-taskjuggler--build-task): Fix
  effort property if `org-effort-property' was changed.

17 months agoexport back-ends: Remove duplicate information
Nicolas Goaziou [Sun, 20 Oct 2013 08:58:30 +0000]
export back-ends: Remove duplicate information

* lisp/ox-ascii.el: Remove comments at the beginning of the file since
  the library is documented in Org manual.
* lisp/ox-beamer.el: Remove comments at the beginning of the file since
  the library is documented in Org manual.
* lisp/ox-html.el: Remove comments at the beginning of the file since
  the library is documented in Org manual.
* lisp/ox-icalendar.el: Remove comments at the beginning of the file since
  the library is documented in Org manual.
* lisp/ox-md.el: Remove comments at the beginning of the file since
  the library is documented in Org manual.

17 months agoorg-element: Use `org-match-string-no-properties'.
Nicolas Goaziou [Wed, 16 Oct 2013 19:26:19 +0000]
org-element: Use `org-match-string-no-properties'.

* lisp/org-element.el (org-element--list-struct): Use

17 months agoorg-element: Fix block parsing in lists
Nicolas Goaziou [Wed, 16 Oct 2013 08:36:48 +0000]
org-element: Fix block parsing in lists

* lisp/org-element.el (org-element--list-struct): Fix block parsing in
* testing/lisp/test-org-element.el: Add test.

Reported-by: Omid <>

17 months agoox-org.el: Show all headings and all blocks before fontifying when htmlizing sources
Bastien Guerry [Mon, 14 Oct 2013 08:05:30 +0000]
ox-org.el: Show all headings and all blocks before fontifying when htmlizing sources

* ox-org.el (org-org-publish-to-org): When htmlizing an .org
file, ensure to show all headings and all blocks before

17 months agoorg.texi (Plain lists, Plain lists): Fix typos
Bastien Guerry [Mon, 14 Oct 2013 07:51:06 +0000]
org.texi (Plain lists, Plain lists): Fix typos

* org.texi (Plain lists, Plain lists): Fix typos.

Thanks to Elifsu Sabuncu for reporting this.

17 months agoox-publish: Fix compilation problem
Nicolas Goaziou [Sun, 13 Oct 2013 16:34:57 +0000]
ox-publish: Fix compilation problem

* lisp/ox-publish.el (org-publish-all): Fix compilation problem.

17 months agoorg-element: Fix interpreter for timestamp with delay
Nicolas Goaziou [Sun, 13 Oct 2013 16:13:35 +0000]
org-element: Fix interpreter for timestamp with delay

* lisp/org-element.el (org-element-timestamp-interpreter): Correctly
  interpret timestamps with delays.
* testing/lisp/test-org-element.el: Add test.

17 months agoorg-element: Parse warning delays in timestamps
Nicolas Goaziou [Sun, 13 Oct 2013 08:17:16 +0000]
org-element: Parse warning delays in timestamps

* lisp/org-element.el (org-element-timestamp-parser,
  org-element-timestamp-interpreter): Parse warning delays.
* testing/lisp/test-org-element.el (test-org-element/timestamp): Add

17 months agoUse instead of bzg AT gnu DOT org
Bastien Guerry [Tue, 8 Oct 2013 06:07:21 +0000]
Use instead of bzg AT gnu DOT org

17 months agoox: Fix a test
Nicolas Goaziou [Mon, 7 Oct 2013 17:02:49 +0000]
ox: Fix a test

* testing/lisp/test-ox.el (test-org-export/with-backend): Fix test.

17 months agoox-beamer: Fix b67ff6073c09b3f5c3878152d42efe34fcf0fd6e
Nicolas Goaziou [Mon, 7 Oct 2013 10:25:18 +0000]
ox-beamer: Fix b67ff6073c09b3f5c3878152d42efe34fcf0fd6e

* lisp/ox-beamer.el (org-beamer--format-section): Fix regression
  introduced in b67ff6073c09b3f5c3878152d42efe34fcf0fd6e, which would
  prevent frames from being propely exported.

17 months agoox: Fix `org-export-with-backend'
Nicolas Goaziou [Mon, 7 Oct 2013 14:47:51 +0000]
ox: Fix `org-export-with-backend'

* lisp/ox.el (org-export-with-backend): Ensure function will use
  provided back-end.
* testing/lisp/test-ox.el: Add test.

17 months agoorg-list: Fix misleading docstring
Nicolas Goaziou [Fri, 4 Oct 2013 19:13:23 +0000]
org-list: Fix misleading docstring

* lisp/org-list.el (org-list-allow-alphabetical): Remove reference to
  unused VALUE.

17 months agoox-beamer: Protect fragile commands in sections
Nicolas Goaziou [Thu, 3 Oct 2013 13:11:03 +0000]
ox-beamer: Protect fragile commands in sections

* lisp/ox-beamer.el (org-beamer--format-section): Protect fragile
  commands in sections.

17 months agoFix check-box toggling when point is on a link at an item
Nicolas Goaziou [Thu, 3 Oct 2013 11:41:09 +0000]
Fix check-box toggling when point is on a link at an item

* lisp/org.el (org-ctrl-c-ctrl-c): When using C-c C-c at an item with
  point on a link, make sure checkbox, if any, is toggled.

Reported-by: Christoph LANGE <>

18 months agoFix typos release_8.2.1
Carsten Dominik [Mon, 30 Sep 2013 08:56:33 +0000]
Fix typos

18 months agoox-beamer: Add a helpful error message
Nicolas Goaziou [Sun, 29 Sep 2013 08:22:14 +0000]
ox-beamer: Add a helpful error message

* lisp/ox-beamer.el (org-beamer--format-block): Return an error
  message when using a special environment as a block type.  Also
  check for incomplete environment definitions.

18 months agoProtect src overlay during saving the src snipped
Carsten Dominik [Tue, 24 Sep 2013 21:34:39 +0000]
Protect src overlay during saving the src snipped

* lisp/org-src.el (org-edit-src-exit): Let overlay survive after the
buffer has been saved.

18 months agoColumnview: Fix the case of #+ content present
Carsten Dominik [Sun, 22 Sep 2013 06:07:58 +0000]
Columnview: Fix the case of #+ content present

* lisp/org-colview.el (org-dblock-write:columnview): Change the
capture of pos to after inserting the original content

The problem is with a block that has content preceding the table.
Upon recreating the content, the `pos' gets set to the beginning of
this content instead of the table.  Later calls to
`org-table-recalculate' or `org-table-align' will fail because the
point is not at a table.

This patch moves the capture of `pos' to right before the insertion of
the table.

Patch by Benjamin Beckwith

18 months agoFix documentation of the org-footnote face
Alan Schmitt [Thu, 19 Sep 2013 12:27:19 +0000]
Fix documentation of the org-footnote face

* org-faces.el (org-footnote): Fix the documentation for this face.


18 months agoC-u C-u C-c ! inserts an active timestamp.
Nicolas Richard [Mon, 16 Sep 2013 13:42:25 +0000]
C-u C-u C-c ! inserts an active timestamp.

I suggest the following change so that C-u C-u C-c ! inserts an inactive
timestamp. I also document the INACTIVE argument of org-time-stamp.


From 5cdb18297d92f2d99334d98aa2f3b8a40e44702f Mon Sep 17 00:00:00 2001
From: Nicolas Richard <>
Date: Mon, 29 Apr 2013 09:02:21 +0200
Subject: [PATCH] Enforce the convention that C-c ! inserts inactive

* lisp/org.el (org-time-stamp): When INACTIVE is non-nil, insert an
  inactive timestamp also with double universal argument.

18 months agoGet rid of old style backquoting
Carsten Dominik [Fri, 20 Sep 2013 05:06:27 +0000]
Get rid of old style backquoting

* lisp/ox-texinfo.el (org-texinfo-export-to-texinfo): Use new style
(org-texinfo-export-to-info): Use new style backquoting.

Thanks to Mehul Sanghvi for the patch.

18 months agoDeclare a function in ob-core.el release_8.2
Carsten Dominik [Thu, 19 Sep 2013 03:21:06 +0000]
Declare a function in ob-core.el

18 months agoFix incorrect funtion call
Carsten Dominik [Thu, 19 Sep 2013 03:05:56 +0000]
Fix incorrect funtion call

* lisp/ob-latex.el (org-babel-execute:latex): Call `file-name-sans-extension'
instead of `file-base-name'.

18 months agoImprove behvior of org-insert-heading to end of subtree
Carsten Dominik [Thu, 19 Sep 2013 02:56:48 +0000]
Improve behvior of org-insert-heading to end of subtree

* lisp/org.el (org-insert-heading): Improve whitespace behavior at
end of subtree.

In a subtree with lots of empty space at the end, until now the new
entry would be inserted after all that whitespace.  Now, it is
inserted closer to the existing text, and the whitespace remains after
the new headline.

18 months agoWrite the news for release 8.2
Carsten Dominik [Thu, 19 Sep 2013 02:44:49 +0000]
Write the news for release 8.2

18 months agorm meaningless ":padnewlines" from default header args
Eric Schulte [Wed, 18 Sep 2013 21:20:51 +0000]
rm meaningless ":padnewlines" from default header args

* lisp/ob-core.el (org-babel-default-header-args): It is likely that
  someone meant to set :padlines to "yes", but accidentally set
  :padnewlines to "yes".  Either way lets just remove this which
  shouldn't have any functional effect.

18 months agodefault to :padline no for Haskell
Eric Schulte [Wed, 18 Sep 2013 21:19:54 +0000]
default to :padline no for Haskell

   Whitespace is significant in Haskell code so this could change
   program semantics.

* lisp/ob-haskell.el (org-babel-default-header-args:haskell): set
  :padlines to "no" by default.

18 months agoMerge branch 'maint'
Nicolas Goaziou [Wed, 18 Sep 2013 19:17:52 +0000]
Merge branch 'maint'

18 months agoorg-element: Fix `org-element-at-point' at end of buffer
Nicolas Goaziou [Wed, 18 Sep 2013 19:15:04 +0000]
org-element: Fix `org-element-at-point' at end of buffer

* lisp/org-element.el (org-element-at-point): If point is at the end
  of the buffer, and that buffer ends with a list, and there's no
  final newline, return last element in last item instead of plain
* testing/lisp/test-org-element.el: Add test.

This fix allows to fill correctly the following construct:

 - Item with a very long line ending at the end of buffer.

18 months agoMerge branch 'maint'
Nicolas Goaziou [Tue, 17 Sep 2013 20:38:15 +0000]
Merge branch 'maint'

18 months agoorg-element: Fix infloop in `org-element-at-point'
Nicolas Goaziou [Tue, 17 Sep 2013 20:36:09 +0000]
org-element: Fix infloop in `org-element-at-point'

* lisp/org-element.el (org-element-at-point): Fix infloop when called
  on a blank line at the end of the buffer after a headline.

18 months agoRevert "Revert "Revert "Use `xdg-open' to open files where available"""
Carsten Dominik [Tue, 17 Sep 2013 19:51:45 +0000]
Revert "Revert "Revert "Use `xdg-open' to open files where available"""

This reverts commit 0022904e83babacbdbaf167fcbf488dbf90dd78e.

18 months agoImprove documentation of sparse trees
Carsten Dominik [Tue, 17 Sep 2013 19:48:28 +0000]
Improve documentation of sparse trees

18 months agoImprove a sentence in the manual
Carsten Dominik [Tue, 17 Sep 2013 05:17:07 +0000]
Improve a sentence in the manual

* doc/org.texi (CSS support): Clarify this section.

18 months agoClean up list of default LaTeX packages
Carsten Dominik [Tue, 17 Sep 2013 05:02:14 +0000]
Clean up list of default LaTeX packages

* doc/org.texi (@LaTeX{} specific attributes): Document that tabu
and tabularx packages are not in the default set of packages.
* lisp/org.el (org-latex-default-packages-alist): Add the `rotating'
package to the list of default packages.  Improve docstring.

18 months agoFix spacing and cursor position bug caused by `org-insert-property-drawer' release_8.1.2
Carsten Dominik [Mon, 16 Sep 2013 06:22:15 +0000]
Fix spacing and cursor position bug caused by `org-insert-property-drawer'

* lisp/org.el (org-insert-property-drawer): Insert only after space in
current line.

This fixed a bug reported by Mathieu Boespflug, who writes:

> Hi,
> consider the following very simple org file:
> * TODO Thing1[]
> where "[]" marks where the point is. Now if I C-S-RET to insert a new
> TODO heading, I get
> * TODO Thing1
> * TODO []
> Note that there is a trailing space at the end of the last line, as
> expected. The problem is that if I now press C-c C-x p to set
> a property (any property), then I end up with the following situation:
> * TODO Thing1
> * TODO
>  :PROP:     val
>  :END: []
> The point is now at the end of the property drawer, rather than where it
> was before. Notice how the trailing whitespace in the heading has
> moreover been moved to after the property drawer.
> Expected behaviour:
> After C-c C-x p, I expect to get:
> * TODO Thing1
> * TODO []
>  :PROP:     val
>  :END:
> This is exactly what I get if there is *no trailing whitespace* in the
> TODO heading before hitting C-c C-x p. So it seems that the bug is that
> org-set-property does not deal well with trailing whitespace.
> This is a problem because it messes up setting properties by advising
> org-insert-todo-heading, say to set a CREATED property automatically for
> new TODO items.

18 months agoMerge branch 'master' of
Carsten Dominik [Sun, 15 Sep 2013 04:41:25 +0000]
Merge branch 'master' of

18 months agoFix typo
Carsten Dominik [Sun, 15 Sep 2013 04:41:09 +0000]
Fix typo

18 months agoGiven a block with an empty body org-babel-src-block-regexp gobbled up everything...
Aditya Siram [Fri, 13 Sep 2013 14:57:25 +0000]
Given a block with an empty body org-babel-src-block-regexp gobbled up everything until the ending delimiter of the next code block. Fixed this by making the body regexp non-greedy.

18 months agoKeep paragraph motion commands from deactivating the mark
Carsten Dominik [Sat, 14 Sep 2013 05:58:56 +0000]
Keep paragraph motion commands from deactivating the mark

* lisp/org.el (org-forward-paragraph): Do not deactivate the mark.
(org-backward-paragraph): Do not deactivate the mark.

18 months agoFirst stab at Org News for 8.2
Carsten Dominik [Sat, 14 Sep 2013 05:50:58 +0000]
First stab at Org News for 8.2

18 months agoNew functions for paragraph-like navigation
Nicolas Goaziou [Fri, 13 Sep 2013 22:02:12 +0000]
New functions for paragraph-like navigation

* lisp/org.el (org-forward-paragraph, org-backward-paragraph): New
* testing/lisp/test-org.el: Add tests.

18 months agoMerge branch 'maint'
Carsten Dominik [Fri, 13 Sep 2013 19:09:49 +0000]
Merge branch 'maint'

18 months agoAllow to turn of special behavior of `C-o' in tables
Carsten Dominik [Fri, 13 Sep 2013 19:09:17 +0000]
Allow to turn of special behavior of `C-o' in tables

* lisp/org.el (org-special-ctrl-o): New option.
(org-open-line): Don't do anything special unless `org-special-ctrl-o'
is non-nil.

18 months agoCenter currently clocked headline to top of screen
Sebastien Vauban [Tue, 10 Sep 2013 09:57:05 +0000]
Center currently clocked headline to top of screen

* org-clock.el (org-clock-goto-before-context): New option.
  (org-clock-goto): Use that option.

18 months agoAdd fortnight view to agenda
Carsten Dominik [Fri, 13 Sep 2013 05:46:24 +0000]
Add fortnight view to agenda

* doc/org.texi (Agenda commands): Document fortnight view.
* lisp/org-agenda.el (org-agenda-custom-commands-local-options):
(org-agenda-span): Add support for fortnight view.
(org-agenda-menu): Add fortnight view command.
(org-agenda-ndays-to-span): Add support for fortnight view.
(org-agenda-span-to-ndays): Add support for fortnight view.
(org-agenda-later): Add support for fortnight view.
(org-agenda-fortnight-view): New command.
(org-agenda-change-time-span): Add support for fortnight view.
(org-agenda-compute-starting-span): Add support for fortnight view.

This is a patch by Michael Gauland.

18 months agoAdd ERTs for org-meta-return
Michael Brand [Thu, 12 Sep 2013 20:48:16 +0000]
Add ERTs for org-meta-return

* testing/lisp/test-org.el (test-org/meta-return): New `ert-deftest'
to test `org-meta-return'.

18 months agoAllow M-RET to insert items within drawers
Nicolas Goaziou [Thu, 12 Sep 2013 20:21:12 +0000]
Allow M-RET to insert items within drawers

* lisp/org.el (org-meta-return): Allow M-RET to insert items within
  drawers.  Rewrite function.

This patch also allows a user to insert a headline within a drawer,
which will basically break it.  The point is to leave user responsible
for his editing actions.

18 months agoRemove eucal package for LaTeX fragments
rasmus [Wed, 11 Sep 2013 09:58:08 +0000]
Remove eucal package for LaTeX fragments

* org.el (org-format-latex-header): Remove eucal.

With amsmath loaded eucal (basically) only provides an alternative
typeface to \mathcal{.}

18 months agoAdd amsmath as a global LaTeX dependency
rasmus [Wed, 11 Sep 2013 09:53:47 +0000]
Add amsmath as a global LaTeX dependency

* org.el (org-format-latex-header): Remove amsmath.
(org-latex-default-packages-alist): Remove amstext and add amsmath.

This increases consistency between LaTeX exports and LaTeX preview

18 months agoMerge branch 'maint'
Nicolas Goaziou [Thu, 12 Sep 2013 14:51:16 +0000]
Merge branch 'maint'

18 months agoox-confluence: Fix void "external" variable
Nicolas Goaziou [Thu, 12 Sep 2013 14:48:17 +0000]
ox-confluence: Fix void "external" variable

* contrib/lisp/ox-confluence.el (org-confluence-export-as-confluence):
  Fix argument name.

Reported-by: Chris Lowis <>

18 months agoMerge branch 'maint'
Nicolas Goaziou [Wed, 11 Sep 2013 16:24:54 +0000]
Merge branch 'maint'

18 months agoorg-element: Fix af9c0fbf9143883ce31478a137a60cc69428d4d4
Nicolas Goaziou [Wed, 11 Sep 2013 16:23:16 +0000]
org-element: Fix af9c0fbf9143883ce31478a137a60cc69428d4d4
* lisp/org-element.el (org-element-at-point): Fix commit

18 months agoMerge branch 'maint'
Nicolas Goaziou [Wed, 11 Sep 2013 15:13:46 +0000]
Merge branch 'maint'

18 months agoorg-element: Fix footnote definition parsing
Nicolas Goaziou [Wed, 11 Sep 2013 15:07:09 +0000]
org-element: Fix footnote definition parsing

* lisp/org-element.el (org-element-footnote-definition-parser): Fix
  value for :contents-begin when first line of footnote definition is
  empty besides the label.
* testing/lisp/test-org-element.el (test-org-element/footnote-definition-parser):
  Add test.

18 months agoMerge branch 'maint'
Nicolas Goaziou [Wed, 11 Sep 2013 10:23:42 +0000]
Merge branch 'maint'

18 months agoorg-element: Fix bug in `org-element-at-point'
Nicolas Goaziou [Wed, 11 Sep 2013 10:22:05 +0000]
org-element: Fix bug in `org-element-at-point'

* lisp/org-element.el (org-element-at-point): Return correct element
  when point is on a blank line just below a headline.
* testing/lisp/test-org-element.el: Add test.

18 months agoMerge branch 'maint'
Nicolas Goaziou [Sun, 8 Sep 2013 21:53:16 +0000]
Merge branch 'maint'

18 months agoorg-element: Fix d003d56eaf5ffb8c2106ef69cbbc6bbee57b7e00
Nicolas Goaziou [Sun, 8 Sep 2013 21:50:53 +0000]
org-element: Fix d003d56eaf5ffb8c2106ef69cbbc6bbee57b7e00

* lisp/org-element.el (org-element-paragraph-parser): Use

18 months agoMerge branch 'maint'
Nicolas Goaziou [Sun, 8 Sep 2013 21:26:16 +0000]
Merge branch 'maint'