Re: [O] Problem: Moving rows in a table changes vsum start and end

2012-09-30 Thread Torsten Wagner
Hi Carsten, > Thorsten, if you look at the manual, there are ways to write this limits of > vsum etc in a way that they are relative to the table boundaries or to > horizontal lines. This is robust agains changes of rows. Yes I know, thanks for pointing to it. It is just an dangerous culprit s

Re: [O] Problem: Moving rows in a table changes vsum start and end

2012-09-29 Thread Achim Gratz
Carsten Dominik writes: > On 29.9.2012, at 12:11, Achim Gratz wrote: >> Any chance that org-element might be helpful in a re-implementation? >> I'm still having that tableheadings branch un-merged since I decided >> that I didn't want to implement it for all the old exporters when they >> were alre

Re: [O] Problem: Moving rows in a table changes vsum start and end

2012-09-29 Thread Carsten Dominik
On 29.9.2012, at 12:11, Achim Gratz wrote: > Carsten Dominik writes: >> I did have a look, and it is very difficult to fix, unfortunately. If >> I find enough time, I will rewrite the whole range parser, but that is >> totally non-trivial. Sorry about that. > > That explains my lack of luck… :

Re: [O] Problem: Moving rows in a table changes vsum start and end

2012-09-29 Thread Achim Gratz
Carsten Dominik writes: > I did have a look, and it is very difficult to fix, unfortunately. If > I find enough time, I will rewrite the whole range parser, but that is > totally non-trivial. Sorry about that. That explains my lack of luck… :-) Any chance that org-element might be helpful in a

Re: [O] Problem: Moving rows in a table changes vsum start and end

2012-09-29 Thread Bastien
Carsten Dominik writes: > I did have a look, and it is very difficult to fix, unfortunately. If I > find enough time, I will rewrite the whole range parser, but that is > totally non-trivial. Sorry about that. Er... Achim, forget about my own proposal then :) (Still, the link would be usefu

Re: [O] Problem: Moving rows in a table changes vsum start and end

2012-09-29 Thread Achim Gratz
Bastien writes: >> This would be easier to do if the formula editor didn't have the bug >> I've reported some time ago. Any chance that you or someone else could >> have a look at it? I've tried to find the culprit, but there's just too >> much going on at the same time in that part of the code a

Re: [O] Problem: Moving rows in a table changes vsum start and end

2012-09-29 Thread Carsten Dominik
On 29.9.2012, at 11:57, Achim Gratz wrote: > Carsten Dominik writes: >>> I just pushed this: Org now sends a message when the formulas >>> have been updated. Something less intrusive like a temporary >>> overlay would be nice, though. > >> Thorsten, if you look at the manual, there are ways to

Re: [O] Problem: Moving rows in a table changes vsum start and end

2012-09-29 Thread Bastien
Hi Achim, Achim Gratz writes: > This would be easier to do if the formula editor didn't have the bug > I've reported some time ago. Any chance that you or someone else could > have a look at it? I've tried to find the culprit, but there's just too > much going on at the same time in that part

Re: [O] Problem: Moving rows in a table changes vsum start and end

2012-09-29 Thread Achim Gratz
Carsten Dominik writes: >> I just pushed this: Org now sends a message when the formulas >> have been updated. Something less intrusive like a temporary >> overlay would be nice, though. > Thorsten, if you look at the manual, there are ways to write this > limits of vsum etc in a way that they a

Re: [O] Problem: Moving rows in a table changes vsum start and end

2012-09-29 Thread Carsten Dominik
On 28.9.2012, at 18:00, Bastien wrote: > Hi Torsten, > > Torsten Wagner writes: > >> I might start very very simple and hope you are wiling enough to help >> me to translate whatever mess I send you into some reasonable patch ;) > > I just pushed this: Org now sends a message when the formula

Re: [O] Problem: Moving rows in a table changes vsum start and end

2012-09-28 Thread Bastien
Hi Torsten, Torsten Wagner writes: > I might start very very simple and hope you are wiling enough to help > me to translate whatever mess I send you into some reasonable patch ;) I just pushed this: Org now sends a message when the formulas have been updated. Something less intrusive like a t

Re: [O] Problem: Moving rows in a table changes vsum start and end

2012-09-28 Thread Bastien
Hi Torsten, Torsten Wagner writes: > ok, I think it should be in org-table.el > > and the function in question might be org-table-fix-formulas Right. > I added > > (defface org-table-formular-change-face >'((t (:background "red"))) >"Used parts of tabe formulars which change by row an

Re: [O] Problem: Moving rows in a table changes vsum start and end

2012-09-28 Thread Torsten Wagner
Hi Bastien, my last mail overlapped, with yours. Maybe some of the stuff I said is redundant now. Greetings Torsten On 29 September 2012 01:00, Bastien wrote: > Hi Torsten, > > Torsten Wagner writes: > >> I might start very very simple and hope you are wiling enough to help >> me to translat

Re: [O] Problem: Moving rows in a table changes vsum start and end

2012-09-28 Thread Torsten Wagner
Hi Bastien, ok, I think it should be in org-table.el and the function in question might be org-table-fix-formulas I added (defface org-table-formular-change-face '((t (:background "red"))) "Used parts of tabe formulars which change by row and column moving operations.") to define a new

Re: [O] Problem: Moving rows in a table changes vsum start and end

2012-09-28 Thread Bastien
Hi Torsten, Torsten Wagner writes: > everytime you do this, I feel more embarrassed about my poor elisp knowledge. > ;) > I might start very very simple and hope you are wiling enough to help > me to translate whatever mess I send you into some reasonable patch ;) Sure! Actually I was not poi

Re: [O] Problem: Moving rows in a table changes vsum start and end

2012-09-28 Thread Torsten Wagner
Hi Bastien, > > Good idea. Patch welcome, Hehehe, everytime you do this, I feel more embarrassed about my poor elisp knowledge. ;) I might start very very simple and hope you are wiling enough to help me to translate whatever mess I send you into some reasonable patch ;) Torsten > -- > Bastien

Re: [O] Problem: Moving rows in a table changes vsum start and end

2012-09-28 Thread Bastien
Hi Torsten, Torsten Wagner writes: > One solution, I could see is then whenever forms change > "automagically" highlight this changes within the TBFM line, e.g., by > a change of the background color in a similar way like matching > parenthesis. That might help to make people more aware of it a

[O] Problem: Moving rows in a table changes vsum start and end

2012-09-28 Thread Torsten Wagner
Hi, I just notice a funny row-shift effect, having a table with a field calculated by vsum. | Nr. | value | |-+---| | 1 | 5 | | 2 | 5 | | 3 | 5 | | 4 | 5 | | 5 | 5 | | 6 | 5 | |-+---| | Sum |30 | #+TBLFM: @8$2=vsum(@2..@7) now shift (sort)