From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WIggCaFda2CjPgAAgWs5BA (envelope-from ) for ; Mon, 05 Apr 2021 20:57:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id MCYQA6Fda2BRAQAAbx9fmQ (envelope-from ) for ; Mon, 05 Apr 2021 18:57:37 +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 794422EE06 for ; Mon, 5 Apr 2021 20:57:36 +0200 (CEST) Received: from localhost ([::1]:58264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTUPn-00076l-6z for larch@yhetil.org; Mon, 05 Apr 2021 14:57:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTUP8-00076f-RM for emacs-orgmode@gnu.org; Mon, 05 Apr 2021 14:56:54 -0400 Received: from us-smtp-delivery-44.mimecast.com ([205.139.111.44]:25650) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTUP7-0001RO-3G for emacs-orgmode@gnu.org; Mon, 05 Apr 2021 14:56:54 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-376-8hVLn9SlP_KJm7uCC9vSEw-1; Mon, 05 Apr 2021 14:56:48 -0400 X-MC-Unique: 8hVLn9SlP_KJm7uCC9vSEw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8E87783DD25 for ; Mon, 5 Apr 2021 18:56:47 +0000 (UTC) Received: from alphaville.usersys.redhat.com (ovpn-113-21.phx2.redhat.com [10.3.113.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7376E1042A46 for ; Mon, 5 Apr 2021 18:56:47 +0000 (UTC) Received: from alphaville.usersys.redhat.com (localhost [IPv6:::1]) by alphaville.usersys.redhat.com (Postfix) with ESMTPS id 6C7442959CB for ; Mon, 5 Apr 2021 14:56:46 -0400 (EDT) From: Nick Dokos To: emacs-orgmode@gnu.org Subject: Bug: org-columns--compute-spec tries to set CLOCKSUM property [9.4.4 (release_9.4.4-231-gf46925 @ /home/nick/elisp/org-mode/lisp/)] Date: Mon, 05 Apr 2021 14:56:46 -0400 Message-ID: <87r1jo5zm9.fsf@alphaville.usersys.redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: gmail.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: softfail client-ip=205.139.111.44; envelope-from=ndokos@gmail.com; helo=us-smtp-delivery-44.mimecast.com X-Spam_score_int: 35 X-Spam_score: 3.5 X-Spam_bar: +++ X-Spam_report: (3.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, SPOOFED_FREEMAIL=1.999, SPOOF_GMAIL_MID=1.499 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617649056; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=Jdhs7DJ4O9bQ0LnWedA8mFobjS6ENWJ0DTCDMeFAb/8=; b=dtJQU7X9vLvpejfVWuVa85P3S4EbKp6G5EQMolLEtmdWeAskcVSRnPpLZVGjgpI+ccEucJ NdwnWXmktRsWyakUYii6cfTwzXFzRuPn+aXGWtagUBU7q8SfttoAuvQtsUSd5P9+Hm9Yua +BgZuadoOBnbj3DFKk8hyTr1EgahQh6u4rMFEwMZtpwMSE7aO4aaR4ItkbRX4/PNOCQ0ms HVdX28aLADDpwNFHb0qsZMuV90CVNpqg5VGAqro1uuW5xpyDeRFivZsJHo6xp+DrTHnESz KJgQB/qm8msdkBTpd55yaVV4Oyk3hWebfAreEcac0lC7RVhpzXWXLSSCIaaXMg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617649056; a=rsa-sha256; cv=none; b=iWCUGLXepRCCfpW8QsuA/8LICnr8Ll98TG7L/yE9KmVq5UNIggMqMGA7SXtwPvFfWEpd5W /9BqYJ4R+B4Koozt8mRM/SjHxd9Q2e0wPghaJjsk8QWXmrmJko3gNfar+wlrtt0BNPiqgS RXr0eEOPIAIa2Ue1A03Fjwt/rh63elFwTzTxZ/CUpGnd+ZuXWxpaVsPhRH/u94SYqdTqmX x5uh/DqNzbeovXTpyDoTvUxO/ZDN/KNxIoz0OvLSiJJy6PsAmHRJLnr5ib5p1Ipr6N4E65 h/+wxQyawqMkwRBiC+/vFI90+CBuyqy48T661Yuu0YtvHqy9QEcml/DTQ9acQA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.34 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 794422EE06 X-Spam-Score: -2.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: fka6qCr1Kw7W The following MWE illustrates: --8<---------------cut here---------------start------------->8--- #+COLUMNS: %25ITEM %6CLOCKSUM{:} * Goal 3 :PROPERTIES: :ID: goal_3 :END: #+BEGIN: columnview :hlines 4 :id goal_3 :maxlevel 3 #+END ** TODO Task 1 :LOGBOOK: CLOCK: [2020-01-26 18:05]--[2020-01-26 Mon 19:16] =3D> 1:11 :END: Task body *** TODO Subtask 1 :LOGBOOK: CLOCK: [2020-01-28 Tue 15:45]--[2020-01-28 Tue 16:45] =3D> 1:00 :END: =20 --8<---------------cut here---------------end--------------->8--- Starting with `emacs -Q foo.org', place the cursor on the `#+BEGIN: columnview' line and type `C-c C-c`. That produces a table (although the entries are wrong): --8<---------------cut here---------------start------------->8--- #+BEGIN: columnview :hlines 4 :id goal_3 :maxlevel 3 | ITEM | CLOCKSUM | |-----------+----------| | Goal 3 | 2:11 | |-----------+----------| | Task 1 | 2:11 | |-----------+----------| | Subtask 1 | 1:00 | #+END --8<---------------cut here---------------end--------------->8--- But then doing it again fails with the following (elided) backtrace: --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (error "The CLOCKSUM property cannot be set w= ith =E2=80=98org-entr...") signal(error ("The CLOCKSUM property cannot be set with =E2=80=98org-entr= ...")) error("The %s property cannot be set with `org-entry-put'" "CLOCKSUM") ... org-entry-put(147 "CLOCKSUM" "1:00") (progn (org-entry-put (point) property new-value)) (if (and update value (not (equal value new-value))) (progn (org-entry-pu= t (point) property new-value))) (let ((new-value (org-trim summary))) (if (and update value (not (equal v= alue new-value))) (progn (org-entry-put (point) property new-value)))) ... org-columns--compute-spec(("CLOCKSUM" "CLOCKSUM" 6 ":" nil) t) ... org-columns-compute-all() ... org-columns(nil nil) org-columns--capture-view(3 nil nil nil nil 35) ... org-dblock-write:columnview((:name "columnview" :hlines 4 :id goal_3 :max= level 3 :indentation-column 2 :content #("\n" 0 1 (org-category "foo500" wr= ap-prefix #(" " 0 2 (face org-indent)) line-prefix #(" " 0 2 (face org-in= dent)) fontified t)))) ... org-update-dblock() (save-excursion (goto-char (org-element-property :post-affiliated context= )) (org-update-dblock)) ... org-ctrl-c-ctrl-c(nil) --8<---------------cut here---------------end--------------->8--- Part of the problem seems to be that `org-get-entry' manufactures CLOCKSUM properties out of the CLOCK entries above, but `org-put-entry' knows that that's a special property and refuses to put it. But I think the major fail is in `org-columns--compute-spec' which takes the property at face value and just passes it along. I believe it needs to do whatever accumulation it is supposed to do and set a text property to store the value in the headline, but that's guessing on my part. I saw this on Emacs SE (the above example is a simplified version of the example in the post): https://emacs.stackexchange.com/questions/55164/org-columns-error-the-c= locksum-property-cannot-be-set-with-org-entry-put and it has apparently been reported once before: https://lists.gnu.org/archive/html/emacs-orgmode/2012-02/msg00309.html Emacs : GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.33, cairo version 1.16.0) of 2021-02-17 =20 Package: Org mode version 9.4.4 (release_9.4.4-231-gf46925) --=20 Nick