From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subhan Michael Tindall Subject: Re: Adding new table rows/cols in a formula update Date: Tue, 30 Sep 2014 19:54:24 +0000 Message-ID: References: <87k34mgvup.fsf@secretsauce.net> <87fvf8hpqw.fsf@secretsauce.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37839) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZ3VJ-0007Sa-B3 for emacs-orgmode@gnu.org; Tue, 30 Sep 2014 15:54:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZ3VE-00026a-Or for emacs-orgmode@gnu.org; Tue, 30 Sep 2014 15:54:33 -0400 Received: from outbound.familycareinc.org ([207.170.205.147]:37072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZ3VE-00026N-Jd for emacs-orgmode@gnu.org; Tue, 30 Sep 2014 15:54:28 -0400 In-Reply-To: <87fvf8hpqw.fsf@secretsauce.net> Content-Language: en-US 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: 'Dima Kogan' , "emacs-orgmode@gnu.org" I would include a customization variable to control this behavior, defaulti= ng to whatever the current behavior is: IE: (setq org-calc-extend-file nil) default system behavior (setq org-calc-extend-file t) always silently extend rows (setq org-calc-extend-file "warn") issue warning in message buffer that lin= e was extended (setq org-calc-extend-file "prompt") prompt user y/n on whether or not to e= xtend column > -----Original Message----- > From: emacs-orgmode-bounces+subhant=3Dfamilycareinc.org@gnu.org > [mailto:emacs-orgmode-bounces+subhant=3Dfamilycareinc.org@gnu.org] On > Behalf Of Dima Kogan > Sent: Tuesday, September 30, 2014 12:28 PM > To: emacs-orgmode@gnu.org > Subject: Re: [O] Adding new table rows/cols in a formula update > = > Dima Kogan writes: > = > > Suppose I have this .org file: > > > > | | > > #+TBLFM: @1$2=3D5 > > > > It's a 1x1 table with a formula. The formula sets a cell that's out of > > bounds in the table, so evaluating this formula results in an error. > > How set-in-stone is this behavior? I haven't dug too deeply into the > > code, but are there fundamental assumptions here? Would a patch that > > extends the table before applying such a formula be too naive in some > way? > = > Here's a tiny patch that adds the columns (not rows) as needed. Is this > reasonable? This message is intended for the sole use of the individual and entity to w= hich it is addressed and may contain information that is privileged, confid= ential and exempt from disclosure under applicable law. If you are not the = intended addressee, nor authorized to receive for the intended addressee, y= ou are hereby notified that you may not use, copy, disclose or distribute t= o anyone the message or any information contained in the message. If you ha= ve received this message in error, please immediately advise the sender by = reply email and delete the message. Thank you.