[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Org Clock Table / Subtree Export subtle bug
From: |
Bastien |
Subject: |
Re: [O] Org Clock Table / Subtree Export subtle bug |
Date: |
Sun, 29 Apr 2012 01:19:36 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
Hi Mike,
thanks very much for the detailed bug report.
Mike McLean <address@hidden> writes:
> The general symptom is that if:
>
> You have org-update-all-dblocks added
> to org-export-first-hook with the goal of ensuring that dynamic
> blocks are current before every export; AND
> You are exporting only a region of the file, for example
> using C-c C-e 1 b (buffer/subtree export)
>
> The Mark terminating the end of the region to be exported is carried
> into the org-clocktable-write-default formatting function and the
> call of (backward-delete-char 1) on line 2352 oforg-clock.el deletes
> a region (between the Mark of the initial call and point, which is
> immediately before the #+END: construct of the clock table). Deletion
> of the #+END: construct malforms the clock table and ultimately the
> export fails leaving the Org file is a corrupt state.
The trick is to use (let ((delete-active-region nil)) ...) so that
the active region is not deleted by such adjustments.
I pushed a fix.
Thanks!
--
Bastien