org-clock.el: Fix bug in `org-clocktable-write-default'.

* org-clock.el (org-clocktable-write-default): Temporarily
disable `delete-active-region' so that we don't accidently
delete an active region when exporting a subtree/region.

Thanks to Mike McLean for the detailed bug report.
This commit is contained in:
Bastien Guerry 2012-04-29 01:18:35 +02:00
parent 008689cc79
commit c306dbe388
1 changed files with 3 additions and 1 deletions

View File

@ -2344,7 +2344,9 @@ from the dynamic block definition."
hlc (org-minutes-to-hh:mm-string (nth 3 entry)) hlc ; time
"|\n" ; close line
)))))
(backward-delete-char 1)
;; When exporting subtrees or regions the region might be
;; activated, so let's disable ̀delete-active-region'
(let ((delete-active-region nil)) (backward-delete-char 1))
(if (setq formula (plist-get params :formula))
(cond
((eq formula '%)