4 years agoox: Preserve coding system when writing output to a file release_8.0.7
Nicolas Goaziou [Wed, 31 Jul 2013 12:44:33 +0000 (14:44 +0200)]
ox: Preserve coding system when writing output to a file

* lisp/ox.el (org-export-to-file): Preserve coding system when writing

4 years agoo org-clock.el (org-clock-notify-once-if-expired): Honor `org-clock-sound'
oleh [Sun, 28 Jul 2013 13:39:57 +0000 (15:39 +0200)]
o org-clock.el (org-clock-notify-once-if-expired): Honor `org-clock-sound'

* org-clock.el (org-clock-notify-once-if-expired): Honor


4 years agoox: Fix compilation error with Emacs < 24
Nicolas Goaziou [Sun, 28 Jul 2013 19:40:02 +0000 (21:40 +0200)]
ox: Fix compilation error with Emacs < 24

* lisp/ox.el (org-export-stack-mode-map): Fix compilation error with
  Emacs < 24.

4 years agoox: Maintain compatibility with Emacs 23
Nicolas Goaziou [Sun, 28 Jul 2013 19:32:48 +0000 (21:32 +0200)]
ox: Maintain compatibility with Emacs 23

* lisp/ox.el (org-export--dispatch-action): Maintain compatibility
  with Emacs 23.

4 years agoReintroduce support for `adaptive-fill-regexp' in paragraphs and comments
Nicolas Goaziou [Sun, 28 Jul 2013 08:14:35 +0000 (10:14 +0200)]
Reintroduce support for `adaptive-fill-regexp' in paragraphs and comments

* lisp/org.el (org-adaptive-fill-function, org-fill-paragraph): Add
  support for `adaptive-fill-regexp' in paragraphs and comments.
* testing/lisp/test-org.el: Add tests.

4 years agoFix indentation after a list
Nicolas Goaziou [Thu, 25 Jul 2013 16:57:59 +0000 (18:57 +0200)]
Fix indentation after a list

* lisp/org.el (org-indent-line): Fix indentation after a list.

4 years agocontrib/lisp/ox-rss.el (org-rss-headline): Fix permalink concatenation
Bastien Guerry [Wed, 24 Jul 2013 08:28:11 +0000 (10:28 +0200)]
contrib/lisp/ox-rss.el (org-rss-headline): Fix permalink concatenation

* ox-rss.el (org-rss-headline): Fix permalink concatenation.
(org-rss-headline, org-rss-build-channel-info): Use the
property :input-file from the info channel instead of

Thanks to Nicolas for suggesting the latter fix.

4 years agoox.el: Remove reference to the obsolete variable `org-export-language-setup'
Bastien Guerry [Tue, 23 Jul 2013 23:37:16 +0000 (01:37 +0200)]
ox.el: Remove reference to the obsolete variable `org-export-language-setup'

* ox.el: Remove reference to the obsolete variable

4 years agocontrib/lisp/ox-rss.el: Explain :RSS_PERMALINK:
Bastien Guerry [Tue, 23 Jul 2013 16:51:45 +0000 (18:51 +0200)]
contrib/lisp/ox-rss.el: Explain :RSS_PERMALINK:

* ox-rss.el: Explain :RSS_PERMALINK:.
(org-rss-headline): Make use of :RSS_PERMALINK: to specify the
permalink for a headline.

4 years agoorg.texi (Advanced configuration): Fix typo
Bastien Guerry [Tue, 23 Jul 2013 16:47:08 +0000 (18:47 +0200)]
org.texi (Advanced configuration): Fix typo

* org.texi (Advanced configuration): Fix typo.

Thanks to Bart Bunting for reporting this.

4 years agoorg-element: Fix infloop when parsing a list at the end of buffer
Nicolas Goaziou [Sun, 21 Jul 2013 13:51:14 +0000 (15:51 +0200)]
org-element: Fix infloop when parsing a list at the end of buffer

* lisp/org-element.el (org-element-plain-list-parser): Fix infloop
  when parsing a list at the end of buffer, if buffer doesn't end at
  a line beginning.
* testing/lisp/test-org-element.el: Add test.

4 years agoorg-element: Do not url-decode parsed links
Nicolas Goaziou [Sat, 20 Jul 2013 10:45:58 +0000 (12:45 +0200)]
org-element: Do not url-decode parsed links

* lisp/org-element.el (org-element-link-parser): Do not url-decode
  parsed links.

The function now assumes link at point is correctly encoded if needed.
`org-insert-link' already automatically url-encode generated links,
and link types not handled by this function (e.g., custom-id links) do
not need such encoding.

4 years agoorg-pcomplete: Remove spurious white spaces in block completion
Nicolas Goaziou [Thu, 18 Jul 2013 13:54:15 +0000 (15:54 +0200)]
org-pcomplete: Remove spurious white spaces in block completion

