org-mode.git
6 days agoob-core: Source blocks are case-insensitive maint
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 <genovese@cmu.edu>
<http://permalink.gmane.org/gmane.emacs.orgmode/93454>

6 days 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
  accessor.

6 days 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.

TINYCHANGE

7 days 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
HTML.

Reported-by: Vasilij Schneidermann <v.schneidermann@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/93447>

11 days 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.

11 days 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.

13 days 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 <amitai.hoze@gmail.com>

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

3 weeks 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: foo.org".  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: foo.org"
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.

TINYCHANGE

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

  ColA,ColB,ColC
  1,2,3
  4,5,6

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

  console.log(csv);

When I expand the source block I end up with:

var csv="ColA,ColB,ColC
  1,2,3
  4,5,6";
console.log(csv);

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";
  console.log(csv);

TINYCHANGE

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

4 weeks 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 <luke@balooga.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/92619>

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

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

TINYCHANGE

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

TINYCHANGE

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

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

TINYCHANGE

6 weeks 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
  hypertarget.

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

<http://permalink.gmane.org/gmane.emacs.orgmode/92455>

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

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

6 weeks 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
options.

6 weeks 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 <j.cubizolles@free.fr>
<http://permalink.gmane.org/gmane.emacs.orgmode/92319>

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

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

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
org-goto-ret.

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,
    http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15200

<http://thread.gmane.org/gmane.emacs.orgmode/92317>

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

6 weeks 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 <ccberry@ucsd.edu>
<http://permalink.gmane.org/gmane.emacs.orgmode/92321>

6 weeks 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).

TINYCHANGE

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

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

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

2 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
  expressions.
* 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
internally.

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

2 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
  function.

Thanks to Julien Cubizolles for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/91532

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

TINYCHANGE

2 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

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

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

TINYCHANGE

2 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
  headlines.

