all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Subhan Michael Tindall <SubhanT@familycareinc.org>
To: 'Dima Kogan' <lists@dima.secretsauce.net>,
	"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Adding new table rows/cols in a formula update
Date: Tue, 30 Sep 2014 19:54:24 +0000	[thread overview]
Message-ID: <b55187e5ceb54158a4574539559abb04@fcmailsvr2.familycareinc.org> (raw)
In-Reply-To: <87fvf8hpqw.fsf@secretsauce.net>

I would include a customization variable to control this behavior, defaulting 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 line was extended
(setq org-calc-extend-file "prompt") prompt user y/n on whether or not to extend column



> -----Original Message-----
> From: emacs-orgmode-bounces+subhant=familycareinc.org@gnu.org
> [mailto:emacs-orgmode-bounces+subhant=familycareinc.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 <lists@dima.secretsauce.net> writes:
> 
> > Suppose I have this .org file:
> >
> >  |   |
> >  #+TBLFM: @1$2=5
> >
> > 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 which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message.  Thank you.

  reply	other threads:[~2014-09-30 19:54 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-29 17:45 Adding new table rows/cols in a formula update Dima Kogan
2014-09-30 19:27 ` Dima Kogan
2014-09-30 19:54   ` Subhan Michael Tindall [this message]
2014-10-01  5:44     ` Dima Kogan
2014-10-01 19:38       ` Nicolas Goaziou
2014-10-01 19:38         ` Dima Kogan
2014-10-01 20:17         ` Nick Dokos
2014-10-03 18:07           ` Dima Kogan
2014-10-10 10:05             ` Nicolas Goaziou
2014-10-10 18:17               ` Dima Kogan
2014-10-11 13:09                 ` Bastien
2014-10-11 15:14                   ` Nicolas Goaziou
2014-10-11 17:02                     ` Dima Kogan
2014-10-12  9:18                       ` Nicolas Goaziou
2014-10-12 10:08                         ` Bastien
2014-10-12 12:06                           ` Nicolas Goaziou
2014-10-12 12:20                             ` Bastien
2014-10-13 17:14                       ` Achim Gratz
2014-12-08 19:50                         ` Achim Gratz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b55187e5ceb54158a4574539559abb04@fcmailsvr2.familycareinc.org \
    --to=subhant@familycareinc.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=lists@dima.secretsauce.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.