org-mode.git
13 months agoorg.texi (History and Acknowledgments): Mention that Jambunathan rewrote the HTML... release_8.0-pre
Bastien Guerry [Fri, 8 Mar 2013 06:45:30 +0000]
org.texi (History and Acknowledgments): Mention that Jambunathan rewrote the HTML exporter

* org.texi (History and Acknowledgments): Mention that Jambunathan
rewrote the HTML exporter.

13 months agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Thu, 7 Mar 2013 15:31:40 +0000]
Merge branch 'master' of orgmode.org:org-mode

13 months agoox-md.el (org-md-export-as-markdown): Tiny docstring fix
Bastien Guerry [Thu, 7 Mar 2013 15:31:24 +0000]
ox-md.el (org-md-export-as-markdown): Tiny docstring fix

* ox-md.el (org-md-export-as-markdown): Tiny docstring fix.

13 months agoox-md.el: Fix a library keyword in the comment section
Bastien Guerry [Thu, 7 Mar 2013 13:44:58 +0000]
ox-md.el: Fix a library keyword in the comment section

* ox-md.el: Fix a library keyword in the comment section.

13 months agoox-icalendar: Fix error when `org-icalendar-store-UID' is non-nil
Nicolas Goaziou [Thu, 7 Mar 2013 12:53:50 +0000]
ox-icalendar: Fix error when `org-icalendar-store-UID' is non-nil

* lisp/ox-icalendar.el (org-icalendar-create-uid): Fix error when
  `org-icalendar-store-UID' is non-nil.

13 months agoMake `org-toggle-item' and `org-toggle-heading' behave more alike
Bastien Guerry [Thu, 7 Mar 2013 11:06:46 +0000]
Make `org-toggle-item' and `org-toggle-heading' behave more alike

* org.el (org-toggle-item): Convert all normal lines as items when
there is a region, and only convert the first line when called
with a universal prefix argument.  This is consistent with the
behavior of `org-toggle-heading'.
(org-toggle-heading): When the region contains only normal lines,
a universal prefix arg will only convert the first line.  This is
more consistent with `org-toggle-item'.

13 months agoorg.el (orgstruct-setup): Add `org-ctrl-c-minus' and `org-ctrl-c-star'
Bastien Guerry [Thu, 7 Mar 2013 10:26:02 +0000]
org.el (orgstruct-setup): Add `org-ctrl-c-minus' and `org-ctrl-c-star'

* org.el (orgstruct-setup): Add `org-ctrl-c-minus' and
`org-ctrl-c-star'.

13 months agoox-latex: Introduce LATEX_HEADER_EXTRA keyword
Nicolas Goaziou [Thu, 7 Mar 2013 07:59:23 +0000]
ox-latex: Introduce LATEX_HEADER_EXTRA keyword

* lisp/ox-latex.el (latex): Introduce new buffer keyword.
(org-latex-template): Use new keyword.
* lisp/ox-beamer.el (org-beamer-template): Use new keyword.
* lisp/org.el (org-create-formula--latex-header): Use new keyword.
* contrib/lisp/ox-koma-letter.el (org-koma-letter-template): Use new
  keyword.

Previewing of LaTeX snippets takes account of LATEX_HEADER keywords.
LATEX_HEADER_EXTRA keyword allows to specify some header lines that
will not be used for building snippets.

13 months agocontrib/lisp/: Fix some local variables settings
Bastien Guerry [Wed, 6 Mar 2013 22:46:52 +0000]
contrib/lisp/: Fix some local variables settings

13 months agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Wed, 6 Mar 2013 22:41:36 +0000]
Merge branch 'master' of orgmode.org:org-mode

13 months agoorg.texi (History and Acknowledgments): Remove Jambunathan from my own acknowledgments
Bastien Guerry [Wed, 6 Mar 2013 22:41:21 +0000]
org.texi (History and Acknowledgments): Remove Jambunathan from my own acknowledgments

* org.texi (History and Acknowledgments): Remove Jambunathan from
my own acknowledgments.

13 months agofix test failure introduced by moving library-of-babel.org in 321f806faf
Achim Gratz [Wed, 6 Mar 2013 20:27:13 +0000]
fix test failure introduced by moving library-of-babel.org in 321f806faf

* testing/lisp/test-ob-lob.el: The file library-of-babel.org has been
  moved from contrib/babel to doc, change the code to track that move.

