help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Update the value of specific column using the values of other column


From: Emanuel Berg
Subject: Re: Update the value of specific column using the values of other columns on-the-fly.
Date: Sun, 27 Dec 2020 02:17:14 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Hongyi Zhao wrote:

>> But then in Lispp (Lisp and only Lisp), i.e., 100% code,
>> because reading column values back and forth in a buffer -
>> that is soo fragile...
>
> The orgmode itself is also written in elisp

Yes, as is the SES (Simple Emacs Spreadsheet).

> so why do you have the above point of view?

Take a look at this file, it is about about Olympic hockey. [1]
Sure, you can do the most basic of all arithmetic (which is
counting) but move a single entry in that file even one column
to the right or left and it breaks...

So to have something that even remotely works like
a spreadsheet, either do it in Lisp, suitable for a quick
one-shot

(let*((value-1 (do-computations))
      ...)
  (present-result) )

or, even better, and in particular if you intend to do this
again and/or extend/resuse/modify it, use
a spreadsheet solution.

The type of software you are asking for is a spreadsheet.

[1] https://dataswamp.org/~incal/hockey/og.el

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]