all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* spreadsheet: empty field should be an empty field.
@ 2014-09-16  9:06 Uwe Brauer
  2014-09-16  9:42 ` Thorsten Jolitz
  0 siblings, 1 reply; 7+ messages in thread
From: Uwe Brauer @ 2014-09-16  9:06 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 397 bytes --]



Hello

Consider the following table.


| Name   | Ex 1 | Ex2 | Ex + Ex2 |
| smith  |    1 |   2 |        3 |
| miller |      |     |        0 |
#+TBLFM: $4=$2+$3


Miller has no entries in Ex1 and Ex2 but when using C-u C-u C-c C-c also
Ex2+Ex3 gets an entry namely zero. I don't like this I would prefer if
this field remains empty.

Any way of achieving this?

Uwe Brauer 

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5556 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: spreadsheet: empty field should be an empty field.
  2014-09-16  9:06 spreadsheet: empty field should be an empty field Uwe Brauer
@ 2014-09-16  9:42 ` Thorsten Jolitz
  2014-09-16  9:56   ` Michael Brand
  2014-09-16 11:02   ` Uwe Brauer
  0 siblings, 2 replies; 7+ messages in thread
From: Thorsten Jolitz @ 2014-09-16  9:42 UTC (permalink / raw)
  To: emacs-orgmode

Uwe Brauer <oub@mat.ucm.es> writes:

> Hello
>
> Consider the following table.
>
>
> | Name   | Ex 1 | Ex2 | Ex + Ex2 |
> | smith  |    1 |   2 |        3 |
> | miller |      |     |        0 |
> #+TBLFM: $4=$2+$3
>
>
> Miller has no entries in Ex1 and Ex2 but when using C-u C-u C-c C-c also
> Ex2+Ex3 gets an entry namely zero. I don't like this I would prefer if
> this field remains empty.
>
> Any way of achieving this?

I think something like NaN was introduced to Org-tbls, but I don't
remember the exact syntax, maybe try with 'nan':

http://lists.gnu.org/archive/html/emacs-orgmode/2012-12/msg00983.html

-- 
cheers,
Thorsten

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: spreadsheet: empty field should be an empty field.
  2014-09-16  9:42 ` Thorsten Jolitz
@ 2014-09-16  9:56   ` Michael Brand
  2014-09-16 10:22     ` Nicolas Richard
  2014-09-16 11:02   ` Uwe Brauer
  1 sibling, 1 reply; 7+ messages in thread
From: Michael Brand @ 2014-09-16  9:56 UTC (permalink / raw)
  To: Org Mode

On Tue, Sep 16, 2014 at 11:42 AM, Thorsten Jolitz <tjolitz@gmail.com> wrote:
> I think something like NaN was introduced to Org-tbls, but I don't
> remember the exact syntax, maybe try with 'nan':
>
> http://lists.gnu.org/archive/html/emacs-orgmode/2012-12/msg00983.html

Yes, and I already documented the OP use case in the second example here:
http://orgmode.org/manual/Formula-syntax-for-Calc.html

Michael

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: spreadsheet: empty field should be an empty field.
  2014-09-16  9:56   ` Michael Brand
@ 2014-09-16 10:22     ` Nicolas Richard
  0 siblings, 0 replies; 7+ messages in thread
From: Nicolas Richard @ 2014-09-16 10:22 UTC (permalink / raw)
  To: Michael Brand; +Cc: Org Mode

Michael Brand <michael.ch.brand@gmail.com> writes:

> On Tue, Sep 16, 2014 at 11:42 AM, Thorsten Jolitz <tjolitz@gmail.com> wrote:
>> I think something like NaN was introduced to Org-tbls, but I don't
>> remember the exact syntax, maybe try with 'nan':
>>
>> http://lists.gnu.org/archive/html/emacs-orgmode/2012-12/msg00983.html
>
> Yes, and I already documented the OP use case in the second example here:
> http://orgmode.org/manual/Formula-syntax-for-Calc.html

This is something I tend to forget (and usually work around with some
lisp). Thanks for the reminder.

-- 
Nicolas Richard

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: spreadsheet: empty field should be an empty field.
  2014-09-16  9:42 ` Thorsten Jolitz
  2014-09-16  9:56   ` Michael Brand
@ 2014-09-16 11:02   ` Uwe Brauer
  2014-09-16 11:56     ` Michael Brand
  1 sibling, 1 reply; 7+ messages in thread
From: Uwe Brauer @ 2014-09-16 11:02 UTC (permalink / raw)
  To: emacs-orgmode


   > Uwe Brauer <oub@mat.ucm.es> writes:

   > I think something like NaN was introduced to Org-tbls, but I don't
   > remember the exact syntax, maybe try with 'nan':

   > Http://lists.gnu.org/archive/html/emacs-orgmode/2012-12/msg00983.html

Aha, so I would indeed get:

| Name   | Ex 1 | Ex2 | Ex + Ex2 |
| smith  |    1 |   2 |        3 |
| miller |      |     |          |
#+TBLFM: $4=$2+$3

this is patch is from 2012, which orgmode version did it enter then?

Uwe Brauer 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: spreadsheet: empty field should be an empty field.
  2014-09-16 11:02   ` Uwe Brauer
@ 2014-09-16 11:56     ` Michael Brand
  2014-09-16 14:20       ` Michael Brand
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Brand @ 2014-09-16 11:56 UTC (permalink / raw)
  To: Org Mode

Hi Uwe

On Tue, Sep 16, 2014 at 1:02 PM, Uwe Brauer <oub@mat.ucm.es> wrote:
> this is patch is from 2012, which orgmode version did it enter then?

I implemented it in release_7.9.2-908-ga77442b and "git tag
--contains" tells that it is available since Org release 8.0 which is
newer than the pre-packaged Org mode of the currently newest released
Emacs 23.3. So you need to upgrade Org mode as described here:
http://orgmode.org/manual/Installation.html

Michael

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: spreadsheet: empty field should be an empty field.
  2014-09-16 11:56     ` Michael Brand
@ 2014-09-16 14:20       ` Michael Brand
  0 siblings, 0 replies; 7+ messages in thread
From: Michael Brand @ 2014-09-16 14:20 UTC (permalink / raw)
  To: Org Mode

On Tue, Sep 16, 2014 at 1:56 PM, Michael Brand
<michael.ch.brand@gmail.com> wrote:
> the currently newest released Emacs 23.3.

This was (hopefully obviously) a typo and should have been

    the currently newest released Emacs 24.3.

Michael

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-09-16 14:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-16  9:06 spreadsheet: empty field should be an empty field Uwe Brauer
2014-09-16  9:42 ` Thorsten Jolitz
2014-09-16  9:56   ` Michael Brand
2014-09-16 10:22     ` Nicolas Richard
2014-09-16 11:02   ` Uwe Brauer
2014-09-16 11:56     ` Michael Brand
2014-09-16 14:20       ` Michael Brand

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.