Hi Thomas, thanks for the patch, it looks good. We can only accept it if you sign the FSF copyright assignment here:
http://orgmode.org/cgit.cgi/org-mode.git/plain/request-assign-future.txt Thanks in advance for doing so, and let's commit your change when the FSF confirm your assignment (it may take one month or so.) Best, -- Bastien