2 days 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 <>

6 weeks agolisp/org-{macs, list}.el: Fix lexical warnings
Stefan Monnier [Mon, 4 May 2015 15:32:43 +0000]
lisp/org-{macs, list}.el: Fix lexical warnings

    * lisp/org-{macs,list}.el: Fix lexical warnings

    * lisp/org-list.el (org-list-struct): Remove unused var `ind'.
    (org-list-get-next-item, org-list-get-prev-item)
    (org-list-get-children): Mark unused arg `struct'.
    (org-list-use-alpha-bul-p): Remove unused var `bul'.
    (org-toggle-checkbox): Mark unused var.
    (org-update-checkbox-count): Remove unused var `box-num'.
    (org-adapt-indentation): Declare.
    (org-list-parse-list): Declare var instead of adding a dummy duplicate.
    (org-list-send-list): Remove unused var `txt'.
    (org-list-to-latex, org-list-to-texinfo): Mark unused arg `params'.
    (org-list-to-subtree): Add prefix to dyn-bind var, and declare them.

    * lisp/org-macs.el: Use `declare'.
    (org-with-limited-levels): Declare dyn-bound vars.

2 months agoorg-agenda: Fix invalid face error for priority #B
Nicolas Goaziou [Wed, 29 Apr 2015 21:29:36 +0000]
org-agenda: Fix invalid face error for priority #B

* lisp/org-agenda.el (org-agenda-fontify-priorities): Ensure face
  doesn't inherit from nil.

Reported-by: Renato <>

2 months agoBackport commit 25166a91 from Emacs master branch.
Bastien [Wed, 29 Apr 2015 05:56:37 +0000]
Backport commit 25166a91 from Emacs master branch.

2 months agoorg-clock.el (org-x11idle-exists-p): Be honest about which command is actually sent...
Stefan Monnier [Thu, 16 Apr 2015 02:04:45 +0000]
org-clock.el (org-x11idle-exists-p): Be honest about which command is actually sent to the shell.

* org-clock.el (org-x11idle-exists-p): Be honest about which
command is actually sent to the shell.

2 months agoFix documentation for org-capture template expansion
François Allisson [Sat, 11 Apr 2015 10:05:33 +0000]
Fix documentation for org-capture template expansion

* doc/org.texi (Template expansion): Fix typo.


2 months Properly escape checksum binary path
Jacob Matthews [Tue, 7 Apr 2015 17:52:25 +0000] Properly escape checksum binary path

* lisp/ (org-mobile-copy-agenda-files): Escape org-mobile-checksum-binary.

Fix a bug where if the checksum binary is in a non shell-safe path, then
the shell invocation silently fails. This can happen on any platform but
is probably worst on Windows where it's common to put programs in
"C:/Program Files".


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

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

Reported by:  Brice Waegenire <>

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

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

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

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

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

Reported-by: Christian Moe <>

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

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

5 months agoorg*.el: Fix call to calendar API
Marco Wahl [Mon, 12 Jan 2015 11:35:10 +0000]
org*.el: Fix call to calendar API

* lisp/org-clock.el: Replace occurances of
'calendar-absolute-from-iso' with 'calendar-iso-to-absolute'.

* lisp/org-agenda.el: Same as above.

* lisp/org.el: Same as above.

Some (long marked obsolete) calendar entities have been dropped from
Emacs recently.  One of those is 'calendar-absolute-from-iso'.

6 months agoob-core: Source blocks are case-insensitive
Nicolas Goaziou [Sun, 14 Dec 2014 08:39:08 +0000]
ob-core: Source blocks are case-insensitive

* lisp/ob-core.el (org-babel-map-src-blocks,
  org-babel-map-inline-src-blocks): Make sure to ignore case when
  looking for source blocks.

Reported-by: Christopher Genovese <>

6 months agoob-core: Tiny fix
Nicolas Goaziou [Sun, 14 Dec 2014 08:36:50 +0000]
ob-core: Tiny fix

* lisp/ob-core.el (org-babel-active-location-p): Use appropriate

6 months agoorg-mime.el: Correct element matching regex
Jon Miller [Fri, 12 Dec 2014 20:27:49 +0000]
org-mime.el: Correct element matching regex

* org-mime.el (org-mime-change-element-style): Correctly capture the
  HTML element instead of partially.

Passing element of "p" would end up matching and altering "pre"
elements as well.  Need to properly anchor the regex to HTML elements.


6 months agoox-md: Correctly export footnote references
Nicolas Goaziou [Sat, 13 Dec 2014 21:55:45 +0000]
ox-md: Correctly export footnote references

* lisp/ox-md.el (md): Do not ignore footnote references.

Footnotes do not exist in Markdown syntax, but we can fallback on

Reported-by: Vasilij Schneidermann <>

6 months agoorg.texi: Fix typos
Nicolas Goaziou [Tue, 9 Dec 2014 21:42:17 +0000]
org.texi: Fix typos

* doc/org.texi (Document preamble):
(Headings and sectioning structure): Fix typo.

6 months agoorg.texi: Remove reference to `org-effort-property'
Nicolas Goaziou [Tue, 9 Dec 2014 09:07:46 +0000]
org.texi: Remove reference to `org-effort-property'

* doc/org.texi (Effort estimates): Remove `org-effort-property' from
  variables index since it is a defconst, not a defcustom anymore.

