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: Rasmus
Subject: Re: [O] [bug, org-table] new hline doesn't update formula
Date: Sun, 17 May 2015 21:06:31 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Nicolas Goaziou <address@hidden> writes:

> 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|?

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




reply via email to

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