From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Update the value of specific column using the values of other columns on-the-fly. Date: Sat, 26 Dec 2020 20:47:11 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6007"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 26 13:48:15 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kt8zX-0001Ue-3s for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 26 Dec 2020 13:48:15 +0100 Original-Received: from localhost ([::1]:55814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kt8zW-0002YG-4v for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 26 Dec 2020 07:48:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kt8yl-0002Y5-6R for help-gnu-emacs@gnu.org; Sat, 26 Dec 2020 07:47:27 -0500 Original-Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]:37896) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kt8yj-0007ea-Ki for help-gnu-emacs@gnu.org; Sat, 26 Dec 2020 07:47:26 -0500 Original-Received: by mail-lf1-x135.google.com with SMTP id h205so14220768lfd.5 for ; Sat, 26 Dec 2020 04:47:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=v8vemehV0nM/GqKh66oVpmqR5tK77RxZCS4YQGtoMNk=; b=X90ijUho1NONGcZeTrRXW3vJBWwK/ewfpL7qZcpKhkpi5lHCzWFCCpN8RjR9K4Nh/H p7w2KEtakCOAG1GTF0SVGYyZgNCimslZ8iaNzmkthVUFGIdcf06VcLjlP5lIhzONMjFd 8MmjdfpFFU8PCdvkKLipkIKbKgg8NzMENkMvWJaBDhG0cpJKZKARfG6+4JTLYHTtL2U5 qK2hilh/jDk3sV5iEsT2aS4fVP/QQWFU3uVUr8AybL+UsNGsA+iw7AkvohExrui5qRAe EKFvVJmUhoTe3+gLLZmjRK7Sde+ckwxf7547laTwfMU8lk6PfB9brN3qIt/QPGnH4Ivi Vpvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=v8vemehV0nM/GqKh66oVpmqR5tK77RxZCS4YQGtoMNk=; b=lGB0HYwP7qhDBWZbaGeptav3JfRl+zdB7LCblAJ5nDkfjg3rXzUx/1CrENNIqjsa41 bdKXncLFUKpm+1CvvVQhNZlVGN+gIbuQ6HAySkUt2QB+3M9/deX69o7TMKq3/E8S9Yt0 9zBhQQ5Y6y14+DlHFDlQ4XRRltSfaGnfxkyVOr9QHMUyyg53uwypk31PfzxpaDzjDxRi MOijF3XgTtWMrQxJ9wpi5ERkEdGu9/a2d07Di75bkFQ8dKr+uDbGCx3kaeXefzGsOi0r kZZNMRLhBieo3QiaENAFdIvKOTstXdNe8xNwo/+wVen7W5xEm6FjmWyyM0AdP+nMcEfI gLfQ== X-Gm-Message-State: AOAM532+ohR0AG/P7EDEaPfLdIJI40MjbBVyioKczQc0ZKjZjkXgJUyt 5y5V5eLbmP9tqHt5wsDIu2DlMFszfoJw/jp6FQW01vyLEvkey4sE X-Google-Smtp-Source: ABdhPJxmp9fTmAs+Zq+RcGKW4X9Wi/i/RnVBXCr1wHMTSkdsqi1e0fdioaMPRQXkLTnMeF5K1OWtWa3FZLH4qQVN2jU= X-Received: by 2002:ac2:528a:: with SMTP id q10mr14759228lfm.461.1608986843121; Sat, 26 Dec 2020 04:47:23 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::135; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x135.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:126783 Archived-At: 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. Regards -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Polytechnic University of Science and Technology engineering NO. 552 North Gangtie Road, Xingtai, China