See also 20dcd061a51a8121ff958fc0edb5b7c52ba4e0e0.

6 months agoorg.texi: Fix typo
Nicolas Goaziou [Sun, 7 Dec 2014 22:52:24 +0000]
org.texi: Fix typo

* doc/org.texi (Export settings): Add missing OPTIONS item.

Reported-by: Amitai Hoze <>

6 months agoUpdated org-drill to latest version.
Paul Sexton [Sat, 6 Dec 2014 18:00:03 +0000]
Updated org-drill to latest version.

7 months agoorg.el: Improve accuracy of message
Karl Fogel [Mon, 24 Nov 2014 17:32:42 +0000]
org.el: Improve accuracy of message

* lisp/org.el (org-remove-file): Reword success message.

Before this change, when `org-remove-file' succeeded in removing a
file from `org-agenda-files', it would display this unduly alarming
message to the user: "Removed file:".  This made it seem as
though the file itself were removed from the filesystem, rather than
simply being delisted from `org-agenda-files'.

After this change, the message "Removed from Org Agenda list:"
is displayed instead, so the user will experience only the normal
level of panic involved in using Org Mode, not the increased panic
that results from thinking a file has been removed when it hasn't.


7 months agoob-js: Fix passing multiline variables
Peter Moresi [Tue, 18 Nov 2014 23:58:17 +0000]
ob-js: Fix passing multiline variables

* lisp/ob-js.el (org-babel-js-var-to-js): Replace newline characters
  with "\n" in strings.

Let's say I have a multi-line string stored in an example block.

I want to store my CSV in an example block.


I have a JavaScript function that accepts a string named 'csv' and passing in 'my-csv-data'.


When I expand the source block I end up with:

var csv="ColA,ColB,ColC

This will not execute correctly because JavaScript does not support newlines in strings.

What I want instead is:

  var csv="ColA,ColB,ColC\n  1,2,3\n  4,5,6";


7 months agoorg-element: Fix 'search failed ":"' error
Nicolas Goaziou [Tue, 18 Nov 2014 18:44:46 +0000]
org-element: Fix 'search failed ":"' error

* lisp/org-element.el (org-element-context): Fix 'search failed ":"'
  error when point is on a blank line after a keyword.

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

7 months agoFix `org-insert-heading'
Nicolas Goaziou [Sun, 16 Nov 2014 14:47:40 +0000]
Fix `org-insert-heading'

* lisp/org.el (org-insert-heading): Fix some corner case when point is
  in an invisible list.

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

Reported-by: Luke Crook <>

7 months agoReplace obsolete aliases of calendar functions
Florian Beck [Sat, 15 Nov 2014 18:14:27 +0000]
Replace obsolete aliases of calendar functions

* lisp/org-agenda.el (org-agenda-diary-entry): Replace obsolete functions.

7 months agoorg-plot: Correction in callback registration
Mario Frasca [Sun, 2 Nov 2014 13:53:27 +0000]
org-plot: Correction in callback registration

org-plot.el (org-plot/gnuplot): Correct the callback for the and
register it as soon as possible.

The data-file variable is not in the scope of the callback, one needs
to grab its value while registering the callback.  With this patch the
timer is set as soon as the file is created.  Without this patch the
timer is set at the end of a let-block, if anything goes wrong in the
let-block before the timer is set, the file will not be removed.


7 months agoorg-plot: Reset gnuplot process instead of killing it
Mario Frasca [Sun, 2 Nov 2014 13:50:47 +0000]
org-plot: Reset gnuplot process instead of killing it

org-plot.el (org-plot/gnuplot): Do not kill the gnuplot process. just
jump to end of buffer and rely on command to do the resetting job.

Without this patch, the gnuplot process associated to the gnuplot
buffer is killed before each batch of instructions from orgmode to
gnuplot.  With or without this patch, Org mode sends a reset
instruction to the gnuplot process as first instruction.


7 months agoSilence byte-compiler
Nicolas Goaziou [Sat, 8 Nov 2014 09:18:42 +0000]
Silence byte-compiler

7 months agoox.el: Add pt_BR translations to export engine
Leslie H. Watter [Thu, 6 Nov 2014 19:20:33 +0000]
ox.el: Add pt_BR translations to export engine

* lisp/ox.el: (org-export-dictionary) Add pt_BR messages to the list.


7 months agoox-beamer: Fix undefined reference with internal links
Nicolas Goaziou [Thu, 6 Nov 2014 18:18:34 +0000]
ox-beamer: Fix undefined reference with internal links

* lisp/ox-beamer.el (org-beamer-target): Use label macro instead of

Moreover, target syntax cannot take advantage of hypertarget's second


7 months agoox-taskjuggler.el: Add a note about multiline properties
Christian Egli [Wed, 5 Nov 2014 09:13:34 +0000]
ox-taskjuggler.el: Add a note about multiline properties

* contrib/lisp/ox-taskjuggler.el (org-taskjuggler-valid-task-attributes):
Add a comment saying that multiline properties are not supported.

7 months agoox-taskjuggler.el: Fix a link in the commentary
Christian Egli [Wed, 5 Nov 2014 09:12:01 +0000]
ox-taskjuggler.el: Fix a link in the commentary

* contrib/lisp/ox-taskjuggler.el: Fix a link to an example project
planning file by Peter Jones.

7 months agoox-taskjuggler.el: Fix fetching of dependency options
Christian Egli [Wed, 5 Nov 2014 09:03:55 +0000]
ox-taskjuggler.el: Fix fetching of dependency options

* contrib/lisp/ox-taskjuggler.el (org-taskjuggler-format-dependencies):
Pass string that was used in string-match to
org-match-string-no-properties. This fixes a problem with dependency

7 months agoox-publish: Fix publishing components asynchronously
Nicolas Goaziou [Tue, 4 Nov 2014 21:15:27 +0000]
ox-publish: Fix publishing components asynchronously

* lisp/ox-publish.el (org-publish): Ensure asynchronous process
  doesn't encounter :components parts in the project, as it may not
  know how to expand them.

Reported-by: Julien Cubizolles <>

7 months agoorg-agenda: Switch to current API for two calendar calls
Marco Wahl [Tue, 4 Nov 2014 10:06:37 +0000]
org-agenda: Switch to current API for two calendar calls

* lisp/org-agenda.el (org-agenda-phases-of-moon, org-agenda-holidays):
  Update to use the current API

This commit fixes the display of holidays in the agenda for emacs 25.

Further for getting the lunar phases the usage of an obsolete alias
has been replaced by the current name.

7 months agoorg-goto: Update for isearch changes
Kyle Meyer [Sun, 2 Nov 2014 05:32:43 +0000]
org-goto: Update for isearch changes

* lisp/org.el (org-goto): Update for isearch changes that removed

isearch-other-control-char has been removed from isearch.el [1]. The
default interface for org-goto uses isearch-other-control-char to pass
certain key presses from org-goto-local-auto-isearch-map to
org-goto-map. Specifically, 'C-i' calls org-cycle and 'C-m' calls

With the current isearch, the keys that should be passed to org-goto-map
can be set to nil. In addition to 'C-i' and 'C-m', RET must also be set
to nil because isearch-mode-map sets both 'C-m' and RET.

[1] bzr revision 114586, git commit aa04ac2c6,


7 months agoorg.texi: Remove outdated footnote
Nicolas Goaziou [Sun, 2 Nov 2014 22:41:35 +0000]
org.texi: Remove outdated footnote

* doc/org.texi (Effort estimates): EFFORT property is a defconst.  It
  is not desirable to change it.

7 months agoox-md: Enforce blank line between paragraph and plain list
Nicolas Goaziou [Sun, 2 Nov 2014 22:09:48 +0000]
ox-md: Enforce blank line between paragraph and plain list

* lisp/ox-md.el (org-md-separate-elements): Enforce blank line between
  paragraph and plain list.

Suggested-by: Charles C. Berry <>

8 months agoorg-capture.el: Fix expand template order
Roberto Huelga Díaz [Wed, 29 Oct 2014 17:29:11 +0000]
org-capture.el: Fix expand template order

* lisp/org-capture.el (org-capture-fill-template): Expand %(sexp) after
  %:keywords, per documentation about capture templates expansion.

When a template is expanded first the simple %-escapes, %:keywords and
after that the %(sexp).


8 months agoorg.el (org-adapt-indentation): Fix typo
Kyle Meyer [Sat, 1 Nov 2014 21:45:11 +0000]
org.el (org-adapt-indentation): Fix typo

* lisp/org.el (org-adapt-indentation): Fix typo in docstring.

8 months agoorg.el: Fix bindings of < and > for calendar scrolling
Marco Wahl [Mon, 20 Oct 2014 19:47:42 +0000]
org.el: Fix bindings of < and > for calendar scrolling

* lisp/org.el (org-read-date-minibuffer-local-map): Switch to the
  current calendar API for scrolling the calendar.

8 months ago[PATCH] Fix: Emacs 25 fancy diary inclusion in agenda release_8.2.10
Marco Wahl [Sat, 11 Oct 2014 16:16:36 +0000]
[PATCH] Fix: Emacs 25 fancy diary inclusion in agenda

* lisp/org-agenda.el (org-get-entries-from-diary): Use the suitable
  display function.  Drop the usage of the obsolete diary-display-hook.

fancy-diary-display has been dropped in Emacs 25.  diary-fancy-display
is the long known replacement of fancy-diary-display.

diary-display-hook has been marked obsolete before Emacs 23.2.

8 months agoox: Fix 88457acff411eca9b32c04b4bc100ef094a23c5c
Nicolas Goaziou [Sun, 12 Oct 2014 20:47:48 +0000]
ox: Fix 88457acff411eca9b32c04b4bc100ef094a23c5c

* lisp/ox.el (org-export-async-start): Limit first argument to lambda
* lisp/ox-publish.el (org-publish, org-publish-all,
  org-publish-current-file): Replace `ignore', per limit stated above.

