From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qXwQBqEyCWGYGQAAgWs5BA (envelope-from ) for ; Tue, 03 Aug 2021 14:12:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GHckAaEyCWEYbgAA1q6Kng (envelope-from ) for ; Tue, 03 Aug 2021 12:12:17 +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 DE73119092 for ; Tue, 3 Aug 2021 14:12:15 +0200 (CEST) Received: from localhost ([::1]:42418 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mAtHK-0007nM-FR for larch@yhetil.org; Tue, 03 Aug 2021 08:12:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49006) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9LrK-000831-8U for emacs-orgmode@gnu.org; Fri, 30 Jul 2021 02:19:02 -0400 Received: from w1.tutanota.de ([81.3.6.162]:32860) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9LrH-0001do-DR for emacs-orgmode@gnu.org; Fri, 30 Jul 2021 02:19:02 -0400 Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id 8DA2DFA0D48 for ; Fri, 30 Jul 2021 06:18:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1627625935; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender; bh=4+YU8dBF9CqmbTWr40jXHZl1ZCZvxoUqFXHxQRPoBd4=; b=ZShueQOY4doMdibb2UM0h4hkGk5g5OWcVCCezaaU34L/IQ1/CVLiP5OvV244CfRU 7Hah7bJyx9YEp2gqj3JAyZLGw4gkCDIQqAMNkCwsDkbJEF+fQSWXoaNLRaErpDIWK8t NXS2Jl8+emrs2OYvk15BakvcUa7U+hsQVgDq3Gaa2K7QtW0FFhIs66OgWb3SZ+hwlhW m/lC50FP+5kHFj3OVY4pwRa0yTEckcLjNpbbBueldmmI0AgzGiq9IIQHEIADo1w/iCO k/DL4TmLX2ppxE4+OGp5SixMyEgZQ3aGmnGW9reYonsFSJnQnb8f3RkCBgmAT91H8ft 03LlSVMiMA== Date: Fri, 30 Jul 2021 08:18:55 +0200 (CEST) To: emacs-orgmode@gnu.org Message-ID: Subject: [BUG] Second item of `org-agenda-timerange-leaders' cannot be a function [9.4.6 (9.4.6-gf70e36 @ /home/viz/lib/emacs/straight/build/org/)] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=81.3.6.162; envelope-from=visuwesh@tutanota.com; helo=w1.tutanota.de 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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 03 Aug 2021 08:11:27 -0400 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" Reply-to: Visuwesh From: Visuwesh via "General discussions about Org-mode." X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1627992736; h=from:from:sender:sender:reply-to: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:dkim-signature; bh=4+YU8dBF9CqmbTWr40jXHZl1ZCZvxoUqFXHxQRPoBd4=; b=hRd8+1iuvvXalZHFJo1ADCRxm4oQA3wRNDoqqhNzzFDhxX92GHWU+Y+xlS2IusJdta+O/5 JTVSn2P+jYdThE8xwXsrRvpqnVVds/CJuHrU5ji+Xfhe+8X1gDtJTTo5Ed/uRMSXzNOjDI pGWRb1/zn/a4Utb9AwzdW+LSITyHvWmeBB2qmsGVJu3Ip1sTTsmztwIxPrdsOu/sHdaR2r KzvI2sfDDw+rE0KRNOXmGhWU7q0k3Gt0VpFtdl0eOYBEBudiVX7Q0r5+qWFPQaU2KTsoGJ VUvrdBLXhx46sI7rvKlSDPW+v43nTkKcr6Xa67H1ZmoxLR0/8PdBHEiyIdCdmA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627992736; a=rsa-sha256; cv=none; b=cmBtro0HCb1IGtgXdSjbUwSivRKmq6dcBgRe+3TsSj+rMxJ49DDt/1QdhAtxHkZsZCHg8F BT1ocy/PS8IMCVO+cRm/zFFYA5oeD56Dp8Dot2M+OAzu2hcc37aT9OC6krOoD92CvDBWrL MhQYwS47GbjAqeAhMQ9SZAjiV4vhGpeZUXF00tpcFcTtb9f5NdhjNMaxC4YlPWaSJahq9B zjIhuWrwy/SHxvsfURy8YZPdQmReVjZdFXf+ZzNciHAIzIVK054vIsy2aBdu5G/et8CO6l W0TvltBn4Q++o0F5f4xR2DIlLHnOEWSH4ORxOylw6bdMC6hARPyWc8F28+cMgw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tutanota.com header.s=s1 header.b=ZShueQOY; dmarc=pass (policy=none) header.from=gnu.org; 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: -1.92 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tutanota.com header.s=s1 header.b=ZShueQOY; dmarc=pass (policy=none) header.from=gnu.org; 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: DE73119092 X-Spam-Score: -1.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: rKesI+QCCfZM Looking at the definition of `org-agenda-timerange-leaders' suggests that the second item of the list can be a function. =C2=A0=C2=A0=C2=A0 (defcustom org-agenda-timerange-leaders '("" "(%d/%d): "= ) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "Text preceding timerange entries in the age= nda view. =C2=A0=C2=A0=C2=A0 This is a list with two strings.=C2=A0 The first applies= when the range =C2=A0=C2=A0=C2=A0 is entirely on one day.=C2=A0 The second applies if the = range spans several days. =C2=A0=C2=A0=C2=A0 The strings may have two \"%d\" format specifiers which = will be filled =C2=A0=C2=A0=C2=A0 with the sequence number of the days, and the total numb= er of days in the =C2=A0=C2=A0=C2=A0 range, respectively." =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 :group 'org-agenda-line-format =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 :type '(list =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (string :tag "Deadli= ne today=C2=A0=C2=A0 ") =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (choice :tag "Deadli= ne relative" =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 (string :tag "Format string") =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 (function)))) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^^^ However, setting it to a function simply yields a type error since `format' expects a string.=C2=A0 This has been a problem ever since the option was introduced in the commit ea258dbdb.=C2=A0=C2=A0 It would be nice if org could accept a function, as one would expect=20 from the definition of the concerned option.=C2=A0 The function would accep= t two arguments and return a format-string or a _formatted_ string? Regards. P.S. Please add me to CCs since I don't follow the mailing list.