From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id WMWbGRrmnmVjbwAAkFu2QA (envelope-from ) for ; Wed, 10 Jan 2024 19:46:50 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id MIlJFhrmnmUxkgAA62LTzQ (envelope-from ) for ; Wed, 10 Jan 2024 19:46:50 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="oWazk5V/"; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1704912410; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=6Tr7SJYgpX65APyt+0TKw1MUekk73sEQCzOox67mxr8=; b=Hb4M2IVZoRZpP6sBQmVFc3+p+9vZK/pRMsGRDcRghw/ud/HbGuItESRq2zcT+Tx45M1Q3/ mIrF0kn1ec+ofAJ9Iqrc4M9ZsEe04xaiqLQyWqcdPgdKuhwkrlZf8NTSuFZEq5TowLcS3g 5NLWflHMxER+/tV+2endqqV/igPcxeBlZ5imQiwL0U93okJj8qxKyAMJ7zbvXDu0LgHDGD JkdjCIUgDKnJ+t55wMd0F52oaRxTtb6vwr0NsLuOmCHAEG5V7Nkz3ADtRztImi5Ox/8fIp cJACuUaI0ECWn20XLrH63ifriwbBFtevuAI5nhEIU808AsnO1qUt953gYbPslQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="oWazk5V/"; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1704912410; a=rsa-sha256; cv=none; b=rx04NtUsx2UH9aWtauRaT8LRUSjXdLsRQjHWP8OZkZXMfJuqMasbZ01KNqRiSq3616uijd NAuwoegnHJbzWqyb/24WGF4utlycchewTDYVOiD7q8VPkXYjcFK8KAv+uO/umxgMuRcLpr uQC9BuTM2H9eAfQfXFo8h8eEdMMjNLuCnqsniQl6j3r4qPe/s/lA6Bj6sc328kACkTXQFW Uz95ID6A9OqcK2wNEtKxegQpdEf031+NR4wLOxO5VBGUhYwptTFU2GYvzpJ4RmX6VaVIKD 7lvMSaqclLcT4F4chVBhnlNvAWGin3XeWU7HVLZRvjYJgw+gDLA25QRmMz1NFQ== 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 288C33830A for ; Wed, 10 Jan 2024 19:46:50 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNdaQ-0004sL-1J; Wed, 10 Jan 2024 13:45:58 -0500 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 1rNdaO-0004sD-Tf for emacs-orgmode@gnu.org; Wed, 10 Jan 2024 13:45:56 -0500 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 1rNdaL-00036X-7u for emacs-orgmode@gnu.org; Wed, 10 Jan 2024 13:45:56 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 321AD240101 for ; Wed, 10 Jan 2024 19:45:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1704912348; bh=t+iV9JS7QwYVAPxX7jY5dLWRz4/FO6sqXiCU0j7KKFI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=oWazk5V/qrJ00mxamC+u6jTQP5uHsRD5bCb/O2YtNvB48M3LUZvjnptXHZo4YZcHt C2e8Ky1wENRCbWpgOfG1ZesK0SDUrCdkVoSXfmxqnIc3rsTsdvqhErVH5iiyrDBehS EUImXFtUaY6WGMZ7NAX5m6+buzJIyIM8IK85e53fV0CE6gIZRDg+zllLoTVbTNuoLO YYpXqtueH/y8WHwhJq/wHBa7Z8fpM8ue/4sfx+0eFVfVyI4DPYc1vgMhAmijnvlOMG bb3RsZQ8nqXuH9ytPJgK4crHWbinYl14CUp7GRt/ZvlqGoRyb5p2IXdb4qLirAUhPZ NxZyTYjwNtEwQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4T9Gvv2SRzz9rxG; Wed, 10 Jan 2024 19:45:47 +0100 (CET) From: Ihor Radchenko To: Mark Kerr Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] "Invalid face reference" with org-agenda-deadline-faces In-Reply-To: References: <87cyu9kqye.fsf@localhost> Date: Wed, 10 Jan 2024 18:48:55 +0000 Message-ID: <87a5pdkors.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -7.19 X-Spam-Score: -7.19 X-Migadu-Queue-Id: 288C33830A X-TUID: +P5TtPGUi6U6 Mark Kerr writes: >> > Invalid face reference: org-agenda-deadline-today [6 times] >> > Invalid face reference: org-agenda-deadline-past [19 times] >> > --- >> >> These two faces have nothing to do with Org mode. Org mode simply does >> not define such faces and never did (I cannot find these face names in >> git history). In fact, Org mode does not define any of the faces in you >> custom value. >> > I understand that, but the whole point of 'org-agenda-deadline-faces' is > that it allows you to create *new faces*. So of course those user-defined > faces wouldn't be in the code. > For example, you could create a custom face called "deadline50" for any > todo's whose deadline warning time has elapsed by 50%, and change it's fa= ce > color to indicate that state in the agenda. > > From the docs for org-agenda-deadline-faces: > Faces for showing deadlines in the agenda. This is a list of cons cells. > The cdr of each cell is a face to be used, and it can also just be like > (:foreground "yellow"). Each car is a fraction of the head-warning time > that must have passed for this the face in the cdr to be used for display. > The numbers must be > given in descending order. The head-warning time is normally taken from > =E2=80=98org-deadline-warning-days=E2=80=99, but can also be specified in= the deadline > timestamp itself. >> This `org-agenda-deadline-faces` settings has been working without any >> > problems for years. I think the problem began with org v6.6.16, but am >> not >> > completely certain. >> >> I am not sure what you mean by "working" - incorrect faces could have >> been ignored by older Emacs. Newer Emacs indicate the problem with >> invalid faces. > > By "working", I mean that my 'org-agenda-deadline-faces' settings have > functioned as described in the documentation for years. > > In other words , my custom faces were created and appeared in the agenda > with the attributes I specified at the time I specified. Faces that you reference from org-agenda-deadline-faces should exist and should be valid faces. However, it does not look like your `org-agenda-deadline-past' and `org-agenda-deadline-today' faces are defined correctly. You might have used malformed face declaration. May you show how you define these custom faces in your config? >> Canceled. >> -- >> Ihor Radchenko // yantar92, > > I don't think this should be cancelled at this point, since the reasoning > was based upon an incorrect assumption of how org-agenda-deadline-faces > works. I do not see any problem in how org-agenda handles this variable. I suspect that the problem is in your config. If you think that the problem is on Org side, please provide a minimal reproducer starting from emacs -Q. See https://orgmode.org/manual/Feedback.html#Feedback --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at