Due to a hack allowing to provide quasi-quoted lambda expressions,
symbols are not allowed as result handler.  This limitation is not
much of a problem as `org-export-async-start' is only meant to be used

8 months agoorg.el (orgstruct-make-binding): Do not use loop in interpreted code. release_8.2.9
Christopher Schmidt [Sat, 11 Oct 2014 19:40:45 +0000]
org.el (orgstruct-make-binding): Do not use loop in interpreted code.

* lisp/org.el (orgstruct-make-binding): Do not use loop in
interpreted code.

8 months agoox: Fix "void-variable ignore" error when publishing
Nicolas Goaziou [Fri, 10 Oct 2014 09:05:06 +0000]
ox: Fix "void-variable ignore" error when publishing

* lisp/ox.el (org-export-async-start): Allow to use symbols as

Thanks to Julien Cubizolles for reporting it.

8 months agoorg-agenda.el: Update docstring
Mike McLean [Mon, 6 Oct 2014 09:54:09 +0000]
org-agenda.el: Update docstring

    * org-agenda.el (org-agenda-time-grid): Change docstring.


8 months agoBackport typo fixes from Emacs 24 branch
Bastien Guerry [Mon, 6 Oct 2014 09:52:30 +0000]
Backport typo fixes from Emacs 24 branch

9 months agoox-ascii: Fix boxquote characters in UTF-8 export release_8.2.8
Sebastien Vauban [Fri, 26 Sep 2014 10:12:07 +0000]
ox-ascii: Fix boxquote characters in UTF-8 export

* ox-ascii.el (org-ascii--box-string): Choose more universal Unicode
characters for boxquote corners.

9 months agoox.el: Fix typo in documentation
Kyle Meyer [Thu, 25 Sep 2014 23:11:33 +0000]
ox.el: Fix typo in documentation

* lisp/ox.el (org-export-show-temporary-export-buffer): Fix typo.


9 months agoox-latex: Fix link to unnumbered headline
Nicolas Goaziou [Mon, 22 Sep 2014 15:40:55 +0000]
ox-latex: Fix link to unnumbered headline

* lisp/ox-latex.el (org-latex-link): Improve test for unnumbered

9 months agoFix to determine a bulk-markable line [Sat, 20 Sep 2014 20:26:18 +0000]
Fix to determine a bulk-markable line

* lisp/org-agenda.el (org-agenda-bulk-mark,
  org-agenda-bulk-mark-regexp, org-agenda-bulk-toggle-all): This fixes
  e.g. org-agenda-bulk-mark-all when time-grid is shown.


9 months agotest-ob-exp: fix failing test
Achim Gratz [Sat, 20 Sep 2014 19:54:21 +0000]
test-ob-exp: fix failing test

* testing/lisp/test-ob-exp.el (ob-exp/export-from-a-temp-buffer):
  Check for the correct expected output so the test stops failing.

9 months agoox-ascii: Fix filling with preserve break
Nicolas Goaziou [Fri, 19 Sep 2014 23:05:22 +0000]
ox-ascii: Fix filling with preserve break

* lisp/ox-ascii.el (org-ascii--fill-string): Allow filling even when
  `org-export-preserve-breaks' is non-nil.