* lisp/org-pcomplete.el (pcomplete/org-mode/file-option): Remove
  spurious white spaces, excepted for source blocks' opening string.
  Small refactoring.

4 years agoorg-pcomplete: Fix completion for block boundaries
Nicolas Goaziou [Mon, 15 Jul 2013 15:42:13 +0000 (17:42 +0200)]
org-pcomplete: Fix completion for block boundaries

* lisp/org-pcomplete.el (pcomplete/org-mode/file-option): Remove
  spurious colons from block boundaries.

4 years agoox-publish: Fix :recursive parameter ignoring extension restriction
Nicolas Goaziou [Fri, 12 Jul 2013 13:09:58 +0000 (15:09 +0200)]
ox-publish: Fix :recursive parameter ignoring extension restriction

* lisp/ox-publish.el (org-publish-find-date): Also return date for
(org-publish-get-base-files-1): Fix :recursive parameter ignoring
extension restriction.

4 years agoox-beamer: Remove strange indentation in default header release_8.0.6
Nicolas Goaziou [Fri, 12 Jul 2013 07:18:47 +0000 (09:18 +0200)]
ox-beamer: Remove strange indentation in default header

* lisp/ox-beamer.el: Remove strange indentation in default header.

4 years agoox-beamer/latex/koma-letter: Fix missing newlines in header
Nicolas Goaziou [Fri, 12 Jul 2013 07:07:23 +0000 (09:07 +0200)]
ox-beamer/latex/koma-letter: Fix missing newlines in header

* contrib/lisp/ox-koma-letter.el (org-koma-letter-template): Fix
  missing newlines in header.
* lisp/ox-beamer.el (org-beamer-template): Fix missing newlines in
* lisp/ox-latex.el (org-latex-template): Fix missing newlines in

4 years agoorg.el (org-set-regexps-and-options-for-tags): Fix concatenation of the tags list
Bastien Guerry [Thu, 11 Jul 2013 12:33:08 +0000 (14:33 +0200)]
org.el (org-set-regexps-and-options-for-tags): Fix concatenation of the tags list

* org.el (org-set-regexps-and-options-for-tags): Fix
concatenation of the tags list.

Thanks to Nick for reporting this bug and to Rainer for confirming the fix.

4 years agoUse empty commented lines as separators when filling comments
Nicolas Goaziou [Wed, 10 Jul 2013 12:00:30 +0000 (14:00 +0200)]
Use empty commented lines as separators when filling comments

* lisp/org.el (org-fill-paragraph): Use empty commented lines as
  separators when filling comments.  This mimics default behaviour
  from "newcomment.el", which is not used in Org.
* testing/lisp/test-org.el: Add tests.

4 years agoox-odt.el (org-odt-pixels-per-inch): Use 96.0 as the default
Bastien Guerry [Wed, 10 Jul 2013 10:12:59 +0000 (12:12 +0200)]
ox-odt.el (org-odt-pixels-per-inch): Use 96.0 as the default

* ox-odt.el (org-odt-pixels-per-inch): Use 96.0 as the default.

Thanks to Vincent Liard for this patch.

4 years agocontrib/lisp/ox-rss.el: Mention that Emacs 24.1 at least is required
Bastien Guerry [Wed, 10 Jul 2013 09:53:14 +0000 (11:53 +0200)]
contrib/lisp/ox-rss.el: Mention that Emacs 24.1 at least is required

4 years agoFix error when filling consecutive comments
Nicolas Goaziou [Tue, 9 Jul 2013 11:49:17 +0000 (13:49 +0200)]
Fix error when filling consecutive comments

* lisp/org.el (org-fill-paragraph): Do not mix consecutive comments
  when filling any of them.
* testing/lisp/test-org.el: Add test.

Thanks to Samuel Wales for reporting it.

4 years agoox-html: Fix number of arguments when setting `org-html-format-headline-function'
Nicolas Goaziou [Mon, 8 Jul 2013 20:26:31 +0000 (22:26 +0200)]
ox-html: Fix number of arguments when setting `org-html-format-headline-function'

* lisp/ox-html.el (org-html-format-headline--wrap): Fix number of
  arguments when setting `org-html-format-headline-function'.

Thanks to Jisang Yoo for reporting it.

4 years agoorg.el (org-set-regexps-and-options-for-tags): Fix the setting of tag groups when...
Bastien Guerry [Sat, 6 Jul 2013 14:15:18 +0000 (16:15 +0200)]
org.el (org-set-regexps-and-options-for-tags): Fix the setting of tag groups when relying on `org-tag-alist'

