2 years ago* org-capture.el (org-capture-get-indirect-buffer): Fix XEmacs
Michael Sperber [Wed, 26 Oct 2011 17:43:07 +0000]
* org-capture.el (org-capture-get-indirect-buffer): Fix XEmacs
compatibility issue when creating an indirect buffer.


2 years agosupport LATEX_CLASS_OPTIONS in #+SETUPFILE
Christophe Rhodes [Wed, 26 Oct 2011 15:13:20 +0000]

* lisp/org-exp.el (org-infile-export-plist): Handle LATEX_CLASS_OPTIONS
  the same way than LATEX_CLASS.

2 years agoBugfix: make `org-return' detect 'org-link face properly.
Bastien Guerry [Wed, 26 Oct 2011 17:20:12 +0000]
Bugfix: make `org-return' detect 'org-link face properly.

* org.el (org-return): Check the presence of the 'org-link
face even in contexts where there is more than one face.

Thanks to Maximilian Matthé for reporting this bug.

2 years agoAddition of default-description parameter to org-insert-link
Yuri Lenskiy [Wed, 26 Oct 2011 21:47:46 +0000]
Addition of default-description parameter to org-insert-link

This patch, against the stable 7.7 branch version of org.el, adds a
default-description argument to org-insert-link that, if non-nil, will
become the default description.

- Yuri Lenskiy

2 years agoadding list of SQL specific header argument names which should be inherited
Eric Schulte [Wed, 26 Oct 2011 12:19:54 +0000]
adding list of SQL specific header argument names which should be inherited

* lisp/ob-sql.el (org-babel-header-arg-names:sql): SQL specific header
  argument names which should be inherited.

2 years agoHave a more informative return value for `org-in-block-p'
Nicolas Goaziou [Wed, 26 Oct 2011 08:45:28 +0000]
Have a more informative return value for `org-in-block-p'

* lisp/org.el (org-in-block-p): Return matched name of block, if any.
  It can be useful when a list of block names is provided as an argument.

2 years agoFix a regexp in HTML and DocBook exporters
Nicolas Goaziou [Tue, 25 Oct 2011 14:39:31 +0000]
Fix a regexp in HTML and DocBook exporters

* lisp/org-docbook.el (org-export-as-docbook): Fix regexp.
* lisp/org-html.el (org-export-as-html): Fix regexp.

The erroneous regexp would identify the string " *" as an headline.

2 years agoMake `diary-class' skip hlidays if the user asks for it.
Carsten Dominik [Tue, 25 Oct 2011 14:07:01 +0000]
Make `diary-class' skip hlidays if the user asks for it.

* lisp/org-agenda.el (org-class): Allow holidays to be skipped.

2 years agoMark `org-diary-class obsolete'
Carsten Dominik [Tue, 25 Oct 2011 14:00:06 +0000]
Mark `org-diary-class obsolete'

2 years agoob-shen: fix two compilation errors
Eric Schulte [Tue, 25 Oct 2011 02:00:02 +0000]
ob-shen: fix two compilation errors

* lisp/ob-shen.el (org-babel-execute:shen): Fix two compilation

2 years agoadding two new links to the template for inserting empty code blocks
Eric Schulte [Tue, 25 Oct 2011 01:42:48 +0000]
adding two new links to the template for inserting empty code blocks

* doc/org.texi (Literal examples): A new link to the template for
  inserting empty code blocks.
  (Structure of code blocks): A new link to the template for inserting
  empty code blocks.

2 years agoMinor docstring fix.
Bastien Guerry [Mon, 24 Oct 2011 21:47:59 +0000]
Minor docstring fix.

Thanks to Peter Münster for spotting this.

2 years agoAgenda: Allow filter list without category in org-agenda-to-appt
Peter Münster [Mon, 24 Oct 2011 18:52:45 +0000]
Agenda: Allow filter list without category in org-agenda-to-appt

* lisp/org-agenda.el (org-agenda-to-appt): Make sure filter-items are
strings before calling `string-match'.

Now it's possible to use (org-agenda-to-appt t '((headline "string"))).


2 years agoMove cmds and user vars in lparse namespace to odt namespace
Jambunathan K [Mon, 24 Oct 2011 18:53:42 +0000]
Move cmds and user vars in lparse namespace to odt namespace

* contrib/lisp/org-odt.el
(org-export-odt-preferred-output-format): Use
`org-lparse-reachable-format'.  Update docstring.
(org-export-odt-convert-capabilities): New customizable
variables.  Migrated from org-lparse.el.
(org-export-odt-convert): New.  Replaces `org-lparse-convert'.
(org-odt-get): Handle options - `CONVERT-METHOD' and

* contrib/lisp/org-lparse.el (org-lparse-and-open)
(org-replace-region-by, org-lparse-region, org-lparse): Made
these functions non-interactive.
(org-lparse-convert): Removed.  Splitted it in to
`org-lparse-convert-read-params' and `org-lparse-do-convert'.
(org-lparse-convert-read-params, org-lparse-do-convert): New
helper routines.
(org-lparse-convert-processes, org-lparse-convert-process)
(org-lparse-convert-capabilities): Removed.  Migrated to
(org-lparse-get-other-backends, org-lparse-get-converter)
(org-lparse-all-backends): Removed these helper routines.
(org-lparse-reachable-formats, org-lparse-reachable-p): New
helper routines.
(org-do-lparse): Misc changes.