9 months agoorg.texi: Be more explicit about output file name
Nicolas Goaziou [Fri, 19 Sep 2014 22:33:54 +0000]
org.texi: Be more explicit about output file name

* doc/org.texi (Export settings): Be more explicit about how output
  file name is built.

9 months agoFix headline insertion after an empty headline
Nicolas Goaziou [Fri, 19 Sep 2014 18:55:50 +0000]
Fix headline insertion after an empty headline

* lisp/org.el (org-N-empty-lines-before-current): Make sure to delete
  only empty lines, not trailing whitespaces.

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

Thanks to Oleh for reporting it.

9 months agoob-sh: compatibility fix for "Marker does not point anywhere" errors in Emacs 23
Achim Gratz [Fri, 19 Sep 2014 09:52:30 +0000]
ob-sh: compatibility fix for "Marker does not point anywhere" errors in Emacs 23

* lisp/ob-sh.el (org-babel-sh-initiate-session): After initiating a
  session, initialize the marker `comint-last-output-start' since it
  is going to be used by the ANSI color filter without further checks
  in Emacs 23 and throws an error.

9 months agoox-html: Fix linking to deep level headlines
Nicolas Goaziou [Thu, 18 Sep 2014 19:37:07 +0000]
ox-html: Fix linking to deep level headlines

* lisp/ox-html.el (org-html-headline): Make sure even listified
  headlines have proper anchors so internal links can refer to them.
  Small refactoring.

Thanks to Bruce Gilstrap for reporting it.

9 months agoorg-src: Fix idle auto-save feature
Nicolas Goaziou [Thu, 11 Sep 2014 16:19:21 +0000]
org-src: Fix idle auto-save feature

* lisp/org-src.el (org-edit-src-code): Fix regexp.
(org-edit-src-exit): Do not remove auto-save timer.  This is
handled by the timer itself.

`org-edit-src-save' calls `org-edit-src-exit', which then clears the
auto-save timer, thus preventing any further auto-saves before the
next `org-edit-src-code' call.

Thanks to Adriaan Sticker for reporting it.

9 months agomk/org-fixup.el: Do not use toggle-read-only
Achim Gratz [Wed, 10 Sep 2014 08:50:05 +0000]
mk/org-fixup.el: Do not use toggle-read-only

* mk/org-fixup.el (org-make-org-version, org-make-org-loaddefs,
  org-make-local-mk, org-make-letterformat): Do not use
  `toggle-read-only' as it has been obsoleted in 24.4 and the
  replacement read-only-mode should not be used from Lisp in most
  cases. Bind `inhibit-read-only' to t instead.

9 months agoRevert "ox: Implement predicate for export blocks"
Nicolas Goaziou [Mon, 8 Sep 2014 10:09:52 +0000]
Revert "ox: Implement predicate for export blocks"

This reverts commit 2160b3d2422fb877fbcc6283ae561a9c59b5621a.

9 months agoorg.texi: Tiny fix
Nicolas Goaziou [Thu, 4 Sep 2014 20:14:23 +0000]
org.texi: Tiny fix

9 months agoorgguide.texi: Small fixes
Nicolas Goaziou [Wed, 3 Sep 2014 17:55:20 +0000]
orgguide.texi: Small fixes

* doc/orgguide.texi (Export options): Small fixes.

Thanks to Alexis Roda for reporting them.

10 months agoorg.texi: Fix Texinfo export documentation
Nicolas Goaziou [Tue, 2 Sep 2014 12:53:24 +0000]
org.texi: Fix Texinfo export documentation

10 months agoFix 37bf05
Nicolas Goaziou [Tue, 2 Sep 2014 10:30:57 +0000]
Fix 37bf05

* lisp/org.el (org-re-property): Fix regexp.  Improve docstring.
* testing/lisp/test-org-element.el (test-org-element/node-property):
  Update test.

Thanks to Daimrod for reporting it.

10 months agoorg-element: Make properties parsing more robust
Nicolas Goaziou [Sun, 31 Aug 2014 09:10:56 +0000]
org-element: Make properties parsing more robust

* lisp/org-element.el (org-element-property-drawer-parser,
  org-element-node-property-parser): Ignore lines that are not node
(org-element-node-property-interpreter): Allow nil properties.

* lisp/org.el (org-re-property): Fix regexp to match properties with
  empty values.

* testing/lisp/test-org-element.el (test-org-element/node-property):
  Add tests.

Thanks to Eike for reporting it.

10 months agoorg-element: Interpret headlines according to `org-odd-levels-only'
Nicolas Goaziou [Thu, 28 Aug 2014 09:07:24 +0000]
org-element: Interpret headlines according to `org-odd-levels-only'

* lisp/org-element.el (org-element-headline-interpreter): Take into
  consideration `org-odd-levels-only' value.  Small refactoring.

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