* org.el (org-set-regexps-and-options-for-tags): Fix the
setting of tag groups when relying on `org-tag-alist', not on
tags directly set in the buffer with the #+TAGS option.

Thanks to Maurice for reporting this.

4 years agoorg-element: Fix interpretation of empty items
Nicolas Goaziou [Fri, 5 Jul 2013 22:39:28 +0000 (00:39 +0200)]
org-element: Fix interpretation of empty items

* lisp/org-element.el (org-element-item-interpreter): This patch fixes
  "(wrong-type-argument arrayp nil)" error when trying to interpret
  empty items.
* testing/lisp/test-org-element.el: Add test.

4 years agoorg-element: Fix "*" itemized plain lists interpretation
Nicolas Goaziou [Fri, 5 Jul 2013 19:09:23 +0000 (21:09 +0200)]
org-element: Fix "*" itemized plain lists interpretation

* lisp/org-element.el (org-element-item-interpreter): Correctly
  interpret back plain lists with "*" items.  This fixes "This is not
  a list" error returned in this case.
* testing/lisp/test-org-element.el: Add test.

4 years agoMerge branch 'maint' of into maint
Bastien Guerry [Fri, 5 Jul 2013 12:30:48 +0000 (14:30 +0200)]
Merge branch 'maint' of into maint

4 years agoorg-agenda.el (org-agenda-archive-with): Save window excursion
Bastien Guerry [Fri, 5 Jul 2013 12:29:51 +0000 (14:29 +0200)]
org-agenda.el (org-agenda-archive-with): Save window excursion

* org-agenda.el (org-agenda-archive-with): Save window

4 years agoox-latex: Update a docstring
Nicolas Goaziou [Fri, 5 Jul 2013 11:57:46 +0000 (13:57 +0200)]
ox-latex: Update a docstring

* lisp/ox-latex.el (org-latex-listings): Update docstring.

4 years agoFix commit 19af72 release_8.0.5
Bastien Guerry [Thu, 4 Jul 2013 20:11:46 +0000 (22:11 +0200)]
Fix commit 19af72

Thanks to Rainer Stengele for reporting this.

4 years agoorg.el (org-forward-element, org-backward-element): Throw a message instead of an...
Bastien Guerry [Thu, 4 Jul 2013 13:26:25 +0000 (15:26 +0200)]
org.el (org-forward-element, org-backward-element): Throw a message instead of an error

* org.el (org-forward-element, org-backward-element): Throw a
message instead of an error when trying to move from a
position where there is no element.

4 years agoorg.el (org-clock-is-active): Fix docstring
Bastien Guerry [Thu, 4 Jul 2013 08:32:33 +0000 (10:32 +0200)]
org.el (org-clock-is-active): Fix docstring

* org.el (org-clock-is-active): Fix docstring.

Thanks to Łukasz Stelmach for pointing this.

4 years agoorg.texi (Matching tags and properties): Clarification release_8.0.4
Gustav Wikström [Wed, 3 Jul 2013 23:36:08 +0000 (01:36 +0200)]
org.texi (Matching tags and properties): Clarification

* org.texi (Matching tags and properties): Clarification.


4 years agoorg.el (org-structure-template-alist): Fix custom type and default value
Bastien Guerry [Wed, 3 Jul 2013 17:46:13 +0000 (19:46 +0200)]
org.el (org-structure-template-alist): Fix custom type and default value

* org.el (org-structure-template-alist): Fix custom type and
default value.

Thanks to Nick Dokos for reporting this and providing the fix.

4 years agoFix wrong setting of `org-tag-alist' with #+setupfile:.
Bastien Guerry [Wed, 3 Jul 2013 15:03:08 +0000 (17:03 +0200)]
Fix wrong setting of `org-tag-alist' with #+setupfile:.

* org.el (org-set-regexps-and-options-for-tags): Enhance
(org-set-regexps-and-options): Make sure not to add
`org-tag-alist' twice when setting this variable through et
#+setupfile: directive.

Thanks to Anupam Sengupta for reporting this.

4 years agoorg.el (org-tags-expand): Use `with-syntax-table'
Bastien Guerry [Wed, 3 Jul 2013 14:01:03 +0000 (16:01 +0200)]
org.el (org-tags-expand): Use `with-syntax-table'