org-lparse.el is likely to be replaced by Nicolas Goazious's
backend.  So, with future-proofing in view, hide org-lparse.el
from direct user contact.  This amounts to retiring all
interactive functions and customizable variables that have
org-lparse as prefix and migrating their existing functinality
to the odt namespace.  This set of changes does precisely

2 years agoFix header prefixes for trac wiki.
Robert P. Goldman [Fri, 21 Oct 2011 16:13:29 +0000]
Fix header prefixes for trac wiki.

trac wiki has hard limit on number of headers.  Need space before
macro characters in trac wiki.

Add a couple of TODO comments.

2 years agoFixed section-header-prefix for trac wiki.
Robert P. Goldman [Fri, 21 Oct 2011 16:13:28 +0000]
Fixed section-header-prefix for trac wiki.

2 years agoKill the HTML exporter.
Robert P. Goldman [Fri, 21 Oct 2011 16:13:27 +0000]
Kill the HTML exporter.

This is done better in core org-mode.

2 years agoorg-footnote: Remove text-properties from label
Nicolas Goaziou [Mon, 24 Oct 2011 06:10:56 +0000]
org-footnote: Remove text-properties from label

* lisp/org-footnote.el (org-footnote-at-reference-p,
org-footnote-at-definition-p): Remove text-properties from label.

2 years ago* org-html.el (org-export-as-html): Add a "title" meta tag.
Bastien Guerry [Sun, 23 Oct 2011 21:39:23 +0000]
* org-html.el (org-export-as-html): Add a "title" meta tag.

2 years agoorg-agenda.el (org-agenda-to-appt): Better filtering.
Bastien Guerry [Sun, 23 Oct 2011 21:21:34 +0000]
org-agenda.el (org-agenda-to-appt): Better filtering.

* org-agenda.el (org-agenda-to-appt): Allow to refine the
scope of entries to pass to `org-agenda-get-day-entries' and
allow to filter out entries using a function.

Thanks to Peter Münster for raising a related issue and to
Tassilo Horn for this idea.

2 years agoMerge branch 'master' of
Bastien Guerry [Sun, 23 Oct 2011 21:03:03 +0000]
Merge branch 'master' of

2 years agoSilence byte-compiler.
Bastien Guerry [Sun, 23 Oct 2011 20:45:53 +0000]
Silence byte-compiler.

2 years agoorg-agenda: Fix small display bug.
Nicolas Goaziou [Sun, 23 Oct 2011 20:42:48 +0000]
org-agenda: Fix small display bug.

* lisp/org-agenda.el: Fix small display bug.

2 years agoFix regexps for headlines
Nicolas Goaziou [Sun, 23 Oct 2011 16:14:21 +0000]
Fix regexps for headlines

* lisp/org.el (org-set-regexps-and-options): Fix small bug introduced
  by commit dfcb6faef11a2439b56b18a6289803361d402130.

2 years agoDefine customizable group org-export-odt
Jambunathan K [Sun, 23 Oct 2011 08:14:58 +0000]
Define customizable group org-export-odt

* contrib/lisp/org-odt.el (org-export-odt): Define the missing
customizable group and hook it up with `org-export'
customizable group.
(org-export-odt-preferred-output-format): Fix the `:group'

2 years agoorg-odt.el: Rename some variables that affect inline images
Jambunathan K [Sun, 23 Oct 2011 07:50:41 +0000]
org-odt.el: Rename some variables that affect inline images

* contrib/lisp/org-odt.el (org-export-odt-inline-images):
Renamed from `org-odt-export-inline-images'.  Also removed
(org-export-odt-inline-image-extensions): Renamed from
`org-odt-export-inline-image-extensions'.  Also fixed the
`:group' property.
(org-odt-format-org-link): Propagate above changes.

2 years agoMake org-export-odt-embed-images internal
Jambunathan K [Sun, 23 Oct 2011 07:21:24 +0000]
Make org-export-odt-embed-images internal

* contrib/lisp/org-odt.el (org-export-odt-embed-images):
Removed customizability of this variable.

2 years agoRename org-export-odt-use-htmlfontify to org-export-odt-fontify-srcblocks
Jambunathan K [Sun, 23 Oct 2011 07:10:13 +0000]
Rename org-export-odt-use-htmlfontify to org-export-odt-fontify-srcblocks