10 months agoox-texinfo: Fix link export
Nicolas Goaziou [Wed, 27 Aug 2014 22:55:32 +0000]
ox-texinfo: Fix link export

* lisp/ox-texinfo.el (org-texinfo--get-node): Return a node or anchor
(org-texinfo--sanitize-content): Fix regexp.
(org-texinfo-link): Fix various bugs in link export.

10 months agoFix exporting radio link with missing radio target
Nicolas Goaziou [Wed, 27 Aug 2014 22:48:17 +0000]
Fix exporting radio link with missing radio target

* contrib/lisp/ox-groff.el (org-groff-link):
* lisp/ox-beamer.el (org-beamer-link):
* lisp/ox-html.el (org-html-link):
* lisp/ox-latex.el (org-latex-link):
* lisp/ox-odt.el (org-odt-link): When radio link has no valid
  target (e.g., this is a subtree export and the radio target is not
  in the exported subtree), simply return contents.

Thanks to Daniel Clement for reporting it.

10 months agoFix `org-promote' error
Nicolas Goaziou [Mon, 25 Aug 2014 13:32:35 +0000]
Fix `org-promote' error

* lisp/org.el (org-called-with-limited-levels): Initialize variable.

10 months agoorg-agenda: Fix order when writing to an ".org" file
Nicolas Goaziou [Mon, 25 Aug 2014 13:19:24 +0000]
org-agenda: Fix order when writing to an ".org" file

