From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [bug, org-table] new hline doesn't update formula Date: Sun, 17 May 2015 21:00:09 +0200 Message-ID: <87y4kn6nd2.fsf@nicolasgoaziou.fr> References: <87zj55wxri.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yu3lv-0001r2-3K for emacs-orgmode@gnu.org; Sun, 17 May 2015 14:58:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yu3lu-0004rz-AJ for emacs-orgmode@gnu.org; Sun, 17 May 2015 14:58:47 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:40729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yu3lu-0004ru-4w for emacs-orgmode@gnu.org; Sun, 17 May 2015 14:58:46 -0400 In-Reply-To: <87zj55wxri.fsf@gmx.us> (rasmus@gmx.us's message of "Fri, 15 May 2015 19:34:09 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: emacs-orgmode@gnu.org Hello, Rasmus 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|? > 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