* org.el (org-tags-expand): Use `with-syntax-table'.

4 years agoorg.texi (Tag groups): Fix misleading typo
Bastien Guerry [Wed, 3 Jul 2013 13:39:28 +0000 (15:39 +0200)]
org.texi (Tag groups): Fix misleading typo

* org.texi (Tag groups): Fix misleading typo.

4 years agoMove `org-set-font-lock-defaults' from `org-set-regexps-and-options' to `org-mode'
Nicolas Richard [Fri, 21 Jun 2013 08:23:43 +0000 (10:23 +0200)]
Move `org-set-font-lock-defaults' from `org-set-regexps-and-options' to `org-mode'

* org.el (org-set-regexps-and-options): Don't set font-lock
defaults here.
(org-mode): Set font-lock defaults here.

This fixes the bug reported here:

4 years agoorg-table.el (org-table-sum): Fix rounding error when summing times
Bastien Guerry [Wed, 3 Jul 2013 08:18:22 +0000 (10:18 +0200)]
org-table.el (org-table-sum): Fix rounding error when summing times

* org-table.el (org-table-sum): Fix rounding error when
summing times.

Thanks to Paul Stansell for reporting this and to Nick Dokos for
providing the fix.

See for the
discussion of this bug.

4 years agoMerge branch 'maint' of into maint
Bastien Guerry [Tue, 2 Jul 2013 07:31:57 +0000 (09:31 +0200)]
Merge branch 'maint' of into maint

4 years agoFix commit e31955.
Bastien Guerry [Tue, 2 Jul 2013 07:31:51 +0000 (09:31 +0200)]
Fix commit e31955.

Thanks to Samuel for reporting this.

4 years agoorg.texi: Fix macro name
Nicolas Goaziou [Mon, 1 Jul 2013 21:14:48 +0000 (23:14 +0200)]
org.texi: Fix macro name

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

4 years agoFix compiler warnings.
Bastien Guerry [Mon, 1 Jul 2013 21:12:54 +0000 (23:12 +0200)]
Fix compiler warnings.

4 years agoob-core: fix regression when org-confirm-babel-evaluate is a functionp
Achim Gratz [Mon, 1 Jul 2013 20:19:54 +0000 (22:19 +0200)]
ob-core: fix regression when org-confirm-babel-evaluate is a functionp

* lisp/ob-core.el (org-babel-check-confirm-evaluate): Return result of
  evaluating the function pointed to by`org-confirm-babel-evaluate'
  when it is a functionp and its value as a variable otherwise.

This fixes a regression introduced in 5fe486807e and restores the fix
applied earlier in 8d272b0d3b (and then replaced by a cond form in
ece347e32c, which later got factored out again).

4 years agoRevert "ox-html.el (org-html-plain-list): Handle alphabetical ordered list"
Bastien Guerry [Mon, 1 Jul 2013 12:31:41 +0000 (14:31 +0200)]
Revert "ox-html.el (org-html-plain-list): Handle alphabetical ordered list"

This reverts commit 8012d88db72b69d6dd68d4a3d880918652031d4a.

See for the discussion
about whether this feature should go in or not.

4 years agoFix commit 6abc11.
Vladimir Lomov [Mon, 1 Jul 2013 07:40:54 +0000 (09:40 +0200)]
Fix commit 6abc11.


4 years agoorg.el (org-refile): Fix refiling the active region within an list
Bastien Guerry [Sun, 30 Jun 2013 23:16:38 +0000 (01:16 +0200)]
org.el (org-refile): Fix refiling the active region within an list

* org.el (org-refile): Fix refiling the active region within
an list.

Thanks to Jeff Horn and Samuel Wales.

4 years agoorg.el (org-refile): Don't store the last refiled subtree in the kill ring
Bastien Guerry [Sun, 30 Jun 2013 22:35:53 +0000 (00:35 +0200)]
org.el (org-refile): Don't store the last refiled subtree in the kill ring

* org.el (org-refile): Don't store the last refiled subtree in
the kill ring.

Thanks to Samuel for reporting this.

4 years agoox-html.el (org-html-plain-list): Handle alphabetical ordered list
Bastien Guerry [Sun, 30 Jun 2013 22:33:25 +0000 (00:33 +0200)]
ox-html.el (org-html-plain-list): Handle alphabetical ordered list

* ox-html.el (org-html-begin-plain-list): New parameter
`ordered-num' to tell whether the list is ordered numerically.
(org-html-plain-list): Handle alphabetical ordered list.

4 years agoorg-agenda.el (org-batch-agenda): Let-bind `org-agenda-sticky' to nil during batch...
Bastien Guerry [Sun, 30 Jun 2013 22:31:33 +0000 (00:31 +0200)]
org-agenda.el (org-batch-agenda): Let-bind `org-agenda-sticky' to nil during batch export

* org-agenda.el (org-batch-agenda): Let-bind
`org-agenda-sticky' to nil during batch export.

Thanks to Rainer for spotting this.

4 years ago* contrib/lisp/orgtbl-sqlinsert.el (orgtbl-to-sqlinsert): Bugfixes regarding header...
Eric Abrahamsen [Wed, 5 Jun 2013 03:44:35 +0000 (11:44 +0800)]
* contrib/lisp/orgtbl-sqlinsert.el (orgtbl-to-sqlinsert): Bugfixes regarding header line formatting

