From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 mPCCCM9R52MhcgEAbAwnHQ (envelope-from ) for ; Sat, 11 Feb 2023 09:29:03 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oJuJCM9R52NMsgAA9RJhRA (envelope-from ) for ; Sat, 11 Feb 2023 09:29:03 +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 DF93C25330 for ; Sat, 11 Feb 2023 09:29:02 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQlEs-00068W-Eq; Sat, 11 Feb 2023 03:28:06 -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 1pQlEr-00068O-K8 for emacs-orgmode@gnu.org; Sat, 11 Feb 2023 03:28:05 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQlEp-0004Xq-Id for emacs-orgmode@gnu.org; Sat, 11 Feb 2023 03:28:05 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pQlEm-000572-Vr for emacs-orgmode@gnu.org; Sat, 11 Feb 2023 09:28:00 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-orgmode@gnu.org To: emacs-orgmode@gnu.org From: Uwe Brauer Subject: export to html, colored dates: org-mime export works but org to html does not Date: Sat, 11 Feb 2023 09:27:49 +0100 Message-ID: <87a61kwqre.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cancel-Lock: sha1:qJ7OODcCGSqlwOqlHsWbVCgSa/4= Mail-Copies-To: never Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.248, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=mat.ucm.es (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676104143; a=rsa-sha256; cv=none; b=ZZacr09B9F8afMg77DDkMrLMcamu5fTCP8MB5RtfdGL3U56lfU18q+vnblh+i3uPH3aWta VKrXStcuid802GBfMrEQ1gIgg0Pkf9kBQHVZdrBFATKFBP84Hq2EldzCIO8vF0DqVg+OB/ lr5bhdp7n/Z3uKfznCSuiiTiBDzTUfkeaijuBdR6k610r6j3KdjXgwWdf6F/EviG2aixkm 2aUKImwv5PRGJR8KE13RBx8+9veeZe61FDDB5BoVRmbVaKWeIDlQqslE1IPCbg1LukpnZi j2CO5Z6i2vZR4b2bB1pmvqEj7u3k/pqt0G+SS7eJxeTG1YHrrWLk40xPQ4QvxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676104142; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=NjuTXKcSeA+0ynAYQsupsGq1/HOUxaYScrgccSclvQU=; b=kXZzNbai9VoKNBMyTzeU3ErQsYnReylv3XMgjvJ3Tr1Lf6i0hIllonY6DBsxpoHrHEBp+X +64I9MKYMtGhlH2dLZfsEWn4GWykfAb3dyEAvSyVO9J40yKxBGZq7YHn4rmN4gO/6tCAwO 3wLerh5u3Byf/RBB8ZyUXecms0f05MUG0foVbG/+y30N0JdfEZwjneCd9dvV/r83goEVVG Br0pmDdzHJQqAUazUw+sVFQjWgfxY9A4tcQ2YunT7LpSwPBJdtGOhom2V3RJ39ORkntWSJ YbwrIgAUuAw1DR+dZ6FH5yXsLxJYf68NB/o6ts2Ym6cAjo2rlNTLV3S1YUw+Ug== Authentication-Results: aspmx1.migadu.com; dkim=none; 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=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=mat.ucm.es (policy=none) X-Migadu-Spam-Score: 2.90 X-Spam-Score: 2.90 X-Migadu-Queue-Id: DF93C25330 X-Migadu-Scanner: scn0.migadu.com X-TUID: M3gTHE15nn2V Hi The following drives me a bit crazy. I have two functions, one for email. (defun my-color-red-html () (interactive) (while (re-search-forward "#\\([^#]*\\)#" nil t) (replace-match "\\1"))) I put this function into two hooks (add-hook 'org-mime-html-hook 'my-color-red-html) (defun my-html-red (text backend info) (when (org-export-derived-backend-p backend 'html) (replace-regexp-in-string "#\\([^#]*\\)#" "\\1" text))) (add-to-list 'org-export-filter-plain-text-functions 'my-html-red) Now if I have #<2023-02-11># in an email it gets replaced by 11.02.2023 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? Regards Uwe Brauer -- Warning: Content may be disturbing to some audiences I strongly condemn Putin's war of aggression against the Ukraine. I support to deliver weapons to Ukraine's military. I support the ban of Russia from SWIFT. I support the EU membership of the Ukraine. https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/