From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qLjcDbPUpWGsXwAAgWs5BA (envelope-from ) for ; Tue, 30 Nov 2021 08:37:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id +HSOCbPUpWF3TQAAB5/wlQ (envelope-from ) for ; Tue, 30 Nov 2021 07:37:23 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B133C8A12 for ; Tue, 30 Nov 2021 08:37:22 +0100 (CET) Received: from localhost ([::1]:33572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrxhY-0000A1-Go for larch@yhetil.org; Tue, 30 Nov 2021 02:37:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrxgz-00008e-5C for emacs-orgmode@gnu.org; Tue, 30 Nov 2021 02:36:45 -0500 Received: from mail.mojserwer.eu ([195.110.48.8]:58196) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrxgv-000337-99 for emacs-orgmode@gnu.org; Tue, 30 Nov 2021 02:36:44 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id BC516E6DA8 for ; Tue, 30 Nov 2021 08:36:31 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yweYGtzZ_LRg for ; Tue, 30 Nov 2021 08:36:26 +0100 (CET) Received: from localhost (178235147228.dynamic-3-poz-k-0-1-0.vectranet.pl [178.235.147.228]) by mail.mojserwer.eu (Postfix) with ESMTPSA id B5EE5E64B8 for ; Tue, 30 Nov 2021 08:36:26 +0100 (CET) User-agent: mu4e 1.1.0; emacs 28.0.50 From: Marcin Borkowski To: Org-Mode mailing list Subject: Is it possible to add a "cumulative" column in column view? Date: Tue, 30 Nov 2021 08:36:23 +0100 Message-ID: <87v90ap020.fsf@mbork.pl> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=195.110.48.8; envelope-from=mbork@mbork.pl; helo=mail.mojserwer.eu X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638257842; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=8rU5OAhyVBdzJ7+RXzpCKH4TtjBrt0GsF5K4jBbYClk=; b=ge+ZQUdmDR9/9mzUTCDbjHdakbCPJRmkbBoN7piFEgAdq+NI3yYPx4sMODOluE4XS6eA2L nmR8Bt7xtQPa5VoJ/OK0IsmAzK5xX2NJ+6EAmfbWv6lflEiHSN8Lx6RVWJXdDXiuii25Sg tCUmdXbznapr2oaYGaKgD/BWSRDVq3KKhba9SkeeVHCpbaMZvWHx/FDGtVNoT9zy55zMfu Q5OyNIa44W/HxFsSW2QmZORT5zs54LG52eEVFIFV1F9Gn7+jkdTeGi23ZqYg238gVmq1/3 ZV3OYh+d3meOCvPAjVbiQmr7dAGcWJUhala6fTk4Kp0zqWolbqGg5viapAZfag== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638257842; a=rsa-sha256; cv=none; b=KEMVrtOmrLV2+ccSdXYI8jdXC8awnELdpIg5iZvDHX6wPQsdHFAfoi48zOikKfmn3TxQN3 q/B1WX1xRMj/fkq4dDuOmYPju8Aoiw0U7tatJFIB76vEWgfqwVsSq9Y5aEOfPkyR2gjxJk USC2prK7WbDJnGOkJFUb35L2xBYOeyTn/CYkLcQlkraClJOqfyGFbMlxHoKCmrs4lBTqLv UrQw8bdnFRuhSdTimm3ueFcEO3mopr5DWuiHbFDs5uKtuLN9BGO9SzJbQCtIsaH72lO+X3 oduB5eafb8XLxVOq6ZGgDxx1cRIoj++CURksskqBA23tQ8r8E6QgHAZgLWHnPw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.01 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B133C8A12 X-Spam-Score: -2.01 X-Migadu-Scanner: scn0.migadu.com X-TUID: Nlz2Gtas4oAJ Hi fellow Orgers, I started using column view recently, and I would greatly appreciate it if I could add a column with "cumulative sum". In a less-than ideal world it would be the sum of all the values of some property until the current row. In an ideal world, it could only count values of some property A for rows in which property B is set to certain value. I looked at the docstring of `org-columns-summary-types', and it is obviously impossible to do it with it (the `summarize' function always gets all the values and doesn't get the row number on anything like it). How difficult would it be to extend it? (A cursory look at `org-colview.el' suggests that there are quite a few layers of abstraction, so it doesn't look like a 10-minute hack...) TIA, -- Marcin Borkowski http://mbork.pl