4 years agoorg.el (org-copy-subtree): Fix typo in docstring
Bastien Guerry [Sun, 30 Jun 2013 22:30:03 +0000 (00:30 +0200)]
org.el (org-copy-subtree): Fix typo in docstring

* org.el (org-copy-subtree): Fix typo in docstring.

4 years agoMerge branch 'maint' of into maint
Bastien Guerry [Fri, 28 Jun 2013 07:13:28 +0000 (09:13 +0200)]
Merge branch 'maint' of into maint

4 years agoorg.texi (Publishing options): Fix old variable names
Bastien Guerry [Fri, 28 Jun 2013 07:13:06 +0000 (09:13 +0200)]
org.texi (Publishing options): Fix old variable names

* org.texi (Publishing options): Fix old variable names.

4 years agodo not use mapcar* for transposing tables
Achim Gratz [Fri, 21 Jun 2013 20:37:51 +0000 (22:37 +0200)]
do not use mapcar* for transposing tables

* lisp/ob-core.el (org-babel-get-rownames),
  lisp/org-table.el (org-table-transpose-table-at-point): Replace the
  inadvertent use of mapcar* (from cl) by plain mapcar and direct cons

The error was not caught at compilation time since both source files
require cl during compilation for using cl macros.  These were the
only uses of mapcar* in Org, but I didn't check for other cl
_functions_ (as opposed to macros, which would need to be checked if
their implementation uses cl functions).

4 years agoox-rss.el (org-rss-build-channel-info): Don't export the title
Bastien Guerry [Thu, 27 Jun 2013 16:57:09 +0000 (18:57 +0200)]
ox-rss.el (org-rss-build-channel-info): Don't export the title

* ox-rss.el (org-rss-build-channel-info): Don't export the
title of the RSS channel, as it produce invalid RSS 2.0.

4 years agoorg-agenda.el (org-agenda-filter-by-category): Display all filtered out categories
Gustav Wikström [Thu, 27 Jun 2013 15:44:50 +0000 (17:44 +0200)]
org-agenda.el (org-agenda-filter-by-category): Display all filtered out categories

* org-agenda.el (org-agenda-filter-by-category): Display all
filtered out categories.


4 years agoorg-mouse: Fix incorrect replacement for checkbox lists
Ilya Zonov [Fri, 24 May 2013 17:10:38 +0000 (21:10 +0400)]
org-mouse: Fix incorrect replacement for checkbox lists

* org-mode: Add correct newtext parameter in `org-mouse-context-menu'
  function for "All Set" and "All Clear" menu items.


4 years agoox-rss.el (org-rss-headline): Various fixes.
Bastien Guerry [Thu, 27 Jun 2013 14:39:37 +0000 (16:39 +0200)]
ox-rss.el (org-rss-headline): Various fixes.

* contrib/lisp/ox-rss.el (org-rss-headline): Fix the date and title
(org-rss-build-channel-info): Fix the date format.  Add the
author's name after her email.

4 years agoorg-agenda.el (org-agenda-skip-eval): Fix typo in docstring
Bastien Guerry [Thu, 27 Jun 2013 14:36:29 +0000 (16:36 +0200)]
org-agenda.el (org-agenda-skip-eval): Fix typo in docstring

* org-agenda.el (org-agenda-skip-eval): Fix typo in docstring.

4 years agoorg.texi (Orgstruct mode): Fix suggested setting of `orgstruct-heading-prefix-regexp'
Bastien Guerry [Thu, 27 Jun 2013 14:24:48 +0000 (16:24 +0200)]
org.texi (Orgstruct mode): Fix suggested setting of `orgstruct-heading-prefix-regexp'

* org.texi (Orgstruct mode): Fix suggested setting of

Thanks to Nathaniel Cunningham for reporting this.

4 years agoorg.el (org-scan-tags): Don't disable `case-fold-search' too early
Bastien Guerry [Thu, 27 Jun 2013 14:19:58 +0000 (16:19 +0200)]
org.el (org-scan-tags): Don't disable `case-fold-search' too early

* org.el (org-scan-tags): Don't disable `case-fold-search' too

Thanks to Nicolas Richard for the patch:

4 years agoorg-capture.el (org-capture-set-target-location): Don't throw an error when `org...
Bastien Guerry [Thu, 27 Jun 2013 13:35:22 +0000 (15:35 +0200)]
org-capture.el (org-capture-set-target-location): Don't throw an error when `org-time-was-given' is not bound

