Hi Ian, the idea behind the patch looks good, although the patch needs some clean-up (adding a Changelog entry, fixing the typos in the docstring, etc.)
Also, the patch goes beyond the 15 lines: we cannot accept it until you sign the FSF copyright assignment. If you're willing to do this, please fill this form: http://orgmode.org/cgit.cgi/org-mode.git/plain/request-assign-future.txt Eric, can you have a look and let us know if this is good to apply to master in a rewritten version? Thanks, -- Bastien