* lisp/org-agenda.el (org-agenda-write): Write headings in proper

`org-paste-subtree' leaves point before inserted text, so there is no
need to reverse contents.

10 months agoorgguide: Fix keybinding
Nicolas Goaziou [Sun, 24 Aug 2014 19:56:12 +0000]
orgguide: Fix keybinding

* doc/orgguide.texi (Clocking work time): Fix keybinding.

10 months agoorg-element: Enhance docstring
Nicolas Goaziou [Sun, 24 Aug 2014 19:28:56 +0000]
org-element: Enhance docstring

* lisp/org-element.el (org-element-table-interpreter): Enhance

10 months agoox-md: Fix b8b34ea
Nicolas Goaziou [Fri, 22 Aug 2014 12:52:21 +0000]
ox-md: Fix b8b34ea

* lisp/ox-md.el (org-md-link): Fix b8b34ea.

10 months agoox-md: Allow custom link type export function
Nicolas Goaziou [Thu, 21 Aug 2014 09:05:45 +0000]
ox-md: Allow custom link type export function

* lisp/ox-md.el (org-md-link): Allow custom link type export function.

`md' back-end is now on par with other core export back-ends.

Thanks to Ken Markoff for reponting it.

10 months agoRevert "org-clean-before-export matches non-special columns spuriously"
Nick Dokos [Thu, 21 Aug 2014 02:14:53 +0000]
Revert "org-clean-before-export matches non-special columns spuriously"

This reverts commit 79873390edd26a44cefc2050c7af470a7ed8fd07.
The fix was wrong and gave rise to a different problem  - see

