emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [bug, org-table] new hline doesn't update formula


From: Nicolas Goaziou
Subject: Re: [O] [bug, org-table] new hline doesn't update formula
Date: Sun, 17 May 2015 21:00:09 +0200

Hello,

Rasmus <address@hidden> writes:

> Consider this example:
>
> |---+---+---|
> | a | b | c |
> | d | e | f |
> |---+---+---|
> | 1 | 2 | 3 |
> | 4 | 5 | 6 |
> |---+---+---|
> | 5 | 7 | 9 |
> #+TBLFM: @5=vsum(@address@hidden)
>
> 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|?

> 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'.

Anyway, actual fix depends on the answer to my initial question.


Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]