From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UJGLButX52Oz5AAAbAwnHQ (envelope-from ) for ; Sat, 11 Feb 2023 09:55:07 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id EAajBetX52NUEQAAG6o9tA (envelope-from ) for ; Sat, 11 Feb 2023 09:55:07 +0100 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 BF69E2567E for ; Sat, 11 Feb 2023 09:55:06 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQleG-0003Lj-7l; Sat, 11 Feb 2023 03:54:20 -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 1pQleE-0003LN-EO for emacs-orgmode@gnu.org; Sat, 11 Feb 2023 03:54:18 -0500 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pQleC-0001tb-Nw for emacs-orgmode@gnu.org; Sat, 11 Feb 2023 03:54:18 -0500 Received: by mail-wm1-x32e.google.com with SMTP id bg13-20020a05600c3c8d00b003d9712b29d2so7863654wmb.2 for ; Sat, 11 Feb 2023 00:54:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:date:references:in-reply-to:subject:to:from:message-id :from:to:cc:subject:date:message-id:reply-to; bh=HvF68S2beU6d8ffqavaODfxsDduJ2E3QuP+yY7Jkk2M=; b=SatDYWSX5WDU/JDeT5/r4Wfwio76YCpxtgY736Xo0ZfyT/NKOELTvMgYpXVz2WxctA yapIlTNPlXhc0kD4magRE0jUl8iJZJAJpjGSOI9CxYgeQGz7XulUFw9ggLuWa6TqkStG 5T8F/clvWBaubKtkgh1h26/d458wwclU271u67pFN3JuU6S8I4UKkvR2+QOE5zhA9ijk 90L2APAcUdiLtNlclEvBAWnIDLVQIibSWUW6V2m7+3gc4Gpo5p4WN6lcOPVzgDfVruGI fO/5F/cf6oIQC5X9E9qLBA51Aa/ysdbSf2mSYo0fGqv0UdkE4eKWqM4aL4+Qowfc6WNo wNGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:date:references:in-reply-to:subject:to:from:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HvF68S2beU6d8ffqavaODfxsDduJ2E3QuP+yY7Jkk2M=; b=vHhl9HWcjktRB8pYuYzi8TZ2HjpMHsYf7LJKCPWa/2OgxP3+yFl+OKkGQmv5fapjbh b6RD1yj7B/Jb6PdMegQ8uD+Q/zwgp8ThNsN9+ROtLo2gLN7Ks/MgmkyByIrp78gpwARA 0G8RYHJdPSfjgilR7QArBtxwcF2VFsQzSgLgJdFVE65q5epQHwunVZ1W/R2713VrU6mx 3seX3GQoiejNe5d1QKAUFVmRVKVjN0QnUVJ5jHSzIWNN+pBgt8Xf/urqUDzFVwUv5PR2 hJuSiIT5GFOY5PPrAfqp/HdI8YzWkorM5uYeCvQJiA9meLdaxFejtf0jo6r/pitDDzgz 2RzA== X-Gm-Message-State: AO0yUKXJAJP81lARBkqpWoMnoUawXPDfpwkCsNX3ul4PLHcsilszXaO4 TqjT/E/Poonp7wo4KGisfTw= X-Google-Smtp-Source: AK7set8HJkY/BiA+/yUHFH0TBA1c+hzj4E4GT/YE/JXRZ7zohIa1tepBWAh2h6vszqZj/qIxhkCvuA== X-Received: by 2002:a05:600c:4d20:b0:3e0:9fe:34dd with SMTP id u32-20020a05600c4d2000b003e009fe34ddmr14705362wmp.4.1676105649423; Sat, 11 Feb 2023 00:54:09 -0800 (PST) Received: from keynux ([2a01:e0a:505:3460:169:7511:f49a:58eb]) by smtp.gmail.com with ESMTPSA id q14-20020a05600c46ce00b003db12112fcfsm8443874wmo.4.2023.02.11.00.54.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Feb 2023 00:54:08 -0800 (PST) Message-ID: <63e757b0.050a0220.88abf.16a2@mx.google.com> Received: by keynux (sSMTP sendmail emulation); Sat, 11 Feb 2023 09:54:07 +0100 From: Bruno Barbier To: Uwe Brauer , emacs-orgmode@gnu.org Subject: Re: export to html, colored dates: org-mime export works but org to html does not In-Reply-To: <87a61kwqre.fsf@mat.ucm.es> References: <87a61kwqre.fsf@mat.ucm.es> Date: Sat, 11 Feb 2023 09:54:07 +0100 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=brubar.cs@gmail.com; helo=mail-wm1-x32e.google.com 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, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676105706; a=rsa-sha256; cv=none; b=W1/Y+/kLOtR2XHByF/MH1EtV9fTSCcgeeaRyFbhzdtICDYkYxzbE5gMwafRO16q52OMk6q aig54cSm1SXd9yM+AJikH3LTDIfeiFGTT2LBAn9xKVW71pdiFZIg3siv/RdjTKMmZEFloY U90JOsC4+1dMWSNBN4UHNSP6WYC+9OKLF0ylWTXHWeB+V4xdAehLgzrl4w9im62yzXTmp3 lI6oit+Jd0SJwnZq1Y8tEmyb5NPuKPG+kPpNrj2y7IK8RyZX6ugwF5fwkJaWbqKrovR+iw zBRB5da499Wc/OZrAI7AMmks+M7N5/A+kY8aFhJNo5Uxzx5cJf3gBEbdyXbefw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=SatDYWSX; dmarc=pass (policy=none) header.from=gmail.com; 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=1676105706; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=HvF68S2beU6d8ffqavaODfxsDduJ2E3QuP+yY7Jkk2M=; b=YriNrCPyYAqZdPqfir4Gg4nZH5lPrZiHUj/ZteBjoT+rGWl4X75BiUkk0PWksgki5KiLP3 F5Lj/zpXAB7BnoIPHEl0x8BiDIMSlBN3CzxfgWxpilN67GqwUrodqz7bcWlPlBpOcRRFTE a1j9MmpX898qXOLEEOapcsHgPfMYaooZ8DJ5w6Ts4Gh3g0hF0h2C20mhBH1rhCcxkjV9wc vFJj2V4HvyrCe88ijsThz9UwL4tWntQ3IWm6gO75XpH4w6iixPaPRSGr62c81hzuGHZmst 9PWS/F6QdPA0acyMbcK0UCaOBjPcXEqEDZygsYBWUs3CPLnJr6wuFwGwFzwJTw== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=SatDYWSX; dmarc=pass (policy=none) header.from=gmail.com; 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: -6.30 X-Spam-Score: -6.30 X-Migadu-Queue-Id: BF69E2567E X-Migadu-Scanner: scn1.migadu.com X-TUID: 9vDQuSuWuYXr Uwe Brauer writes: .. > (add-to-list 'org-export-filter-plain-text-functions 'my-html-red) .. > But if I have > #<2023-02-11># > in an org file and export it to html, no color is added to the timestamp. > > I don't know how to debug this. > > Any idea? In org, "<2023-02-11>" is a date, not plain text. Thus, your function doesn't get called with a text matching your date. Note that using macros, you could get almost what you want. #+MACRO: IDATE @@html:$1@@ {{{IDATE(<2023-02-11>)}}} And maybe ther is a way to also customize date format to get rid of the brackets. Bruno