* contrib/lisp/org-odt.el (org-export-odt-use-htmlfontify):
Replaced with `org-export-odt-fontify-srcblocks'.
(org-export-odt-fontify-srcblocks): Renamed from
(org-odt-format-source-code-or-example): Rename above

2 years agoRemove org-export-odt-use-bookmarks-for-internal-link
Jambunathan K [Sun, 23 Oct 2011 06:59:49 +0000]
Remove org-export-odt-use-bookmarks-for-internal-link

* contrib/lisp/org-odt.el
(org-export-odt-use-bookmarks-for-internal-links): Removed
unused variable.

2 years agoProvide more consistent regexps for headlines
Nicolas Goaziou [Wed, 24 Aug 2011 23:58:29 +0000]
Provide more consistent regexps for headlines

* lisp/org-agenda.el (org-search-view): Simplify regexp.
(org-agenda-get-todos): Use new format string.
* lisp/org-archive.el (org-archive-all-done): Simplify regexp.
* lisp/org-ascii.el (org-export-as-ascii): More accurate regexp.
* lisp/org-colview-xemacs.el (org-columns-capture-view): Use new
  format string and new string.
* lisp/org-colview.el (org-columns-capture-view): Use new format
  string and new string.
* lisp/org-docbook.el (org-export-as-docbook): More accurate
  regexp.  Also use new regexp to match generic headlines.
* lisp/org-exp.el (org-export-protect-quoted-subtrees): More accurate
  regexp.  Also use new regexp to match generic headlines.
* lisp/org-html.el (org-export-as-html): More accurate regexp.  Also
  use new regexp to match generic headlines.
* lisp/org-mouse.el (org-mouse-match-todo-keyword): Removed unused
  and now erroneous function.
* lisp/org.el (org-heading-regexp, org-heading-keyword-regexp-format):
  New variables.
(org-set-regexps-and-options): Create regexps according to the
following rule: use spaces only to separate elements from an headline,
while allowing mixed tabs and spaces for any indentation job.
(org-nl-done-regexp, org-looking-at-done-regexp): Removed variables.
(org-set-font-lock-defaults): Fontify again headlines with a keyword
and no other text.  Use new format strings.
(org-get-heading, org-toggle-comment, org-prepare-agenda-buffers,
org-toggle-fixed-width-section): Use new format string.
(org-todo): More accurate regexps.
(org-point-at-end-of-empty-headline): Simplify regexp.
(org-insert-heading): Headline can sometimes be nil.

This patch attempts to reduce the number of hard-coded headlines, by
providing two format strings and one generic string to cover most of
the cases of headline construction.

2 years agoAvoid conflict between bulk command and loop-over-headlines
David Maus [Thu, 25 Aug 2011 04:25:34 +0000]
Avoid conflict between bulk command and loop-over-headlines

* org-agenda.el (org-agenda-bulk-action): Bind
`org-loop-over-headlines-in-active-region' to nil to avoid conflict
with bulk command.

2 years agoSkip invisible headlines when mapping over headlines in active region
David Maus [Thu, 25 Aug 2011 04:25:33 +0000]
Skip invisible headlines when mapping over headlines in active region

* org.el (org-deadline, org-schedule): Skip invisible headlines when
mapping over headlines in active region.

2 years agoNew customization variable: Loop over headlines in active region
David Maus [Thu, 25 Aug 2011 04:25:32 +0000]
New customization variable: Loop over headlines in active region

* org.el (org-loop-over-headlines-in-active-region): New customization
variable. Loop over headlines in active region.
(org-schedule, org-deadline): Apply to headlines in region depending
on new customization variable.

2 years agoImmediately return if scope is 'region but no region is active
David Maus [Tue, 30 Aug 2011 04:29:29 +0000]
Immediately return if scope is 'region but no region is active

* org.el (org-map-entries): Immediately return if scope is 'region but
no region is active.

2 years agoExtend scope 'region to include entire body of last headline in active region
David Maus [Tue, 30 Aug 2011 04:22:12 +0000]
Extend scope 'region to include entire body of last headline in active region

* org.el (org-map-entries): Extend scope 'region to include
entire body of last headline in active region.