Revert it for now, since there is a workaround for the original
problem and plan on a correct fix in the near future.

10 months agoob-lilypond: change prefix to org-babel-lilypond
Achim Gratz [Wed, 20 Aug 2014 19:10:00 +0000]
ob-lilypond: change prefix to org-babel-lilypond

* lisp/ob-lilypond.el, testing/lisp/test-ob-lilypond.el: Change prefix
  from `ly-' to `org-babel-lilypond-' throughout.

10 months agoox-texinfo: Fix language case
Nicolas Goaziou [Tue, 19 Aug 2014 21:35:08 +0000]
ox-texinfo: Fix language case

* lisp/ox-texinfo.el (org-texinfo-template): Fix language and encoding

Thanks to Brian J. Carlson for reporting it and providing a patch.

10 months agoox-md: Fix blank lines in output
Nicolas Goaziou [Sat, 16 Aug 2014 14:19:01 +0000]
ox-md: Fix blank lines in output

* lisp/ox-md.el (org-md-separate-elements): Outside of lists, preserve
  blank lines between paragraphs and plain lists.

For example

    Consider this list:

    - three
    - four

should become

  # Another test<a id="sec-2"></a>

  Consider this list:

  -   three
  -   four

Thanks to Rafael for reporting it.

10 months agoorg-list: Fix failing test
Nicolas Goaziou [Fri, 15 Aug 2014 19:51:42 +0000]
org-list: Fix failing test

* testing/lisp/test-org-list.el (test-org-list/to-texinfo): Fix
  failing test.

10 months agoorg-element: Fix common indentation removal in verse block
Nicolas Goaziou [Fri, 15 Aug 2014 19:46:46 +0000]
org-element: Fix common indentation removal in verse block

* lisp/org-element.el (org-element-normalize-contents): Fix
  indentation removal when there is an empty line within a verse block.
* testing/lisp/test-org-element.el (test-org-element/normalize-contents):
  Add test.

10 months agoox-texinfo: Fix parse tree corruption
Nicolas Goaziou [Thu, 14 Aug 2014 12:08:16 +0000]
ox-texinfo: Fix parse tree corruption

* lisp/ox-texinfo.el (org-texinfo--normalize-headlines): Properly add
  a section to the contents.

10 months agoox-texinfo: Small refactoring
Nicolas Goaziou [Thu, 14 Aug 2014 09:44:52 +0000]
ox-texinfo: Small refactoring

* lisp/ox-texinfo.el (org-texinfo--normalize-headlines): Do not set
  pre blanks since the value is now hard-coded.
(org-texinfo-headline): Force one blank line before contents, when non
empty.  Refactoring.
(org-texinfo-src-block): Refactor code.  Comply to predicate naming.

10 months agoox-texinfo: Fix corner case when fixing a node name
Nicolas Goaziou [Mon, 11 Aug 2014 17:47:47 +0000]
ox-texinfo: Fix corner case when fixing a node name

* lisp/ox-texinfo.el (org-texinfo--sanitize-node): Handle
  " (not)allowed" case.

10 months agoox-texinfo: Remove wrong code comments
Nicolas Goaziou [Mon, 11 Aug 2014 13:44:12 +0000]
ox-texinfo: Remove wrong code comments

* lisp/ox-texinfo.el (org-texinfo-headline): Remove wrong code

10 months agoorg.texi: Document menus in Texinfo export
Nicolas Goaziou [Mon, 11 Aug 2014 12:24:51 +0000]
org.texi: Document menus in Texinfo export

* doc/org.texi (Headings and sectioning structure): Document menus.

10 months agoox-texinfo: Remove `not-in-toc' case in headline export
Nicolas Goaziou [Mon, 11 Aug 2014 12:05:27 +0000]
ox-texinfo: Remove `not-in-toc' case in headline export