13 months agoMove contrib/babel/langs/* into contrib/lisp/*
Bastien Guerry [Wed, 6 Mar 2013 16:43:33 +0000]
Move contrib/babel/langs/* into contrib/lisp/*

Also move library-of-babel.org into doc/ and update the README.

13 months agocontrib/babel/langs/: Fix copyright sections in some files
Bastien Guerry [Wed, 6 Mar 2013 16:36:47 +0000]
contrib/babel/langs/: Fix copyright sections in some files

13 months agoorg.el: Update `customize-package-emacs-version-alist' and fix :version/:package...
Bastien Guerry [Wed, 6 Mar 2013 16:31:28 +0000]
org.el: Update `customize-package-emacs-version-alist' and fix :version/:package-version keywords

* org.el (customize-package-emacs-version-alist): Update
`customize-package-emacs-version-alist'.

* ox-texinfo.el (org-export-texinfo)
(org-texinfo-filename, org-texinfo-classes)
(org-texinfo-format-headline-function)
(org-texinfo-node-description-column)
(org-texinfo-active-timestamp-format)
(org-texinfo-link-with-unknown-path-format)
(org-texinfo-tables-verbatim)
(org-texinfo-table-scientific-notation)
(org-texinfo-text-markup-alist)
(org-texinfo-format-drawer-function)
(org-texinfo-format-inlinetask-function)
(org-texinfo-info-process):
* ox-odt.el (org-odt-format-drawer-function)
(org-odt-format-headline-function)
(org-odt-format-inlinetask-function):
* ox-md.el (org-export-md, org-md-headline-style): Fix :version
and :package-version keywords.

13 months agoExport framework: Add :version and :package-version informations to defcustoms
Nicolas Goaziou [Wed, 6 Mar 2013 13:45:12 +0000]
Export framework: Add :version and :package-version informations to defcustoms

* lisp/ox-beamer.el (org-beamer-column-view-format, org-beamer-theme,
  org-beamer-environments-extra): Add :version and :package-version.
* lisp/ox-html.el (org-html-with-latex, org-html-inline-image-rules):
  Add :version and :package-version.
* lisp/ox-latex.el (org-latex-inline-image-rules,
  org-latex-default-table-environment, org-latex-default-table-mode,
  org-latex-tables-booktabs, org-latex-table-scientific-notation,
  org-latex-known-errors): Add :version and :package-version.
* lisp/ox-md.el (org-md-headline-style): Add :version
  and :package-version.
* lisp/ox-odt.el (org-odt-with-latex): Add :version
  and :package-version.
* lisp/ox.el (org-export-with-drawers, org-export-with-latex,
  org-export-with-inlinetasks, org-export-with-planning,
  org-export-with-smart-quotes, org-export-with-statistics-cookies,
  org-export-allow-bind-keywords, org-export-async-init-file):
  Add :version and :package-version.

13 months agoox-icalendar: Fix code comment
Nicolas Goaziou [Wed, 6 Mar 2013 16:10:26 +0000]
ox-icalendar: Fix code comment

* lisp/ox-icalendar.el (org-icalendar-export-to-ics): Change back-end
  name from `e-ascii' to `ascii'.

13 months agoox: Fix `org-map-entries' with a nil scope argument usage in hooks
Nicolas Goaziou [Wed, 6 Mar 2013 13:23:49 +0000]
ox: Fix `org-map-entries' with a nil scope argument usage in hooks

* lisp/ox.el (org-export--generate-copy-script): Call `org-mode' when
  duplicating a buffer.  It will properly set every variable, like
  `comment-start'.
(org-export-async-start): Do not call `org-mode' since this is done
already in the previous function.

13 months agoox-beamer: Remove frame arount toc when generated from a TOC keyword
Nicolas Goaziou [Wed, 6 Mar 2013 12:33:51 +0000]
ox-beamer: Remove frame arount toc when generated from a TOC keyword

* lisp/ox-beamer.el (org-beamer-keyword): Remove frame arount toc when
  generated from a TOC keyword.

Since TOC keywords are a way to add a table of contents at some
precise location, it is reasonable to think the user will also want to
control the frame surronding it.  Table of contents generated with
toc:t option item still get wrapped within a frame.

13 months agoorg.el (org-time-clocksum-use-effort-durations): Use nil as the default
Bastien Guerry [Wed, 6 Mar 2013 09:37:50 +0000]
org.el (org-time-clocksum-use-effort-durations): Use nil as the default

* org.el (org-time-clocksum-use-effort-durations): Don't set to t
by default as it will change many clocktables out there.  Let the
user decides whether she wants to turn this on.

13 months agoRevert `org-agenda-dim-blocked-tasks' and `org-agenda-inhibit-startup' to their previ...
Bastien Guerry [Wed, 6 Mar 2013 09:35:19 +0000]
Revert `org-agenda-dim-blocked-tasks' and `org-agenda-inhibit-startup' to their previous default (t and nil)

* org.el (org-agenda-inhibit-startup): Revert to nil as the default.
* org-agenda.el (org-agenda-dim-blocked-tasks): Revert to t as the
default.

The reason for this reversion is that that users expect the agenda to
DTRT by default, and that it's better not to change the previous default
in general.  Also, users who need to speed up their agenda are probably
long time users with big and numerous agenda files, and it's easier for
them to find these variables than it is for newbies to find out why the
agenda does not DTRT.

If users want to speed up their agenda, they can now read advice here:
http://orgmode.org/worg/agenda-optimization.html

13 months agoox-latex: Support tikz images, :width, and :height
Aaron Ecay [Wed, 6 Mar 2013 04:04:42 +0000]
ox-latex: Support tikz images, :width, and :height

* ox-latex.el:
(org-latex-image-default-option): Change default value to ""
(org-latex-image-default-width)
(org-latex-image-default-height): Add variables
(org-latex-inline-image-rules): Make .tikz files as exportable with
latex
(org-latex--inline-image): Support tikz images.  Also support separate
:width and :height parameters for images.

* ob-R.el (org-babel-R-construct-graphics-device-call): Change file
extension of tikz graphics files to .tikz

Tikz graphics should be exported to LaTeX by \include, not as a link.
This commit changes the file extension used for tikz graphics from .tex
to .tikz, and inserts code for including such images.  The :options for
tikz graphics are passed as an optional argument to a tikzpicture
environment.

Also provide :width and :height ATTR_LATEX entries for images.  For tikz
graphics, these are implemented with \resizebox; for other image types
they are inserted in the optional arguments to \includegraphics.

13 months ago* lisp/org.el (org-set-font-lock-defaults): include link targets
Aaron Ecay [Wed, 6 Mar 2013 04:07:01 +0000]
* lisp/org.el (org-set-font-lock-defaults): include link targets

The org-target face is created in org-faces.el, but never used for
font-locking.  This patch fixes that.

13 months agoFix export back-ends status when reloading Org
Nicolas Goaziou [Tue, 5 Mar 2013 23:27:28 +0000]
Fix export back-ends status when reloading Org

* lisp/org.el (org-export-backends): Do not reset list of loaded
  back-ends to variable's value after a reload.

13 months agoRemove :version and :package-version in contributed packages
Bastien Guerry [Tue, 5 Mar 2013 16:46:41 +0000]
Remove :version and :package-version in contributed packages

13 months agoox-html.el: More CSS tweaks
Bastien Guerry [Tue, 5 Mar 2013 16:06:01 +0000]
ox-html.el: More CSS tweaks

* ox-html.el (org-html-style-default): More cosmetic tweaks.
(org-html-head-include-default-style): Minor docstring update.

Thanks to Ken Williams who provided the patch about adding
the name of the source code block.

13 months agoAdd :version and :package-version
Bastien Guerry [Tue, 5 Mar 2013 15:34:16 +0000]
Add :version and :package-version

* ox.el (org-export-snippet-translation-alist)
(org-export-coding-system, org-export-in-background)
(org-export-async-init-file, org-export-invisible-backends)
(org-export-dispatch-use-expert-ui):
* ox-texinfo.el (org-texinfo-filename, org-texinfo-classes)
(org-texinfo-format-headline-function)
(org-texinfo-node-description-column)
(org-texinfo-active-timestamp-format)
(org-texinfo-link-with-unknown-path-format)
(org-texinfo-tables-verbatim)
(org-texinfo-table-scientific-notation)
(org-texinfo-text-markup-alist)
(org-texinfo-format-drawer-function)
(org-texinfo-format-inlinetask-function)
(org-texinfo-info-process):
* ox-man.el (org-man-tables-centered)
(org-man-table-scientific-notation)
(org-man-source-highlight, org-man-source-highlight-langs)
(org-man-pdf-process, org-man-logfiles-extensions):
* ox-html.el (org-html-allow-name-attribute-in-anchors)
(org-html-coding-system, org-html-divs):
* ox-ascii.el (org-ascii-text-width)
(org-ascii-headline-spacing, org-ascii-indented-line-width)
(org-ascii-paragraph-spacing, org-ascii-charset)
(org-ascii-underline, org-ascii-bullets)
(org-ascii-links-to-notes)
(org-ascii-table-keep-all-vertical-lines)
(org-ascii-table-widen-columns)
(org-ascii-table-use-ascii-art)
(org-ascii-format-drawer-function)
(org-ascii-format-inlinetask-function):
* org.el (org-modules, org-export-backends)
(org-highlight-latex-and-related, orgstruct-setup-hook):
* org-attach.el (org-attach-git-annex-cutoff):
* org-archive.el (org-archive-file-header-format):
* org-agenda.el (org-agenda-todo-ignore-time-comparison-use-seconds):
* ob-python.el (org-babel-python-hline-to)
(org-babel-python-None-to):
* ob-ditaa.el (org-ditaa-eps-jar-path):
* ob-core.el (org-babel-results-keyword): Add :version and
:package-version.

* ox-ascii.el: Use utf-8-emacs as the file coding system.

13 months agoorg-capture.el: Fix or add docstrings
Bastien Guerry [Tue, 5 Mar 2013 14:35:08 +0000]
org-capture.el: Fix or add docstrings

* org-capture.el (org-capture-templates, org-capture-string)
(org-capture-steal-local-variables)
(org-capture-empty-lines-before)
(org-capture-empty-lines-after)
(org-capture-insert-template-here)
(org-capture-import-remember-templates): Fix or add docstring.

13 months agoox-html.el: Update the default CSS
Bastien Guerry [Tue, 5 Mar 2013 14:28:43 +0000]
ox-html.el: Update the default CSS

* ox-html.el (org-html-style-default): Cosmetic changes.
(org-html-postamble, org-html-preamble)
(org-html-preamble-format): Update docstring.

13 months agoorg-agenda.el: Fix or add docstrings.
Bastien Guerry [Tue, 5 Mar 2013 13:44:01 +0000]
org-agenda.el: Fix or add docstrings.

* org-agenda.el (org-agenda-format-date-aligned)
(org-agenda-time-of-day-to-ampm-maybe)
(org-scheduled-past-days)
(org-agenda-normalize-custom-commands)
(org-agenda-run-series, org-store-agenda-views): Fix or add
docstring.

13 months agoox-latex.el: Fix some typos in docstrings
Bastien Guerry [Tue, 5 Mar 2013 13:37:47 +0000]
ox-latex.el: Fix some typos in docstrings

* ox-latex.el:
(org-latex-table-scientific-notation, org-latex-verse-block):
Fix typos in docstrings.

13 months agoox-html.el: Fix or add docstring
Bastien Guerry [Tue, 5 Mar 2013 13:35:51 +0000]
ox-html.el: Fix or add docstring

* ox-html.el (org-html-text-markup-alist)
(org-html-pretty-output, org-html-link-org-files-as-html)
(org-html-postamble, org-html-preamble)
(org-html-format-inline-image, org-html-splice-attributes)
(org-export-splice-style, org-html-htmlize-region-for-paste)
(org-html-fix-class-name)
(org-html-format-footnote-reference)
(org-html-format-footnotes-section)
(org-html-footnote-section, org-html--anchor)
(org-html--todo, org-html--tags, org-html-format-headline)
(org-html-toc, org-html-format-section, org-html-checkbox)
(org-html-format-list-item, org-html-format-latex)
(org-html-encode-plain-text)
(org-html-table-first-row-data-cells)
(org-html-table--table.el-table, org-html-final-function): Fix
or add docstring.

13 months agoorg-contacts.el: Fix or add docstrings
Bastien Guerry [Tue, 5 Mar 2013 13:14:54 +0000]
org-contacts.el: Fix or add docstrings

* org-contacts.el (org-contacts-db)
(org-contacts-try-completion-prefix)
(org-contacts-all-completions-prefix)
(org-contacts-make-collection-prefix)
(org-contacts-display-sort-function)
(org-contacts-icon-as-string, org-contacts-format-name)
(org-contacts-gnus-insinuate): Fix or add docstring.

13 months agoox-latex: Do not overwrite provided numbering options in minted and listings
Nicolas Goaziou [Tue, 5 Mar 2013 11:11:18 +0000]
ox-latex: Do not overwrite provided numbering options in minted and listings

* lisp/ox-latex.el (org-latex-src-block): Do not overwrite provided
  numbering options in minted and listings.

If "numbers" option (resp. "linenos" option) is provided in
`org-latex-listings-options' (resp. `org-latex-minted-options'),
export will ignore "+n" and "-n" switches from source blocks.

13 months agoorg.el (org-insert-heading): If the current item has a checkbox, insert the new item...
Bastien Guerry [Tue, 5 Mar 2013 10:17:05 +0000]
org.el (org-insert-heading): If the current item has a checkbox, insert the new item with a checkbox

* org.el (org-insert-heading): If the current item has a
checkbox, insert the new item with a checkbox.

13 months agoorg.el (org-insert-heading): Don't delete spaces in empty headlines
Bastien Guerry [Tue, 5 Mar 2013 07:28:26 +0000]
org.el (org-insert-heading): Don't delete spaces in empty headlines

* org.el (org-insert-heading): Don't delete spaces in empty
headlines.

13 months agoFix typo.
Bastien Guerry [Tue, 5 Mar 2013 06:55:10 +0000]
Fix typo.

13 months agoox-latex: Don't add optional title on unnumbered headlines
Nicolas Goaziou [Mon, 4 Mar 2013 20:18:34 +0000]
ox-latex: Don't add optional title on unnumbered headlines

* lisp/ox-latex.el (org-latex-headline): Don't add optional title on
  unnumbered headlines.

13 months agoMinor cleanup of backend options.
Rick Frankel [Mon, 4 Mar 2013 20:01:51 +0000]
Minor cleanup of backend options.

* contrib/lisp/ox-deck.el: Remove unnecessary overrides and
  rationalize name of in-buffer option for include-default-style.
* contrib/lisp/ox-s5.el: Same as above.
(org-s5--build-head): Renamed from org-s5--build-style for consistency
with ox-html.

13 months agocontrib/lisp/org-contacts.el: Fix compiler warnings.
Frank Terbeck [Mon, 4 Mar 2013 19:41:36 +0000]
contrib/lisp/org-contacts.el: Fix compiler warnings.

TINYCHANGE

13 months agocontrib/babel/langs/ob-julia.el: New file by G. Jay Kerns
Bastien Guerry [Mon, 4 Mar 2013 19:37:20 +0000]
contrib/babel/langs/ob-julia.el: New file by G. Jay Kerns

I also updated the contrib/README.

Thanks a lot to G. Jay Kerns for this.

Don't miss the thorough documentation here:
https://github.com/gjkerns/ob-julia/blob/master/ob-julia-doc.org

13 months agocontrib/babel/langs/: Fix copyright years in some files.
Bastien Guerry [Mon, 4 Mar 2013 19:31:44 +0000]
contrib/babel/langs/: Fix copyright years in some files.

13 months agoox-odt.el (org-odt-keyword): Fix typo
Bastien Guerry [Mon, 4 Mar 2013 19:31:08 +0000]
ox-odt.el (org-odt-keyword): Fix typo

* ox-odt.el (org-odt-keyword): Fix typo.

13 months agoCosmetic fix in comment.
Bastien Guerry [Mon, 4 Mar 2013 19:11:15 +0000]
Cosmetic fix in comment.

13 months agoox-latex.el (org-latex-toc-command): Cosmetic docstring change
Bastien Guerry [Mon, 4 Mar 2013 19:08:39 +0000]
ox-latex.el (org-latex-toc-command): Cosmetic docstring change

* ox-latex.el (org-latex-toc-command): Cosmetic docstring change.

13 months agoox-html.el: Remove two useless comments.
Bastien Guerry [Mon, 4 Mar 2013 19:08:18 +0000]
ox-html.el: Remove two useless comments.

13 months agoox-html.el (org-html-encode-plain-text): Fix typo in docstring
Bastien Guerry [Mon, 4 Mar 2013 18:41:34 +0000]
ox-html.el (org-html-encode-plain-text): Fix typo in docstring

* ox-html.el (org-html-encode-plain-text): Fix typo in docstring.

13 months agoUpdate contrib/README and some comments/messages
Bastien Guerry [Mon, 4 Mar 2013 17:36:34 +0000]
Update contrib/README and some comments/messages

* org-faces.el (org-column): Update docstring.
* org-colview.el: Update error message.

13 months agocontrib/lisp/: Add org-favtable.el by Marc-Oliver Ihm
Bastien Guerry [Mon, 4 Mar 2013 17:35:02 +0000]
contrib/lisp/: Add org-favtable.el by Marc-Oliver Ihm

From the comment section:

  Mark and find your favorite things and locations in org easily: Create
  and update a lookup table of your references and links. Often used
  entries bubble to the top and entering some keywords displays only the
  matching entries. That way the right entry one can be picked easily.

  References are essentially small numbers (e.g. "R237" or "-455-"),
  which are created by this package; they are well suited to be used
  outside of org. Links are just normal org-mode links.

13 months agoMove org-mew.el, org-vm.el, org-w3m.el, org-wl.el to contrib/.
Bastien Guerry [Mon, 4 Mar 2013 17:28:26 +0000]
Move org-mew.el, org-vm.el, org-w3m.el, org-wl.el to contrib/.

* org.el (org-modules): Do not include org-mew.el, org-vm.el,
org-w3m.el, org-wl.el as these files are now part of contrib/.

* org-w3m.el:
* org-vm.el:
* org-w3m.el:
* org-wl.el: Move to contrib/.

The purpose behind this change is to prepare a future split between
org-mode.git and org-contrib.git: org-mode.git will contain all files
that are directly relevant to GNU Emacs, while org-contrib.git will
contain files that are more peripheral and/or from authors who cannot
assign their copyright to the FSF.

This is *not* a way do downgrade those files, it is a way to prepare
org-contrib.org so that it gets more attention and more contributors,
thanks to the fact that there is no legal barrier to contribute to it.

13 months agoMove org-colview-xemacs.el into contrib/.
Bastien Guerry [Mon, 4 Mar 2013 17:23:05 +0000]
Move org-colview-xemacs.el into contrib/.

13 months agoMove `org-mks' to org-capture.el and delete org-mks.el.
Bastien Guerry [Mon, 4 Mar 2013 17:21:47 +0000]
Move `org-mks' to org-capture.el and delete org-mks.el.

* org-capture.el (org-mks): Move from org-mks.el.
* org-mks.el: Delete.

13 months agoUpdate HTML options names in the manual and ox-html.el.
Bastien Guerry [Mon, 4 Mar 2013 16:56:37 +0000]
Update HTML options names in the manual and ox-html.el.

* org.texi (CSS support): (In-buffer settings): Update HTML options
names.

* ox-html.el (html): Update HTML options names.

13 months agoox-s5.el (s5) and ox-deck.el (deck): Update HTML options names
Bastien Guerry [Mon, 4 Mar 2013 16:55:33 +0000]
ox-s5.el (s5) and ox-deck.el (deck): Update HTML options names

* ox-s5.el (s5):
* ox-deck.el (deck): Update HTML options names.

13 months agoox-html: Fix "HTML_HEAD" and "HTML_HEAD_EXTRA" keywords
Nicolas Goaziou [Mon, 4 Mar 2013 16:27:18 +0000]
ox-html: Fix "HTML_HEAD" and "HTML_HEAD_EXTRA" keywords

* lisp/ox-html.el (html): Fix "HTML_HEAD" and "HTML_HEAD_EXTRA"
  keywords.

13 months agoox-html: Allow multiple #+LATEX_HEAD and #+LATEX_HEAD_EXTRA again
Nicolas Goaziou [Mon, 4 Mar 2013 15:23:13 +0000]
ox-html: Allow multiple #+LATEX_HEAD and #+LATEX_HEAD_EXTRA again

* lisp/ox-html.el (html): Allow multiple #+LATEX_HEAD and
  #+LATEX_HEAD_EXTRA again.

13 months agoSmall refactoring
Nicolas Goaziou [Mon, 4 Mar 2013 14:58:41 +0000]
Small refactoring

* lisp/org.el (org-fill-paragraph): Small refactoring to
  `org-fill-paragraph'.

13 months agoSmall fix to `org-fill-paragraph'
Nicolas Goaziou [Mon, 4 Mar 2013 14:56:10 +0000]
Small fix to `org-fill-paragraph'

* lisp/org.el (org-fill-paragraph): Do not look for table cells in
  a paragraph.

13 months agoorg-element: Simplify restrictions within secondary strings and objects
Nicolas Goaziou [Mon, 4 Mar 2013 07:34:46 +0000]
org-element: Simplify restrictions within secondary strings and objects

* lisp/org-element.el (org-element-object-restrictions): Simplify
  restrictions within secondary strings and objects.

13 months agoupdate doc to reflect changed variable name
Eric Schulte [Mon, 4 Mar 2013 13:44:31 +0000]
update doc to reflect changed variable name

* lisp/ob-tangle.el (org-babel-tangle-collect-blocks): Update comment to
  reflect changed variable name.

13 months agofix bug: org-babel-tangle-file can't limit collected source code block by argument.
Ryo TAKAISHI [Mon, 4 Mar 2013 12:52:04 +0000]
fix bug: org-babel-tangle-file can't limit collected source code block by argument.

* lisp/ob-tangle.el (org-babel-tangle-collect-blocks): Change argument
  name collid org-babel-map-src-blocks's variable 'lang'.

TINYCHANGE

13 months agoorg-list: Use export back-ends to transform radio lists
Nicolas Goaziou [Mon, 4 Mar 2013 09:51:54 +0000]
org-list: Use export back-ends to transform radio lists

* lisp/org-list.el (org-list-send-list): Do not rely on
  `org-list-parse-list'.
(org-list-to-latex, org-list-to-html, org-list-to-texinfo): Use
appropriate export back-end instead of using `org-list-to-generic'.
* testing/lisp/test-org-list.el: Add tests.

13 months agoox-html: Exclude contents div and title from body-only export
Nicolas Goaziou [Mon, 4 Mar 2013 11:15:44 +0000]
ox-html: Exclude contents div and title from body-only export

* lisp/ox-html.el (org-html-inner-template): Remove contents div and
  title.
(org-html-template): Add contents div and title.

13 months agoox-html: Can't activate jsinfo script during a body-only export
Nicolas Goaziou [Mon, 4 Mar 2013 11:16:37 +0000]
ox-html: Can't activate jsinfo script during a body-only export

* lisp/ox-html.el (org-html-infojs-install-script): Can't activate
  jsinfo script during a body-only export.

13 months agoox: Store export options in :export-options porperty
Nicolas Goaziou [Mon, 4 Mar 2013 11:14:16 +0000]
ox: Store export options in :export-options porperty

* lisp/ox.el (org-export-as): Store export options in :export-options
  porperty within communication channel.

This patch allows export options activated to be available to export
back-ends.

13 months agoFix bug in `org-schedule' and `org-deadline' introduced in fc8824.
Bastien Guerry [Mon, 4 Mar 2013 11:22:08 +0000]
Fix bug in `org-schedule' and `org-deadline' introduced in fc8824.

Thanks to Eric Abrahamsen for reporting this.

13 months agoox-latex: Fix bug with enforced item numbering in mixed lists
Nicolas Goaziou [Mon, 4 Mar 2013 07:54:51 +0000]
ox-latex: Fix bug with enforced item numbering in mixed lists

* lisp/ox-latex.el (org-latex-item): Fix wrong behaviour when
  a counter is set in an ordered list while its parent is not ordered.

This fixes numbering in the following case:

  - Unordered.
    3. [@3] Ordered.

Thanks to Hiroshi Saito for reporting the problem.

13 months agoDon't generate links for empty theme or transition.
Rick Frankel [Mon, 4 Mar 2013 01:50:58 +0000]
Don't generate links for empty theme or transition.

* ox-deck.el (org-deck--get-packages): Check for non-blank deck-theme
  and deck-transition.

13 months agoorg.el (org-show-context): Don't try to fix ellipsis when showing a subtree in agenda
Bastien Guerry [Mon, 4 Mar 2013 06:38:04 +0000]
org.el (org-show-context): Don't try to fix ellipsis when showing a subtree in agenda

* org.el (org-show-context): Don't try to fix ellipsis when
showing a subtree in agenda.

Thanks to James Harkins for reporting this.

13 months agoFix typo
Bastien Guerry [Mon, 4 Mar 2013 06:36:54 +0000]
Fix typo

13 months agoorg-protocol: Pass optional value using query in url to capture from protocol.
Ryo TAKAISHI [Mon, 4 Mar 2013 00:13:34 +0000]
org-protocol: Pass optional value using query in url to capture from protocol.

* lisp/org-protocol.el: (org-protocol-convert-query-to-plist): New
function.
(org-protocol-do-capture): Use new function.
(org-protocol-data-separator): Change default separator.

When org-protocol's url has query, org-capture get query using
plist-get from store-link.  For example:
Url is "org-protocol:/capture:/URL/TITLE/BODY?key=value"
org-capture can get (:key value) with (plist-get org-store-link-plist :query).

TINYCHANGE

13 months agoComplete fix for 128e14b
Bastien Guerry [Sun, 3 Mar 2013 21:26:09 +0000]
Complete fix for 128e14b

13 months agoFix commit 128e14b
Bastien Guerry [Sun, 3 Mar 2013 21:21:53 +0000]
Fix commit 128e14b

13 months agoox-html.el (org-html-code, org-html-verbatim): Transcode value
Jambunathan K [Sun, 3 Mar 2013 08:21:32 +0000]
ox-html.el (org-html-code, org-html-verbatim): Transcode value

* lisp/ox-html.el (org-html-code, org-html-verbatim):
Transcode value.

13 months agofix a stray "user-error" introduced in bd89d6a02f
Achim Gratz [Sun, 3 Mar 2013 19:29:58 +0000]
fix a stray "user-error" introduced in bd89d6a02f

* lisp/org-table.el (org-table-eval-formula): The condition-case to
  check for must be "error", not "user-error".

This fixes these test failures:

4 unexpected results:
   FAILED  test-org-table/references/format-specifier-E
   FAILED  test-org-table/references/format-specifier-EL
   FAILED  test-org-table/references/format-specifier-L
   FAILED  test-org-table/references/format-specifier-none

Reported in:
http://permalink.gmane.org/gmane.emacs.orgmode/67450
http://permalink.gmane.org/gmane.emacs.orgmode/67503

13 months agoox: Fix export of empty src blocks
Nicolas Goaziou [Sun, 3 Mar 2013 18:10:42 +0000]
ox: Fix export of empty src blocks

* lisp/ox.el (org-export-format-code-default): Handle empty source
  blocks more gracefully.
* lisp/ox-ascii.el (org-ascii-src-block): Handle empty blocks more
  gracefully.
* testing/lisp/test-ox.el: Add tests.

13 months agoox-s5.el and ox-deck.el: Use `org-html--build-head'
Bastien Guerry [Sun, 3 Mar 2013 17:59:39 +0000]
ox-s5.el and ox-deck.el: Use `org-html--build-head'

* ox-s5.el (org-s5-template):
* ox-deck.el (org-deck-template): Use `org-html--build-head'.

See previous commit.

13 months agoox-html.el: Reintroduce #+HTML_HEAD_EXTRA, previously known as HTML_STYLE_EXTRA
Bastien Guerry [Sun, 3 Mar 2013 17:58:40 +0000]
ox-html.el: Reintroduce #+HTML_HEAD_EXTRA, previously known as HTML_STYLE_EXTRA

* ox-html.el (html): Reintroduce #+HTML_HEAD_EXTRA, previously
known as HTML_STYLE_EXTRA.
(org-html-head): Enhance docstring.
(org-html-head-extra): Reintroduce.  Was `org-html-style-extra'.
(org-html--build-head): Rename from `org-html--build-head'.
Add information from `org-html-head-extra'.
(org-html-template): Use `org-html--build-head'.

Having an option for adding extra stuff is useful when publishing
projects.

13 months agoox-html.el (org-html-display-buffer-mode): Delete
Bastien Guerry [Sun, 3 Mar 2013 17:29:00 +0000]
ox-html.el (org-html-display-buffer-mode): Delete

* ox-html.el (org-html-display-buffer-mode): Delete.
(org-html-export-as-html): Use `set-auto-mode' instead of
`org-html-display-buffer-mode'.

Thanks to Jambunathan for suggesting this.

13 months agoorgcontacts.el: Fix `date' being broken in `org-contacts-anniversaries'.
Rüdiger Sonderfeld [Sun, 3 Mar 2013 14:08:12 +0000]
orgcontacts.el: Fix `date' being broken in `org-contacts-anniversaries'.

* contrib/lisp/org-contacts.el: Add defvar for date.  Similar to org.el.

  (org-contacts-anniversaries): Setting date to nil breaks the
  function.  Bug was introduced in e4cebbe40.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>

13 months agoorg-agenda.el (org-agenda-write): Overwrite file when called non-interactively
Bastien Guerry [Sun, 3 Mar 2013 16:42:32 +0000]
org-agenda.el (org-agenda-write): Overwrite file when called non-interactively

* org-agenda.el (org-agenda-write): Overwrite file when called
non-interactively.

Thanks to Simon Thum for reporting this.

13 months agoMerge branch 'maint'
Bastien Guerry [Sun, 3 Mar 2013 12:41:20 +0000]
Merge branch 'maint'

13 months agoorg-mobile.el (org-mobile-edit): Fix bug about inserting headings in invisible region
Bastien Guerry [Sun, 3 Mar 2013 12:41:08 +0000]
org-mobile.el (org-mobile-edit): Fix bug about inserting headings in invisible region

* org-mobile.el (org-mobile-edit): Workaround a
`org-insert-heading-respect-content' bug which prevents
correct insertion when point is invisible

Thanks to James Harkins for providing this fix.

13 months agoVarious fixes related to `org-insert-heading'.
Bastien Guerry [Sun, 3 Mar 2013 12:38:26 +0000]
Various fixes related to `org-insert-heading'.

* org.el (org-previous-line-empty-p): New parameter to allow
checking next line.  Add a docstring.
(org-insert-heading): Handle two universal prefix arguments as
advertized in the docstring.  Don't insert new lines when
creating a heading after the first heading in the current
subtree.
(org-insert-heading-respect-content): New optional argument
arg, passed to `org-insert-heading'.

* org.texi (Structure editing): Update documentation for
`org-insert-heading-or-item'.
(Plain lists, Relative timer): Update index entry.

* org-mobile.el (org-mobile-edit): Use correct parameters for
`org-insert-heading-respect-content'.

13 months agoorg.el (org-mode): Remove syntax entries
Bastien Guerry [Sun, 3 Mar 2013 07:02:53 +0000]
org.el (org-mode): Remove syntax entries

* org.el (org-mode): Remove syntax entries.

13 months agoorg.el (org-mode): New default value for *-of-defun-function
Bastien Guerry [Sun, 3 Mar 2013 06:53:11 +0000]
org.el (org-mode): New default value for *-of-defun-function

* org.el (org-mode): Use `org-backward-element' and
`org-forward-element' for `beginning-of-defun-function' and
`end-of-defun-function': this allows using C-M-a and C-M-e
before the first headline.

13 months agoox-html.el: Rename a property (complete commit 2752ef1c4b)
Bastien Guerry [Sun, 3 Mar 2013 05:34:35 +0000]
ox-html.el: Rename a property (complete commit 2752ef1c4b)

Thanks to Sébastien Vauban for reporting this.

13 months agoox-html.el (html): Remove :html-htmlized-css-url :options-alist
Bastien Guerry [Sun, 3 Mar 2013 05:30:43 +0000]
ox-html.el (html): Remove :html-htmlized-css-url :options-alist

* ox-html.el (html): Remove :html-htmlized-css-url
:options-alist.

13 months agotest-ob-perl: add a few perl babel tests
Achim Gratz [Sat, 2 Mar 2013 21:39:42 +0000]
test-ob-perl: add a few perl babel tests

* testing/lisp/test-ob-perl.el: New file with a few tests of the perl
  babel integration.

13 months agoob-perl: implement results interpretation and improve wrapper
Achim Gratz [Sun, 24 Feb 2013 22:13:07 +0000]
ob-perl: implement results interpretation and improve wrapper

* lisp/ob-perl.el (org-babel-execute:perl): Pass `result-params´
  through to `org-babel-perl-evaluate´.
* lisp/ob-perl.el (org-babel-variable-assignments:perl): Add "my" to
  variable declaration so that it becomes compatible with "use
  strict;".
* lisp/ob-perl.el (org-babel-varariable-assignments:perl): Use new
  internal formatting function `org-babel-perl--var-to-perl´.
* lisp/ob-perl.el (org-babel-perl--var-to-perl): New internal function, uses Perl
  non-interpolating quoting on the string that defines the variable to
  suppress spurious interpretation of it as Perl syntax.
* lisp/ob-perl.el (org-babel-perl-wrapper-method): Use a block and
  declare all variables as "my", also use Perl quoting throughout.
  Redirect STDOUT to the temporary file so that simply "print" will
  put the results there.  Check the return value and output in table
  form if it is an ARRAY ref, otherwise print it without a final
  newline.
* lisp/ob-perl.el (org-babel-perl-preface): Content of this variable
  is prepended to body before invocation of perl.
* lisp/ob-perl.el (org-babel-perl-evaluate): Rename input parameter
  body to ibody and let-bind body to concatentation of
  org-babel-perl-preface and ibody.  Implement results interpretation
  so that tables are easier to produce.

Following suggestions by Daniel M. German in
http://thread.gmane.org/gmane.emacs.orgmode/66855.

13 months agoob-eval: make org-babel--shell-command-on-region internal and simplify
Achim Gratz [Sun, 24 Feb 2013 16:15:36 +0000]
ob-eval: make org-babel--shell-command-on-region internal and simplify

* lisp/ob-eval.el (org-babel-eval): Use simplified version of
  `org-babel--shell-command-on-region´, we are the only caller of this
  function.
* lisp/ob-eval.el (org-babel--shell-command-on-region): Replace
  `org-babel-shell-command-on-region´ with a much more simplified
  internal version, remove superfluous DOCSTRING and interactive
  clause, strip out all conditionals which were never used.  Prevent
  deletion of temporary input file to aid debugging when the symbol
  `org-babel--debug-input´ is bound and has non-nil value.

13 months agoUpdate `org-export-backends'
Nicolas Goaziou [Sat, 2 Mar 2013 21:48:09 +0000]
Update `org-export-backends'

* lisp/org.el (org-export-backends): Update variable.  `infojs' was
  merged into ox-html and `freemind' was added.

13 months agoAdd Freemind Mindmap Back-End for Org Export Engine
Jambunathan K [Sat, 2 Mar 2013 05:30:46 +0000]
Add Freemind Mindmap Back-End for Org Export Engine

* contrib/lisp/ox-freemind.el: New file.

* lisp/ox-html.el (org-html--tags, org-html-format-headline)
(org-html--format-toc-headline, org-html-checkbox)
(org-html-table-cell, org-html-timestamp)
(org-html-verse-block, org-html-special-string-regexps):
Replace named HTML entities with their numeric counterparts.
This keeps Freemind backend happy.

13 months agoox-org: Silence byte-compiler
Nicolas Goaziou [Sat, 2 Mar 2013 18:31:12 +0000]
ox-org: Silence byte-compiler

13 months agoMerge branch 'master-wip3'
Bastien Guerry [Sat, 2 Mar 2013 17:59:55 +0000]
Merge branch 'master-wip3'

13 months agoMerge branch 'maint'
Bastien Guerry [Sat, 2 Mar 2013 17:59:47 +0000]
Merge branch 'maint'

Conflicts:
lisp/org-clock.el

13 months agoox-org.el: Handle :htmlized-source in publishing projects
Bastien Guerry [Sat, 2 Mar 2013 17:46:07 +0000]
ox-org.el: Handle :htmlized-source in publishing projects

* ox-org.el (org-org-htmlized-css-url): Rename from
`org-html-htmlized-org-css-url' and moved here from
ox-html.el.
(org-org-publish-to-org): Handle :htmlized-source in
publishing projects.

13 months agoEnsure that new exporter gets tested in batch mode
Achim Gratz [Sat, 2 Mar 2013 17:26:13 +0000]
Ensure that new exporter gets tested in batch mode

* testing/org-test.el: Require ox so that these tests will be run
  during batch test.

13 months agofix 17131cbf63
Achim Gratz [Sat, 2 Mar 2013 17:10:39 +0000]
fix 17131cbf63

* lisp/ob-tangle.el (org-babel-tangle): Do not change signature, a nil
  arg is even documented in the manual.
* lisp/org-src.el: Change declaration of `org-babel-tangle´ to "arg"
  for first argument.

13 months agoox-html.el: Use HTML_HEAD instead of HTML_STYLE and fix some variable names
Bastien Guerry [Sat, 2 Mar 2013 17:05:16 +0000]
ox-html.el: Use HTML_HEAD instead of HTML_STYLE and fix some variable names

* ox-html.el (org-html-style-default): Update docstring.
(org-html-infojs-install-script, org-html--build-style):
Update property names.
(org-html-head-include-scripts)
(org-html-head-include-default-style, org-html-head):
Respectively rename from `org-html-style-include-scripts',
`org-html-style-include-default' and `org-html-style', now
obsolete.
(org-html-style-extra): Delete.

Thanks to those who pointed at this problem on the mailing list.