2 years agoob-calc.el: Remove (require 'calc-store).
Bastien Guerry [Sat, 22 Oct 2011 13:34:06 +0000]
ob-calc.el: Remove (require 'calc-store).

2 years agoob.el: Fix byte-compiler warning about free variable.
Bastien Guerry [Sat, 22 Oct 2011 13:28:01 +0000]
ob.el: Fix byte-compiler warning about free variable.

2 years ago* org-src.el (org-edit-src-code): Fix typo-bug.
Bastien Guerry [Sat, 22 Oct 2011 13:26:36 +0000]
* org-src.el (org-edit-src-code): Fix typo-bug.

This is leftover from Tassilo's previous patch applied today.

2 years agoRename `org-format-agenda-item' to `org-agenda-format-item'.
Bastien Guerry [Sat, 22 Oct 2011 13:08:33 +0000]
Rename `org-format-agenda-item' to `org-agenda-format-item'.

* org.el (org-format-agenda-item, org-scan-tags): Rename
`org-format-agenda-item' to `org-agenda-format-item'.

* org-agenda.el (org-search-view)
(org-get-entries-from-diary, org-agenda-get-todos)
(org-agenda-get-timestamps, org-agenda-get-sexps)
(org-agenda-get-progress, org-agenda-get-deadlines)
(org-agenda-get-scheduled, org-agenda-get-blocks)
(org-agenda-format-item, org-agenda-add-time-grid-maybe)
(org-agenda-add-entry-to-org-agenda-diary-file): Rename
`org-format-agenda-item' to `org-agenda-format-item'.

Using the `org-agenda-' prefix makes more sense here.

2 years agoSilent byte-compiler about `category-pos'.
Bastien Guerry [Sat, 22 Oct 2011 13:04:33 +0000]
Silent byte-compiler about `category-pos'.

* org-agenda.el: Replace `category-pos' by `org-category-pos'
to silent byte-compiler.

2 years ago* org.el: Declare external function `cdlatex-compute-tables'.
Bastien Guerry [Sat, 22 Oct 2011 13:01:02 +0000]
* org.el: Declare external function `cdlatex-compute-tables'.

* org.el (cdlatex-compute-tables): Declare external function

2 years agoorg-latex.el: Fix problem when matching #+LaTeX_CLASS.
Bastien Guerry [Sat, 22 Oct 2011 10:07:43 +0000]
org-latex.el: Fix problem when matching #+LaTeX_CLASS.

* org-latex.el: (org-export-latex-set-initial-vars): Fix problem when
  matching #+LaTeX_CLASS.

Thanks to Torsten Wagner for spotting this.

2 years agoAdded trac-wiki and tikiwiki export settings.
Robert P. Goldman [Fri, 21 Oct 2011 21:13:26 +0000]
Added trac-wiki and tikiwiki export settings.

2 years agobind org-export-current-backend in generic exporter.
Robert P. Goldman [Fri, 21 Oct 2011 21:13:25 +0000]
bind org-export-current-backend in generic exporter.

This is needed for org-export-preprocess-string to function correctly.

2 years agoReplace org-mode-p with usual (eq major-mode 'org-mode) check
Tassilo Horn [Tue, 11 Oct 2011 07:07:27 +0000]
Replace org-mode-p with usual (eq major-mode 'org-mode) check

Additionally, replace one

  (or (org-mode-p) (derived-mode-p 'org-mode))


  (derived-mode-p 'org-mode)

cause that is reflexive anyway (returns true, if the current mode is

Delete one check testing for org-mode or org derived mode

2 years agoAccurate description of info hyperlink format
Rafael Laboissiere [Mon, 10 Oct 2011 23:15:37 +0000]
Accurate description of info hyperlink format

Hyperlinks in the form "info:file#node" work with plain spaces in the
"node" part and do not need to have spaces encoded as %20.  This is
the case for me, who is using the Debian emacs-snapshot package,
version 20110926-1.


2 years agoAdd footnote on how the hyperlink text is searched in Org files
Rafael Laboissiere [Mon, 10 Oct 2011 22:58:36 +0000]
Add footnote on how the hyperlink text is searched in Org files

* org.texi (External links): Add footnote on how the behavior of the
text search in Org files are controled by the variable

This change is necessary in order to avoid misleading the user as
regards of the behavior of the search, in particular because the
default value of org-link-search-must-match-exact-headline is


2 years agoFix typos in variable description
Rafael Laboissiere [Mon, 10 Oct 2011 22:22:09 +0000]
Fix typos in variable description

* lisp/org.el (org-link-search-must-match-exact-headline): Fix typos.


2 years agoorg-latex.el (org-export-latex-make-header): Add some hyperref options.
Bastien Guerry [Sat, 22 Oct 2011 09:05:28 +0000]
org-latex.el (org-export-latex-make-header): Add some hyperref options.

* org-latex.el (org-export-latex-make-header): Add some hyperref

Thanks to Mikhail Titov for a preliminary version of this patch.

2 years agoVariable publishing-directory? (resent with patch as attachment)
Kai Tetzlaff [Thu, 18 Aug 2011 13:17:56 +0000]
Variable publishing-directory? (resent with patch as attachment)

Bastien <> writes:

Hi Bastien,

> The patch looks good but I'd like to understand it better.
> Can you send an example configuration working with your patch?

In org-publish-project-alist, i have HTML publishing projects which
should be published to different target directories depending on e.g.
where emacs is running (which i determine in my init files using the MAC
address of the default GW, the name the machine, ...).

Here is an example: At home, i publish to a local directory
(:publishing-directory "~/tmp/publish-test") but at work i would like to
publish directly to a webserver (:publishing-directory
"/plinkx:doxydoc:~/public_html/publish-test" - this is on w32, using
tramps PuTTY/plink). To avoid having to change the definition of the
publishing project when i change locations i would like to construct the
actual value of :publishing-directory by calling a function:

         :base-directory "~/Documents/Work/RS"
         :recursive t
         :base-extension "org"
         :exclude-tags ("intern")
         :publishing-directory '(expand-file-name "publish-test" kt:org-default-publishing-dir)
         :publishing-function org-publish-org-to-html)

Depending on the location i'm in, 'kt:org-default-publishing-dir' would
be set to either "~/tmp" or "/plinkx:doxydoc:~/public_html". Without the
patch, the example above does not work as the value of
:publishing-directory does not get evaluated.

> Also, please try to send git patch using these conventions:
> Thanks a lot!

Thanks for the hint. I've attached a revised version of the patch which
includes a changelog/commit msg - i hope that works for you.

Publish: allow dynamic construction of the publish destination.

* org-publish.el (org-publish-file): Added 'eval'ing the value of the
 :publishing-directory property before using it as destination of the
 publishing project. This allows to construct the publish destination
 directory dynamically at run-time using the return value of a


2 years agoorg-agenda.el (org-agenda-list-stuck-projects): Fix tiny bug.
Bastien Guerry [Sat, 22 Oct 2011 08:13:11 +0000]
org-agenda.el (org-agenda-list-stuck-projects): Fix tiny bug.

* org-agenda.el (org-agenda-list-stuck-projects): Fix tiny bug.

This bug was introduced by a typo in Michael's patch for XEmacs

2 years agoAgenda: Add missing option, document time stamp movement to future
Carsten Dominik [Sat, 22 Oct 2011 06:31:18 +0000]
Agenda: Add missing option, document time stamp movement to future

* lisp/org-agenda.el (org-agenda-move-date-from-past-immediately-to-today):
New option.
(org-agenda-date-later): Improve the logical structure.

* doc/org.texi (Agenda commands): Document that S-right on a line
representing a past date will immediately shift that date to today.

2 years agoMerge branch 'master' of
Carsten Dominik [Fri, 21 Oct 2011 21:32:35 +0000]
Merge branch 'master' of

2 years agoMaintain XEmacs compatibility
Carsten Dominik [Fri, 21 Oct 2011 20:36:53 +0000]
Maintain XEmacs compatibility

* lisp/ob-calc.el (featurep): Require calc-store.
* lisp/org-agenda.el (org-agenda-list-stuck-projects): Fix regexp
special handling.
* lisp/org-compat.el (fboundp): Support for XEmacs.
* lisp/org-exp.el (org-export): Protect XEmacs from `(redisplay)' call.
* lisp/org-footnote.el (org-footnote-re): Optimize macro processing.
* lisp/org.el (org-set-autofill-regexps): Xemacs compatibility.

Patch by Michael Sperber, checked and slightly modified by Carsten.

2 years agotwo more quick fixes
Eric Schulte [Fri, 21 Oct 2011 17:35:41 +0000]
two more quick fixes

* lisp/ob.el (org-babel-balanced-split): Balance both [] and ()
  (org-babel-parse-header-arguments): Be sure to replace removed ":"

2 years agoquick fix for a tiny bug
Eric Schulte [Fri, 21 Oct 2011 17:21:39 +0000]
quick fix for a tiny bug

* lisp/ob.el (org-babel-parse-header-arguments): Quick fix for a tiny bug.

2 years agoNow allow multiple "var" specifications behind a single ":var"
Eric Schulte [Fri, 21 Oct 2011 17:15:06 +0000]
Now allow multiple "var" specifications behind a single ":var"

* lisp/ob.el (org-babel-params-from-properties): Now splits multiple
  var arguments behind a single ":var".
  (org-babel-balanced-split): Separated balanced splitting of strings
  out into a new function.
  (org-babel-parse-multiple-vars): Splits multiple var arguments
  behind a single ":var".

2 years agoMerge branch 'master' of
Bastien Guerry [Fri, 21 Oct 2011 15:57:40 +0000]
Merge branch 'master' of

2 years agoorg.el: Enable recursive minibuffers in `org-completing-read'.
Bastien Guerry [Fri, 21 Oct 2011 15:46:37 +0000]
org.el: Enable recursive minibuffers in `org-completing-read'.

org.el: (org-completing-read): Enable recursive minibuffers and add
the `C-c !' key in the minibuffer local map.

Thanks to Skip Collins for the idea and to Nick Dokos for the

2 years agoMerge branch 'master' of
Carsten Dominik [Fri, 21 Oct 2011 14:58:01 +0000]
Merge branch 'master' of

2 years agoorg.el: Remap `outline-promote' and `outline-demote' keys.
Bastien Guerry [Fri, 21 Oct 2011 14:21:49 +0000]
org.el: Remap `outline-promote' and `outline-demote' keys.

* org.el: Remap `outline-promote' and `outline-demote' keys to
`org-promote-subtree' and `org-demote-subtree'.

Thanks to Michael Brand for the suggestion.

2 years agoCheck if marker is valid before use
Leo [Fri, 21 Oct 2011 00:56:31 +0000]
Check if marker is valid before use

* lisp/org-agenda.el (org-agenda-do-context-action): Check if marker
is valid before use.

2 years agoFix shifting of data ranges.
Carsten Dominik [Fri, 21 Oct 2011 08:07:02 +0000]
Fix shifting of data ranges.

* lisp/org-agenda.el (org-agenda-date-later): Fix shifting of date ranges.

Patch based on code by Niels Giesen.

2 years agoUpdate documentation to reflect removal of #+PROPERTIES
Eric Schulte [Thu, 20 Oct 2011 21:30:07 +0000]
Update documentation to reflect removal of #+PROPERTIES

* doc/org.texi (Buffer-wide header arguments): Update documentation to
  reflect removal of #+PROPERTIES.

2 years agoremoving `org-babel-params-from-buffer' and #+PROPERTIES: entirely
Eric Schulte [Thu, 20 Oct 2011 21:26:43 +0000]
removing `org-babel-params-from-buffer' and #+PROPERTIES: entirely

* lisp/ob.el: Removing `org-babel-params-from-buffer' and
  #+PROPERTIES: entirely.
* lisp/ob-exp.el (org-babel-exp-src-block): Removing
  `org-babel-params-from-buffer' and #+PROPERTIES: entirely.
* lisp/ob-lob.el (org-babel-lob-execute): Removing
  `org-babel-params-from-buffer' and #+PROPERTIES: entirely.

2 years agoremoving #+BABEL: lines in favor of general #+PROPERTIES: lines
Eric Schulte [Thu, 20 Oct 2011 19:31:20 +0000]
removing #+BABEL: lines in favor of general #+PROPERTIES: lines

* lisp/ob.el (org-babel-params-from-buffer): Removing #+BABEL: lines
  in favor of general #+PROPERTIES: lines.

* doc/org.texi (Buffer-wide header arguments): Removing documentation
  of the defunct #+BABEL: structure.

2 years agoUpdate default value of org-export-odt-table-styles
Jambunathan K [Thu, 20 Oct 2011 08:57:42 +0000]
Update default value of  org-export-odt-table-styles

* contrib/lisp/org-odt.el (org-export-odt-table-styles): Add
the required table style "OrgEquation".

Continues the following commit:
| commit 861ecb85baf0467610bb6bbdfa985a2f4adaa795
| Author: Jambunathan K <>
| Date:   Sun Sep 18 00:09:06 2011 +0530
| contrib/lisp/org-odt.el: Typeset display equations using tables

2 years agoOrgOdtContentTemplate.xml: Added custom table styles
Jambunathan K [Thu, 20 Oct 2011 08:27:53 +0000]
OrgOdtContentTemplate.xml: Added custom table styles

* contrib/odt/styles/OrgOdtContentTemplate.xml: Added styles
for working with applying table templates.

The exporter with it's factory settings doesn't depend on the
availability of these styles for formatting - i.e., these
styles should ideally be created by the user himself depending
on his tastes.  However considering the complexity & verbosity
of these styles these have been included to:
- illustrate how the table templating facilitites can be
  exploited by the user
- enable unit-testing of table template changes

Complements the following commit:
| commit e73bca63cf658f8cb659ab6d00e4e93afaba8b42
| Author: Jambunathan K <>
| Date:   Tue Sep 13 19:37:13 2011 +0530
| org-odt.el: Support for styling of tables using table templates

2 years agoMerge branch 'master' of
Carsten Dominik [Thu, 20 Oct 2011 07:39:30 +0000]
Merge branch 'master' of

2 years agoob-sql: insert into a temporary buffer
Eric Schulte [Wed, 19 Oct 2011 18:07:39 +0000]
ob-sql: insert into a temporary buffer

* lisp/ob-sql.el (org-babel-execute:sql): Insert into a temporary

2 years agoorg-mime: use dvipng for inline images when export to html mail
Eric Schulte [Wed, 19 Oct 2011 14:29:03 +0000]
org-mime: use dvipng for inline images when export to html mail

* contrib/lisp/org-mime.el (org-mime-htmlize): Use dvipng for inline
  images when export to html mail.

2 years agoAdd a new option #+ODT_STYLES_FILE:...
Jambunathan K [Wed, 19 Oct 2011 17:42:43 +0000]
Add a new option #+ODT_STYLES_FILE:...

* contrib/lisp/org-odt.el: Introduce a new option
"#+ODT_STYLES_FILE: ..." for per-file setting of
(org-export-odt-styles-file): Mention above option in
(org-odt-save-as-outfile): Honor above option.

2 years agoMake sure cdlatex customization is taken into account properly
Carsten Dominik [Wed, 19 Oct 2011 16:56:13 +0000]
Make sure cdlatex customization is taken into account properly

* lisp/org.el (org-cdlatex-mode): Run cdlatex-mode-hook and update
the internal cdlatex tables.

2 years agoFix a crash in org-odt-is-formula-link-p
Jambunathan K [Wed, 19 Oct 2011 16:46:59 +0000]
Fix a crash in org-odt-is-formula-link-p

* contrib/lisp/org-odt.el (org-odt-is-formula-link-p): Trivial
change to avoid a crash.

2 years agoob-sql returns literal results when requested
Eric Schulte [Tue, 18 Oct 2011 16:15:04 +0000]
ob-sql returns literal results when requested

* lisp/ob-sql.el (org-babel-execute:sql): Respect literal-results options.

2 years agofix multi-table bug in code block colname and rowname handling
Eric Schulte [Tue, 18 Oct 2011 16:08:39 +0000]
fix multi-table bug in code block colname and rowname handling

  Thanks to Nick Dokos for suggesting this fix

* lisp/ob.el (org-babel-disassemble-tables): Fix multi-table bug in
  code block colname and rowname handling.

2 years agoorg-odt.el: Don't corrupt styles.xml while applying outline numbering
Jambunathan K [Tue, 18 Oct 2011 11:25:27 +0000]
org-odt.el: Don't corrupt styles.xml while applying outline numbering

* contrib/lisp/org-odt.el
(org-odt-configure-outline-numbering): Tighten the regular
expression that matches "<text:outline-level-style ...>"

Fixes bug reported here

2 years agoFix Emacs 24 compatibility issue with Emacs 24
Tassilo Horn [Thu, 13 Oct 2011 20:05:43 +0000]
Fix Emacs 24 compatibility issue with Emacs 24

* contrib/lisp/org-contacts.el (completion-table-case-fold): Make
completion compatible with Emacs 24Fix org-contacts completion at point (was: org-contacts completion stopped working)

julien Barnier <> writes:

Hi Julien,

>> I use a very recent emacs 24 bzr checkout and org master from git.
>> Not sure who's the culprit.
> Same problem here. After a quick look it seems that there has been a
> recent change in the arguments taken by the completion-table-case-fold
> function in minibuffer.el :

Thanks for the pointer!

> But I don't think I could be able to find a fix by myself.

But I was able, so good teamwork, mate. :-)

--8<---------------cut here---------------start------------->8---
>From d89ca3ce39cd7436e5205744adcf468d9619180f Mon Sep 17 00:00:00 2001
From: Tassilo Horn <>
Date: Thu, 13 Oct 2011 17:02:07 +0200
Subject: [PATCH 2/2] Fix org-contacts completion at point.

2 years agoFix bug in regexp for #+include
Carsten Dominik [Sun, 16 Oct 2011 18:00:23 +0000]
Fix bug in regexp for #+include

* lisp/org-publish.el (org-publish-cache-file-needs-publishing): Fix regexp
to not inlcude newlines.

2 years agoKeep byte compiler happy
Carsten Dominik [Sun, 16 Oct 2011 14:54:52 +0000]
Keep byte compiler happy

2 years agoFix parenthesis error
Carsten Dominik [Sun, 16 Oct 2011 14:51:13 +0000]
Fix parenthesis error

2 years agoRemove table overlays before restart
Carsten Dominik [Sun, 16 Oct 2011 11:38:48 +0000]
Remove table overlays before restart

* lisp/org.el (org-ctrl-c-ctrl-c): Remove table overlays before restart.

2 years agoMatch entities before number, so that \sim2 is fontified correctly
Carsten Dominik [Sun, 16 Oct 2011 11:23:02 +0000]
Match entities before number, so that \sim2 is fontified correctly

* lisp/org.el (org-fontify-entities): Match entities before numbers, as in

2 years agoDoc: Document that trees tagged with ARCHIVE still contribute to clocktable
Carsten Dominik [Sun, 16 Oct 2011 11:12:26 +0000]
Doc: Document that trees tagged with ARCHIVE still contribute to clocktable

* doc/org.texi (The clock table): Mention that ACHIVED trees contribute
to the clock table.

2 years agoAgenda: New behaviour when shifting scheduled date forward.
Carsten Dominik [Sat, 15 Oct 2011 21:37:59 +0000]
Agenda: New behaviour when shifting scheduled date forward.

* lisp/org-agenda.el (org-agenda-date-later): Make pushing forward
a past date to jump immedialtely to today.

2 years agoMove some of the new defcustoms to the customization section
Carsten Dominik [Sun, 16 Oct 2011 08:57:21 +0000]
Move some of the new defcustoms to the customization section

2 years agoPut table style and col sizes under direct user control
Carsten Dominik [Sun, 16 Oct 2011 08:55:28 +0000]
Put table style and col sizes under direct user control

* contrib/lisp/org-lparse.el
(org-lparse-table-get-colalign-info): Renamed
`org-forced-aligns' to `org-col-cookies'.  Renamed local
variable `forced-aligns' to `col-cookies'.
(org-lparse-format-table-row): With the introduction of
`org-col-cookies' property the internal structure of
`org-lparse-table-colalign-info' has changed.  Do the right
thing while setting up col alignment.  Pass on the colwidth
property as horiz-span arg of `TABLE-CELL' callback.

* contrib/lisp/org-odt.el (org-odt-begin-table): Let the table
style be settable throught #+ATTR_ODT line.  By default tables
are configured to occupy 90% of paper width.  This is too big
for smaller tables.  For aesthetic reasons, a user might
prefer that such tables of shorter width and thus specify a
different style.
(org-odt-end-table, org-odt-format-table-cell): Honor colwidth

* contrib/lisp/org-xhtml.el (org-xhtml-format-table-cell): Fix
signature as mandated by changes in TABLE-CELL callback.

See comments in the earlier patch. See also

2 years agoParse and store both col align and col width spec for later use
Carsten Dominik [Sun, 16 Oct 2011 08:54:20 +0000]
Parse and store both col align and col width spec for later use

* lisp/org-exp.el (org-store-forced-table-alignment): Parse
the column cookie for both alignment and width specification.
Store the resulting value in `org-col-cookies' property.
Retire the previously used `org-forced-aligns' property for
consistency.  Renamed local variable `aligns' to `cookies'.
* lisp/org-html.el (org-format-org-table-html): Use
`org-col-cookies'.  Renamed local variable forced-aligns to

This is a preparatory patch.  A backend can look at the colwidth
specification and (at it's discretion) use it to control relative
sizes of individual columns in a table.  At this moment, it is unclear
whether the widths used to control the display of table in Org buffer
can be overloaded to also control the formatting of table in a

Refer following discussion with Matt Price:

2 years agoAdd support for LaTeX to MathML conversion
Carsten Dominik [Sun, 16 Oct 2011 08:52:32 +0000]
Add support for LaTeX to MathML conversion

* lisp/org.el (org-latex-to-mathml-jar-file)
(org-latex-to-mathml-convert-command): New user-customizable
(org-format-latex-mathml-available-p, org-create-math-formula)
(org-format-latex-as-mathml): New functions.
(org-format-latex): Add a new local variable block-type that
notes the nature of the equation - inline or display.
Associate it's value to `org-latex-src-embed-type' property of
dvipng links.  Add mathml as new processing type.

Patch by Jambunathan.

2 years agoRebase: Add tree name to prompt
Sébastien Vauban [Fri, 14 Oct 2011 13:25:14 +0000]
Rebase: Add tree name to prompt

* lisp/org.el (org-refile): Add tree name to prompt.

2 years agoMake it possible to place table captions below the table
Carsten Dominik [Mon, 10 Oct 2011 19:05:03 +0000]
Make it possible to place table captions below the table

* lisp/org-latex.el (org-export-latex-tables): Honor
(org-export-latex-table-caption-above): New option.

Patch by Thomas Dye.

2 years agoorg-odt.el: Treat label resolution failures as soft error
Jambunathan K [Mon, 10 Oct 2011 10:55:08 +0000]
org-odt.el: Treat label resolution failures as soft error

* contrib/lisp/org-odt.el (org-odt-get-label-definition): If a
label cannot be resolved, issue a warning and return nil.
(org-odt-fixup-label-references): Nothing to fixup if a
referenced label is not seen by the odt exporter.

2 years agoorg-odt.el: Abort export if the label referenced is not defined
Jambunathan K [Mon, 10 Oct 2011 08:57:14 +0000]
org-odt.el: Abort export if the label referenced is not defined

* contrib/lisp/org-odt.el (org-odt-get-label-definition):
Throw an error if the label that is being referenced is not
defined elsewhere.

2 years agoRevert "org-odt.el: Remove dependency on a pending patch"
Jambunathan K [Sun, 9 Oct 2011 16:53:11 +0000]
Revert "org-odt.el: Remove dependency on a pending patch"

This reverts commit 13b4f6b2e06a76a52ff006e0a9960c4dcac79087.

2 years agonow including language specific header arg values in insertion options
Eric Schulte [Sun, 9 Oct 2011 15:31:32 +0000]
now including language specific header arg values in insertion options

* lisp/ob.el (org-babel-insert-header-arg): Now including language
  specific header arg values in insertion options.

2 years agoFixed typo in org-babel-insert-header-arg.
Eric Schulte [Sun, 9 Oct 2011 15:11:00 +0000]
Fixed typo in org-babel-insert-header-arg.

  Thanks to Torsten Wagner for pointing this out and for suggesting
  the original feature.

* lisp/ob.el (org-babel-insert-header-arg): Fixed typo.

2 years agoMerge branch 'master' of
Carsten Dominik [Sun, 9 Oct 2011 11:17:58 +0000]
Merge branch 'master' of

2 years agoorg-odt help
Jambunathan K [Tue, 4 Oct 2011 23:29:04 +0000]
org-odt help

> I would like to submit 2 more patches - one to the manual and other to
> org-exp.el.

I am attaching the promised patch to org-exp.el. Can someone review and
commit this change?

Please note that I have withheld the changes to org-odt & co which make
use of this change.

ps: The patch to org.texi will follow soon - maybe in a day or two.

>From 39ab2a263336ba077c7cd6627a3203c55c5bddba Mon Sep 17 00:00:00 2001
From: Jambunathan K <>
Date: Tue, 4 Oct 2011 23:32:35 +0530
Subject: [PATCH] org-exp.el: Enhance `org-export-number-lines' to support odt export

* lisp/org-exp.el (org-export-number-lines): Modified.  Add a
new parameter `preprocess' and use this for backend-agnostic
handling of literal examples.

This parameter is currently exercised only by the odt exporter.  Hint:
See future commits.

2 years agoorg-lparse.el: Remove unecessary link unescape
David Maus [Sun, 11 Sep 2011 14:57:01 +0000]
org-lparse.el: Remove unecessary link unescape

* contrib/lisp/org-lparse.el (org-lparse-format-org-link): Remove unecessary
link unescape.

2 years agoAllow subscripts and superscripts to start at bol
Nicolas Goaziou [Sun, 9 Oct 2011 07:34:47 +0000]
Allow subscripts and superscripts to start at bol

* lisp/org.el (org-match-substring-regexp,
  org-match-substring-with-braces-regexp): Allow subscripts and
  superscripts to start at beginning of line.