* org-capture.el (org-capture-set-target-location): Don't
throw an error when `org-time-was-given' is not bound.

Thanks to Eric S Fraga for reporting this.

4 years agoRevert "ox-odt: Fix internationalization of "Table" and "Listing""
Nicolas Goaziou [Wed, 26 Jun 2013 07:44:36 +0000 (09:44 +0200)]
Revert "ox-odt: Fix internationalization of "Table"  and "Listing""

This reverts commit 95b16b1aa544f724d716e6d16e722f9f1473f864.

4 years agoorg-element: Fix org-meta-return error at the end of buffer
Nicolas Goaziou [Tue, 25 Jun 2013 15:32:26 +0000 (17:32 +0200)]
org-element: Fix org-meta-return error at the end of buffer

* lisp/org-element.el (org-element--current-element): Fix
  org-meta-return error at the end of buffer.
* testing/lisp/test-org-element.el: Add test.

Thanks to Nicolas Richard for reporting this.

4 years agoox-odt: Fix internationalization of "Table" and "Listing"
Nicolas Goaziou [Tue, 25 Jun 2013 07:30:18 +0000 (09:30 +0200)]
ox-odt: Fix internationalization of "Table"  and "Listing"

* lisp/ox-odt.el (org-odt-category-map-alist): Fix
  internationalization of "Table" and "Listing".

Bug reported by Georg Lehner.

4 years agoox: Remove useless dictionary entries
Nicolas Goaziou [Tue, 25 Jun 2013 07:29:18 +0000 (09:29 +0200)]
ox: Remove useless dictionary entries

* lisp/ox.el (org-export-dictionary): Remove useless dictionary entries.
* lisp/ox-ascii.el (org-ascii--build-caption): Apply removal.

4 years agoox: Add spanish and german translations
Nicolas Goaziou [Tue, 25 Jun 2013 07:15:24 +0000 (09:15 +0200)]
ox: Add spanish and german translations

* lisp/ox.el (org-export-dictionary): Add spanish and german

Patch suggested by Georg Lehner.

4 years agoox-odt: Links to headlines are more consistent with other back-ends
Nicolas Goaziou [Tue, 25 Jun 2013 07:05:46 +0000 (09:05 +0200)]
ox-odt: Links to headlines are more consistent with other back-ends

* lisp/ox-odt.el (org-odt-link): Fuzzy links to an headline with
  a description always use that description, even if the description
  is the same as the headline title.

Reported by Georg Lehner.

4 years agoox-odt: Allow to turn smart quotes off
Nicolas Goaziou [Tue, 25 Jun 2013 06:35:25 +0000 (08:35 +0200)]
ox-odt: Allow to turn smart quotes off

* lisp/ox-odt.el (org-odt-plain-text): Allow to turn smart quotes off.

Patch suggested by Georg Lehner.

4 years agoox-latex: Remove unused function
Nicolas Goaziou [Mon, 24 Jun 2013 15:24:42 +0000 (17:24 +0200)]
ox-latex: Remove unused function

* lisp/ox-latex.el (org-latex--get-footnote-counter): Remove function.
  This function is not necessary anymore since

4 years agoox-html: Fix typo preventing insertion of link up/link home anchors
Nicolas Goaziou [Thu, 20 Jun 2013 18:18:55 +0000 (20:18 +0200)]
ox-html: Fix typo preventing insertion of link up/link home anchors

* lisp/ox-html.el (org-html-template): Fix typo preventing insertion
  of link up/link home anchors.

Thanks to Daniel G. Gerber for noticing it.

4 years agoox-latex: Allow hyperref and footnotemark in items description tags
Nicolas Goaziou [Tue, 18 Jun 2013 20:44:26 +0000 (22:44 +0200)]
ox-latex: Allow hyperref and footnotemark in items description tags

* lisp/ox-latex.el (org-latex-item): Allow hyperref and footnotemark
  in items description tags.  Also remove a unnecessary hack allowing
  footnotemark with an optional argument in the tag.

Initial patch from Rick Frankel.

4 years agoox: Fix fuzzy link resolution before first headline
Nicolas Goaziou [Tue, 18 Jun 2013 20:27:39 +0000 (22:27 +0200)]
ox: Fix fuzzy link resolution before first headline

* lisp/ox.el (org-export-resolve-fuzzy-link): Fix link resolution when
  link lives before the first headline.
* testing/lisp/test-ox.el: Add test.

4 years agoorg-element: Fix special block parsing
Nicolas Goaziou [Mon, 17 Jun 2013 15:08:53 +0000 (17:08 +0200)]
org-element: Fix special block parsing

* lisp/org-element.el (org-element-special-block-parser): Fix typo in
  regexp matching block type.  Also quote the type so it can contain
  special characters.
* testing/lisp/test-org-element.el: Add test.

4 years agoox-latex: Remove -c argument from compilation with texi2dvi
Nicolas Goaziou [Sun, 16 Jun 2013 20:48:37 +0000 (22:48 +0200)]
ox-latex: Remove -c argument from compilation with texi2dvi

* lisp/ox-latex.el (org-latex-pdf-process): This argument can cause
  problem with links with a relative path, since compilation happens
  in a different directory.

4 years agoox-latex: Use "ulem" package for both underline and strike through
Nicolas Goaziou [Fri, 14 Jun 2013 17:46:15 +0000 (19:46 +0200)]
ox-latex: Use "ulem" package for both underline and strike through

* lisp/org.el (org-latex-default-packages-alist): Load "ulem" package
  by default.  Use "[normalem]" option to preserve \emph definition.
* lisp/ox-latex.el (org-latex-text-markup-alist): Use "\uline" and
  "\sout" commands from "ulem" package.

4 years agolisp/ox-html.el: Minimal encoding for code and verbatim text
Aurélien Aptel [Thu, 6 Jun 2013 18:55:33 +0000 (20:55 +0200)]
lisp/ox-html.el: Minimal encoding for code and verbatim text

* lisp/ox-html.el: Remove fancy string replacements for code and
verbatim text when exporting to html.

Exporting =--option= or ~--option~ to html used to replace -- with a


4 years agoox-latex: Use \ul (from soul package) instead of \underline
Nicolas Goaziou [Sun, 9 Jun 2013 09:11:13 +0000 (11:11 +0200)]
ox-latex: Use \ul (from soul package) instead of \underline

* lisp/org.el (org-latex-default-packages-alist): Document need for
  "soul" package.
* lisp/ox-latex.el (org-latex-text-markup-alist): Use \ul (from "soul"
  package) instead of \underline for underline text.

4 years agoox: Fix "Wrong argument type" error when attributes start with :key ""
Nicolas Goaziou [Wed, 5 Jun 2013 12:24:18 +0000 (14:24 +0200)]
ox: Fix "Wrong argument type" error when attributes start with :key ""

* lisp/ox.el (org-export-read-attribute): Fix "Wrong argument type"
  error when attributes start with :key "".

4 years agoorg.el: Fix some docstrings
Nicolas Goaziou [Sun, 2 Jun 2013 08:01:10 +0000 (10:01 +0200)]
org.el: Fix some docstrings

* lisp/org.el (org-fill-paragraph-separate-nobreak-p,
  org-fill-paragraph-with-timestamp-nobreak-p): Fix docstrings.

4 years agoFix commit 0018428c256b09b964439fde75cca702b9ddcca6
Nicolas Goaziou [Thu, 30 May 2013 19:48:48 +0000 (21:48 +0200)]
Fix commit 0018428c256b09b964439fde75cca702b9ddcca6

* contrib/lisp/ox-groff.el (org-groff-compile): Use appropriate
* lisp/ox-man.el (org-man-compile): Use appropriate argument.
* lisp/ox-texinfo.el (org-texinfo-compile): Use appropriate argument.

4 years agoox-html: Fix handling of time-stamp-file
Kodi Arfer [Thu, 30 May 2013 19:19:57 +0000 (15:19 -0400)]
ox-html: Fix handling of time-stamp-file

* lisp/ox-html.el (org-html--build-meta-info): Insert no timestamp
  when :time-stamp-file is nil.


4 years agoexport back-ends: Fix subtree export with a relative path
Nicolas Goaziou [Thu, 30 May 2013 18:29:34 +0000 (20:29 +0200)]
export back-ends: Fix subtree export with a relative path

* lisp/ox-latex.el (org-latex-compile): Properly set working
* lisp/ox-man.el (org-man-compile): Properly set working directory.
* lisp/ox-texinfo.el (org-texinfo-compile): Properly set working
* contrib/lisp/ox-groff.el (org-groff-compile): Properly set working

4 years agoRevert "export backends: Fix "PDF file ... wasn't produced" error with relative paths"
Nicolas Goaziou [Thu, 30 May 2013 18:29:48 +0000 (20:29 +0200)]
Revert "export backends: Fix "PDF file ... wasn't produced" error with relative paths"

This reverts commit 752a4eb49d1dff09b4a59e31bf29128a3202dc22.

4 years agoob-exp: Tiny cleanup related to 87ab99
Nicolas Goaziou [Thu, 30 May 2013 13:18:17 +0000 (15:18 +0200)]
ob-exp: Tiny cleanup related to 87ab99

* lisp/ob-exp.el (org-babel-exp-process-buffer): Tiny cleanup related
  to 87ab99f563606494fa147f2d71b20288f41f1d59.

4 years agoexport backends: Fix "PDF file ... wasn't produced" error with relative paths
Nicolas Goaziou [Thu, 30 May 2013 12:08:14 +0000 (14:08 +0200)]
export backends: Fix "PDF file ... wasn't produced" error with relative paths

* lisp/ox-latex.el (org-latex-compile): Make sure generated file can
  be found by `file-exists-p'.
