all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@uva.nl>
To: Bastien <bzg@altern.org>
Cc: Org Mode List <emacs-orgmode@gnu.org>,
	Michael Brand <michael.ch.brand@gmail.com>,
	Nicolas Goaziou <n.goaziou@gmail.com>,
	Carsten Dominik <dominik@science.uva.nl>
Subject: Re: [bug] removing last column with a column formula
Date: Thu, 25 Aug 2011 08:20:38 +0200	[thread overview]
Message-ID: <7C3F1A96-494F-4B20-9A7B-A0DE03FE6E5E@uva.nl> (raw)
In-Reply-To: <8762lmk6j7.fsf@gnu.org>


On 24.8.2011, at 20:29, Bastien wrote:

> Hi Carsten,
> 
> Nicolas Goaziou <n.goaziou@gmail.com> writes:
> 
>> Let's consider the following table:
>> 
>> #+begin_src org
>> | 1 | 2 | 3 |
>> | 1 | 2 | 3 |
>> #+TBLFM: @2$1..@2$3=@1
>> #+end_src
>> 
>> If I remove the second column (M-S-Left), the formula is correctly
>> updated. But when I remove the last column, the formula gets partly
>> deleted and becomes:
>> 
>>                            #+TBLFM: @2$1..
>> 
>> Also, if this times, the first column is removed, that line becomes:
>> 
>>                      #+TBLFM: @2$INVALID..@2$2=@1
>> 
>> This is with latest Org and no user configuration.
> 
> Is this something that we can (easily) fix?  


Not easily.  I have made it throw an error now, but there may be
other situations like this which are not yet captured.

Michael Brand has pointed out correctly that if you want to use
ranges the go to the border of the table, you should use
$< and $>

Cheers

- Carsten

  reply	other threads:[~2011-08-25  6:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-09 12:50 [bug] removing last column with a column formula Nicolas Goaziou
2011-08-09 14:54 ` Michael Brand
2011-08-10  8:46   ` Nicolas Goaziou
2011-08-24 18:29 ` Bastien
2011-08-25  6:20   ` Carsten Dominik [this message]
2011-08-25  8:09     ` Bastien

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=7C3F1A96-494F-4B20-9A7B-A0DE03FE6E5E@uva.nl \
    --to=dominik@uva.nl \
    --cc=bzg@altern.org \
    --cc=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=michael.ch.brand@gmail.com \
    --cc=n.goaziou@gmail.com \
    /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.