3 months agoFix to determine a bulk-markable line
marcowahlsoft@gmail.com [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.

TINYCHANGE

3 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.

3 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.

3 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.

3 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.
http://permalink.gmane.org/gmane.emacs.orgmode/90876

3 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.

3 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.
http://permalink.gmane.org/gmane.emacs.orgmode/90835

3 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.
http://permalink.gmane.org/gmane.emacs.orgmode/90650

3 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.

3 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.

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

3 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.

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

3 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.
http://permalink.gmane.org/gmane.emacs.orgmode/90383

3 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
  properties.
(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.
http://permalink.gmane.org/gmane.emacs.orgmode/90293

3 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.

3 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
  name.
(org-texinfo--sanitize-content): Fix regexp.
(org-texinfo-link): Fix various bugs in link export.

3 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.
http://permalink.gmane.org/gmane.emacs.orgmode/90218

3 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.

http://permalink.gmane.org/gmane.emacs.orgmode/90119

3 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
  order.

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

http://permalink.gmane.org/gmane.emacs.orgmode/89867

3 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.

3 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
  docstring.

3 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.

4 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.
http://permalink.gmane.org/gmane.emacs.orgmode/90011

4 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

   http://thread.gmane.org/gmane.emacs.orgmode/89945

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

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

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

Thanks to Brian J. Carlson for reporting it and providing a patch.
http://permalink.gmane.org/gmane.emacs.orgmode/89965

4 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.
http://permalink.gmane.org/gmane.emacs.orgmode/89840

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

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

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

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

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

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

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

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

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

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

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

4 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,
  org-texinfo--sanitize-headline-contents): Remove.

4 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--sanitize-menu'.
(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.

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

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

4 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
functions.
(org-texinfo--normalize-headlines): New function.

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

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

not

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

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

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

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

4 months agoorg.texi: Fixes to Texinfo documentation
Nicolas Goaziou [Fri, 8 Aug 2014 21:35:24 +0000]
org.texi: Fixes to Texinfo documentation

4 months agoox-texinfo: Fix blank lines between in items
Nicolas Goaziou [Fri, 8 Aug 2014 20:42:08 +0000]
ox-texinfo: Fix blank lines between in items

* lisp/ox-texinfo.el (org-texinfo-item): Fix blank lines between
  items.

4 months agoorg.texi: Document Texinfo export back-end
Nicolas Goaziou [Thu, 31 Jul 2014 08:40:18 +0000]
org.texi: Document Texinfo export back-end

4 months agoox-texinfo: Code comments clean-up
Nicolas Goaziou [Wed, 6 Aug 2014 21:53:42 +0000]
ox-texinfo: Code comments clean-up

4 months agoox-texinfo: Fix plain lists export
Nicolas Goaziou [Wed, 6 Aug 2014 21:46:04 +0000]
ox-texinfo: Fix plain lists export

* lisp/ox-texinfo.el (org-texinfo-plain-list): Fix format string.
  Small refactoring.

4 months agoox-texinfo: Allow to set a different title for hard copy
Nicolas Goaziou [Tue, 5 Aug 2014 20:53:19 +0000]
ox-texinfo: Allow to set a different title for hard copy

* lisp/ox-texinfo.el (texinfo): Provide new export property.
(org-texinfo-template): Use dedicated title for hard copy, when
available.

4 months agoox-texinfo: Appendix has precedence over regular sectionning
Nicolas Goaziou [Tue, 5 Aug 2014 07:59:00 +0000]
ox-texinfo: Appendix has precedence over regular sectionning

* lisp/ox-texinfo.el (org-texinfo-headline): Always obey to
  a non-nil :APPENDIX: property.  Small refactoring.

4 months agoox-texinfo: Fix verse block export
Nicolas Goaziou [Mon, 4 Aug 2014 13:21:51 +0000]
ox-texinfo: Fix verse block export

* lisp/ox-texinfo.el (org-texinfo-verse-block): Generate somewhat
  meaningful Texinfo code instead of LaTeX.

4 months agoox-texinfo: Fix table export
Nicolas Goaziou [Mon, 4 Aug 2014 13:03:29 +0000]
ox-texinfo: Fix table export

* lisp/ox-texinfo.el (org-texinfo-table): Remove reference to
  "verbatim" attribute.  Handle table.el tables.  Tiny refactoring.
(org-texinfo-table--org-table, org-texinfo-table--table.el-table):
Remove functions.
(org-texinfo-table-column-widths): Indent code correctly.  Ignore
special column, if any.  Add a comment about the limitation on the
width computation.
(org-texinfo-table-row): Small refactoring.

4 months agoox-texinfo: Fix @setfilename command
Nicolas Goaziou [Mon, 4 Aug 2014 09:48:09 +0000]
ox-texinfo: Fix @setfilename command

* lisp/ox-texinfo.el (texinfo): Do not provide a default value for
  @setfilename value.
(org-texinfo-filename): Remove variable.
(org-texinfo-template): Correctly find value for @setfilename command.
If none is possible, do not provide the command at all.

4 months agoox: Provide output file name, if any, to back-ends
Nicolas Goaziou [Mon, 4 Aug 2014 08:53:54 +0000]
ox: Provide output file name, if any, to back-ends

* lisp/ox.el (org-export-to-file): Provide output file name in
  communication channel, through :output-file property.

This change is needed to fix back-ends needing this information during
the process, e.g., `texinfo'.

4 months agoox-texinfo: Do not hardcode "Manual" in top node
Nicolas Goaziou [Mon, 4 Aug 2014 00:31:36 +0000]
ox-texinfo: Do not hardcode "Manual" in top node

* lisp/ox-texinfo.el (org-texinfo-template): Do not hardcode "Manual"
  in top node.

4 months agoox-texinfo: Fix `org-texinfo-classes'
Nicolas Goaziou [Mon, 4 Aug 2014 09:47:40 +0000]
ox-texinfo: Fix `org-texinfo-classes'

* lisp/ox-texinfo.el (org-texinfo-classes): Change default value.
  Update docstring.
(org-texinfo-template): Insert header string from current class after
"@settitle" command.  Always provide "\input texinfo" at the beginning
of the output.

Header string in the class was inserted before "@setfilename".
Texinfo ignores anything between "\input texinfo" and that command,
making any value besides the default one useless.