From: Hongyi Zhao <hongyi.zhao@gmail.com>
To: Emanuel Berg <moasenwood@zoho.eu>,
help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Update the value of specific column using the values of other columns on-the-fly.
Date: Sun, 27 Dec 2020 08:54:57 +0800 [thread overview]
Message-ID: <CAGP6POKGtb_RiWERkUQNKhEeUwDa7dh-1fbJU8VDc9aEcL-q2Q@mail.gmail.com> (raw)
In-Reply-To: <87ft3szq3z.fsf@zoho.eu>
On Sat, Dec 26, 2020 at 8:52 PM Emanuel Berg via Users list for the
GNU Emacs text editor <help-gnu-emacs@gnu.org> wrote:
>
> Hongyi Zhao wrote:
>
> > I want to edit a table with 5 columns, where the first
> > column is calculated from the other columns as below:
> >
> > val_col1 = 20% * val_col2 + 30% * val_col3 + 40% * val_col4 + 10% * val_col5
> >
> > I want to let emacs update the column 1, i.e., the weighted
> > mean result of other columns automatically and on the fly
> > when I input the values for other columns.
> >
> > Is this possible with emacs? Any hints will be
> > highly appreciated.
>
> There is the Emacs spreadsheet, of course.
>
> Or do it in Lisp.
>
> 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, so why do you have the
above point of view?
Regards
--
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China
next prev parent reply other threads:[~2020-12-27 0:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-26 12:47 Update the value of specific column using the values of other columns on-the-fly Hongyi Zhao
2020-12-26 12:52 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-12-26 12:57 ` Hongyi Zhao
2020-12-27 0:54 ` Hongyi Zhao [this message]
2020-12-27 1:17 ` Emanuel Berg via Users list for the GNU Emacs text editor
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGP6POKGtb_RiWERkUQNKhEeUwDa7dh-1fbJU8VDc9aEcL-q2Q@mail.gmail.com \
--to=hongyi.zhao@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=moasenwood@zoho.eu \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).