* contrib/lisp/ox-groff.el (org-groff-compile): Make sure generated
  file can be found by `file-exists-p'.
* lisp/ox-man.el (org-man-compile): Make sure generated file can be
  found by `file-exists-p'.
* lisp/ox-texinfo.el (org-texinfo-compile): Make sure generated file
  can be found by `file-exists-p'.

4 years agoFix issues with TOC, internal links and html-doctype.
Rick Frankel [Tue, 28 May 2013 11:41:30 +0000 (07:41 -0400)]
Fix issues with TOC, internal links and html-doctype.

* contrib/lisp/ox-deck.el (deck): add new deck specific link handler.
(org-deck-toc): Add "sec-" to non-custom link ids.
(org-deck-link): New function. Rename internal link to point at
container instead of heading.
(org-deck-template): Use alist doctype instead of string (per changes
to ox-html).

4 years agoox-md: Fix error when exporting underline objects
Nicolas Goaziou [Tue, 28 May 2013 08:48:08 +0000 (10:48 +0200)]
ox-md: Fix error when exporting underline objects

* lisp/ox-md.el (md): Delegate underscore transcoding to HTML

4 years agoorg-element: Small optimization
Nicolas Goaziou [Sat, 25 May 2013 20:02:26 +0000 (22:02 +0200)]
org-element: Small optimization

* lisp/org-element.el (org-element--remove-indentation): Small

4 years agoorg-element: Fix a docstring
Nicolas Goaziou [Sat, 25 May 2013 15:07:38 +0000 (17:07 +0200)]
org-element: Fix a docstring

* lisp/org-element.el (org-element--remove-indentation): Fix

4 years agoorg-element/ox: Fix src-block indentation when it should be preserved
Nicolas Goaziou [Sat, 25 May 2013 12:18:48 +0000 (14:18 +0200)]
org-element/ox: Fix src-block indentation when it should be preserved

* lisp/org-element.el (org-element--remove-indentation): New function.
(org-element-example-block-parser, org-element-src-block-parser): Use
new function.
(org-element-src-block-interpreter): Update function according to
* lisp/ox.el (org-export-unravel-code): Do not remove any indentation
  since it now happens at the parser level.
* testing/lisp/test-org-element.el: Add tests.
* testing/lisp/test-ox.el: Refactor tests.

4 years agoFix previous commit
Bastien Guerry [Tue, 21 May 2013 10:37:05 +0000 (12:37 +0200)]
Fix previous commit

4 years agoorg-clock.el (org-clock-modify-effort-estimate): Clarify docstring
Bastien Guerry [Tue, 21 May 2013 10:33:36 +0000 (12:33 +0200)]
org-clock.el (org-clock-modify-effort-estimate): Clarify docstring

* org-clock.el (org-clock-modify-effort-estimate): Clarify

Thanks to Ken Mankoff for raising this.

4 years agoox: Small fix to cell width caching mechanism
Nicolas Goaziou [Mon, 20 May 2013 09:33:11 +0000 (11:33 +0200)]
ox: Small fix to cell width caching mechanism

* lisp/ox.el (org-export-table-cell-width): Be sure to use cache even
  when stored value is nil.

4 years agoox: Fix "Symbol's value as variable is void: org-export--default-title"
Nicolas Goaziou [Sun, 19 May 2013 07:50:10 +0000 (09:50 +0200)]
ox: Fix "Symbol's value as variable is void: org-export--default-title"

* lisp/ox.el (org-export--default-title): Fix "Symbol's value as
  variable is void: org-export--default-title".

Bug was introduced in b70e77343aa3daee9312c81c96ef5da217d7fda5.

4 years agoorg.texi: Fix joke
Nicolas Goaziou [Sat, 18 May 2013 17:53:29 +0000 (19:53 +0200)]
org.texi: Fix joke

4 years agoorg.texi: Correct syntax for exporting HTML fragments
Eric Abrahamsen [Sat, 18 May 2013 02:20:33 +0000 (10:20 +0800)]
org.texi: Correct syntax for exporting HTML fragments

4 years agoox-ascii: Improve speed wrt table export
Nicolas Goaziou [Sat, 18 May 2013 16:22:11 +0000 (18:22 +0200)]
ox-ascii: Improve speed wrt table export

* lisp/ox-ascii.el (org-ascii--table-cell-width): Cache results of
  this internal function since it is called at each cell, though its
  value only change column wise.

4 years agoox: Improve speed wrt table export
Nicolas Goaziou [Sat, 18 May 2013 16:20:46 +0000 (18:20 +0200)]
ox: Improve speed wrt table export

* lisp/ox.el (org-export-resolve-fuzzy-link): Change property name
  holding cache.
(org-export-table-has-header-p, org-export-table-row-group,
org-export-table-cell-width, org-export-table-cell-alignment): Cache
(org-export-table-cell-address): Refactor.
(org-export-get-parent): Inline function.
* testing/lisp/test-ox.el: Update tests.