* lisp/ox-texinfo.el (org-texinfo-headline): Remove `not-in-toc'
  special case for tags.

Check is useless for 2 reasons :

  1. there is no way to control @contents in the file header so
     sectioning name,

  2. menu entries provide their own title.  If it has to be handled,
     that should be elsewhere anyway.

10 months agoox-texinfo: Remove left-over LaTeXism
Nicolas Goaziou [Mon, 11 Aug 2014 11:55:11 +0000]
ox-texinfo: Remove left-over LaTeXism

* lisp/ox-texinfo.el (org-texinfo-headline): Remove LaTeXism (optional
  arguments within square brackets).

10 months agoox-texinfo: Tiny refactoring
Nicolas Goaziou [Mon, 11 Aug 2014 11:44:13 +0000]
ox-texinfo: Tiny refactoring

* lisp/ox-texinfo.el (org-texinfo-info-process): Fix docstring.
(org-texinfo-compile): Do not check for impossible cases (e.g., if the
previous variable contains a function).

10 months agoox-texinfo: Fix a docstring
Nicolas Goaziou [Mon, 11 Aug 2014 00:11:32 +0000]
ox-texinfo: Fix a docstring

* lisp/ox-texinfo.el (org-texinfo-max-toc-depth): Fix docstring.

10 months agoox-texinfo: Remove unused internal functions
Nicolas Goaziou [Sun, 10 Aug 2014 21:48:29 +0000]
ox-texinfo: Remove unused internal functions

* lisp/ox-texinfo.el (org-texinfo--make-option-string,
  org-texinfo--sanitize-headline-contents): Remove.

10 months agoox-texinfo: Fix node names
Nicolas Goaziou [Sun, 10 Aug 2014 21:10:57 +0000]
ox-texinfo: Fix node names

* lisp/ox-texinfo.el (org-texinfo--sanitize-node): "@", "{" and "}"
  characters are allowed in a node name.  So are "(" and ")" unless
  "(" starts the name and there is ")" somewhere in the name.  Also
  trim and collapse whitespace characters.  Renamed from
(org-texinfo--get-node): Do not sanitize node names over zealously.
Ensure returned node names are unique.
(org-texinfo-headline): Only add @node command where it makes sense.

10 months agoox-texinfo: Fix docstrings
Nicolas Goaziou [Sun, 10 Aug 2014 20:55:20 +0000]
ox-texinfo: Fix docstrings

* lisp/ox-texinfo.el (org-texinfo--sanitize-menu,
  org-texinfo--sanitize-content): Fix docstrings.

10 months agoox-texinfo: Fix blank lines in output
Nicolas Goaziou [Sat, 9 Aug 2014 00:01:18 +0000]
ox-texinfo: Fix blank lines in output

* lisp/ox-texinfo.el (org-texinfo--normalize-headlines): Make sure
  a blank line always follows nodes.

10 months agoox-texinfo: Fix menus
Nicolas Goaziou [Fri, 8 Aug 2014 23:54:51 +0000]
ox-texinfo: Fix menus

* lisp/ox-texinfo.el (org-texinfo-make-menu): Change signature.
  Remove some intermediate functions.  Generate the full master menu
  when asked.
(org-texinfo--build-menu):  Use a simpler algorithm.
(org-texinfo--format-entries): Fix entries when both node and title
are different.
(org-texinfo--menu-entries): Renamed from `org-texinfo--generate-menu-list'.
(org-texinfo-headline): Move menu handling to next function.
(org-texinfo-section): Handle menu for current parent.
(org-texinfo--menu-headlines, org-texinfo--generate-detailed): Remove
(org-texinfo--normalize-headlines): New function.

10 months agoox-texinfo: Fix appendix command
Nicolas Goaziou [Fri, 8 Aug 2014 23:54:11 +0000]
ox-texinfo: Fix appendix command

* lisp/ox-texinfo.el (org-texinfo-headline): Fix @appendix command.

10 months agoox-texinfo: Fix heading text
Nicolas Goaziou [Fri, 8 Aug 2014 22:43:39 +0000]
ox-texinfo: Fix heading text

* lisp/ox-texinfo.el (org-texinfo-headline): Do not sanitize heading
  text for sectioning command.

For example

  * This is ~code~

should be possibly exported as

  @chapter This is @code{code}


  @chapter This is @@code@{code@}

10 months agoox-texinfo: Fix ":COPYING: nil" node properties
Nicolas Goaziou [Fri, 8 Aug 2014 22:05:43 +0000]
ox-texinfo: Fix ":COPYING: nil" node properties

* lisp/ox-texinfo.el (org-texinfo--generate-menu-list): ":COPYING:
  nil" is expected to be equivalent to no COPYING property at all.

10 months agoorg.texi: Fix typo
Nicolas Goaziou [Fri, 8 Aug 2014 21:57:16 +0000]
org.texi: Fix typo

10 months agoorg.texi: Fix e5aceea
Nicolas Goaziou [Fri, 8 Aug 2014 21:51:09 +0000]
org.texi: Fix e5aceea