From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id CDu+HD3jJ2ZtwwAAe85BDQ:P1 (envelope-from ) for ; Tue, 23 Apr 2024 18:35:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id CDu+HD3jJ2ZtwwAAe85BDQ (envelope-from ) for ; Tue, 23 Apr 2024 18:35:09 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=e+2m8yfu; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713890109; a=rsa-sha256; cv=none; b=pQjY/ewD/J0KsEe7IFfCRxQE1Pra2lDU1dFy0wcwB0WJErRN2pRGieupckDbHP4bChJXeM loj1K2cIC6m3MatPdECCqxUxE0xQlBri4lWm6UjKtXu2ZPJKe5cMr1OF5Wc2JDhSzfdnEQ YTrnlT0NqXBikFUucbtz2OnhhDTwgbsuwq9tvuRrGYg70tWt326UvMLsGI/9lxAtFxqqBK XT8V0NsenIDZH+kGxBFdpYKsyQ0e+UvEmPoNPxkRXmAPUZKCEIkf7s6ty+R7AweAVIKxk+ JuBFqOZG48DIV/xh8YIqf7nR0/ovw+y5dJFtmhNA+bzrTyDUwlNI4nL/mi64NQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=e+2m8yfu; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713890109; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=TeydktsuryPjAQ4oVrtZW2jNCZd3Ih/vdx68BDhnHXg=; b=YMiXPIl3HFuWvXF/dgnJWaRvkYbrMm01h/f1d+3VN0ED5Wv+eevZ4LXVm+iHCTNr8uRpKL uKMl0ZBVADaAYsQXhm61YUXiHH0t4mJ+Qi6D8IqNYEfKpLkXv0UyuOxOGTJmZV4P/JftPA fkNFsXlvG+xsHfkwp9sqaDtIuPYSN3kHFvPIE2hhjEdvqKBs2vEOuh4/ulv6E1NJMNYyVM IYCiOVMhIAHZUEu6GdG10zFZ7Pgjxhyxe9o5cek8p7IpuznXr8ChjPLyB2mLFladCEpOMY r9ZIqzUC178hnGqvsH1cqIS3J9+jEBpDpY5XN0doKtdmCvdykDU9dVs+XwOYVw== 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 37797255C4 for ; Tue, 23 Apr 2024 18:35:09 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rzJ6E-0004LD-Se; Tue, 23 Apr 2024 12:34:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rzJ6C-0004HR-Dl for emacs-orgmode@gnu.org; Tue, 23 Apr 2024 12:34:28 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rzJ6A-0001W4-4P for emacs-orgmode@gnu.org; Tue, 23 Apr 2024 12:34:28 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id E1B2D240101 for ; Tue, 23 Apr 2024 18:34:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1713890063; bh=1WQQW+OUtciXQ/BAdLmk7Hkt0WUN5EXCjuNAVzYFjm4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=e+2m8yfuCAExfuHJC57mpy9cej81Pg9B8PfeHykNz7eNqtG1gjJ/ZPKH7dZNl3Mum FamYr4ctfsffYAE7FYnbH3eHdKLWT1jc0aKwfJLU7yYK0neUtKWjE7GpU2UbrcgqOn 8Rl0MlZaSkHAQGpd6eHJY8Cq3z7kQQwQv7HrJccMjGMC+EsnR5+G1liQ+H4yqij8CW kBN+oiE+tA8N6XO+sblOMLkKZJgrHEmyaOfWooD4Ib2obA8a85G6DDLiIDSrbw6QVp pAT4gmC+VB7ml3RdRW3P9YMsOwTGPStpyl3BIVko5gjgeCl4QgblkMaEdnaosX1QBH HlDW9IzJhzyKA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VP74H1vgTz9rxD; Tue, 23 Apr 2024 18:34:23 +0200 (CEST) From: Ihor Radchenko To: Alexander Adolf Cc: emacs-orgmode@gnu.org Subject: Re: columnview dynamic block - different time summing behaviour for EFFORT and CLOCKSUM In-Reply-To: References: <486d2b818b62c71b3f307305c06c4318@condition-alpha.com> <871q7cypxl.fsf@localhost> <00aa9bf72dc93f6554bdd236fdfba192@condition-alpha.com> <87y19hbb05.fsf@localhost> <8b72386d118136210f27b553f0a13066@condition-alpha.com> <87cyqtyzgt.fsf@localhost> <91dfeb0fed1a1fe0564e5eb9b95a409d@condition-alpha.com> <87a5lpeiey.fsf@localhost> <87zftp6zz3.fsf@localhost> <98f04a910f31ff9ab38e2ddf9e7f2f5c@condition-alpha.com> <87mspmq1ce.fsf@localhost> <117e93f189241f4800af207ce30aa606@condition-alpha.com> <87zftkpbbf.fsf@localhost> Date: Tue, 23 Apr 2024 16:35:15 +0000 Message-ID: <87h6fs11h8.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -7.46 X-Migadu-Queue-Id: 37797255C4 X-Migadu-Spam-Score: -7.46 X-Migadu-Scanner: mx10.migadu.com X-TUID: Fy4vdPxAQaiv Alexander Adolf writes: >>> + (let ((search (org-link-heading-search-string raw))) >>> + (org-link-make-string >>> + (if (not (buffer-file-name)) search >>> + (format "file:%s::%s" (buffer-file-name) search)) >>> + cleaned)) >> >> This will unconditionally generate file: links, even when the dynamic >> block only refers to headings in the same buffer. The clock tables do >> use internal links when appropriate (see `org-clock-get-table-data'). > > Um, actually it does exactly the same as `org-clock-get-table-data' > (from where I borrowed the code snippet): it generates file: links in > buffers visiting files, and local links in buffers not visiting any > file. > > Perhaps you were looking at a test case in which > `org-clock-get-table-data' gets called in an Org buffer that is not > visiting any file? Nope. I was writing a test case (the one I shared) and noticed that file: links are generated. Then, I misread what org-clock does. You don't need to do anything other than adjusting the test example I shared to use file: links. >> If you can, please add some more tests like mine checking >> `org-columns--clean-item'. >> [...] > > Thanks for the springboard hint to get started with adding tests, which > I'm happy to do, of course. > > Is there any way for me to run a specific subset of the tests only, for > instance "make test colview", or similar? make test BTEST_RE="test-org-colview/dblock" # the same, but do not re-compile Org mode make test-dirty BTEST_RE="test-org-colview/dblock" -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at