Nicolas Goaziou <m...@nicolasgoaziou.fr> writes: > Hello, > > Rasmus <ras...@gmx.us> writes: > >> Consider this example: >> >> |---+---+---| >> | a | b | c | >> | d | e | f | >> |---+---+---| >> | 1 | 2 | 3 | >> | 4 | 5 | 6 | >> |---+---+---| >> | 5 | 7 | 9 | >> #+TBLFM: @5=vsum(@II..@III) >> >> Insert a hline after |a|b|c|. The formula is now broken. > > What should happen to the formula if hline is inserted between |1|2|3| > and |4|5|6|?
Good question. I'm not sure. While not necessarily the most obvious I think in that case the formula should be unchanged. But it's not obvious. >> Expected behavior: org-table-insert-hline should call >> org-table-fix-formulas, though this does not currently support hlines, it >> seems. >> >> I have no idea how trivial or hard this is to fix this... But hints or >> fixes are appreciated. > > It doesn't seem too hard to fix. I think we just need to extend > `org-table-fix-formulas' to handle "@I" parts and call it from > `org-table-insert-hline'. I guess something like that. > Anyway, actual fix depends on the answer to my initial question. Yeah... —Rasmus -- . . . The proofs are technical in nature and provides no real understanding