From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cF2lKNM142HmUwEAgWs5BA (envelope-from ) for ; Sat, 15 Jan 2022 22:00:03 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id OLeKIdM142E/hAAAG6o9tA (envelope-from ) for ; Sat, 15 Jan 2022 22:00: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 B27C4322E2 for ; Sat, 15 Jan 2022 22:00:02 +0100 (CET) Received: from localhost ([::1]:58904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n8q9Z-0001xq-Qr for larch@yhetil.org; Sat, 15 Jan 2022 16:00:01 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59622) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8q8K-0001xJ-I6 for emacs-orgmode@gnu.org; Sat, 15 Jan 2022 15:58:44 -0500 Received: from mout02.posteo.de ([185.67.36.66]:38151) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8q8H-0007jN-Ph for emacs-orgmode@gnu.org; Sat, 15 Jan 2022 15:58:44 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 78CD6240105 for ; Sat, 15 Jan 2022 21:58:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1642280318; bh=dAB2nUak596HKza0zVQDo7dUMqDNlPwfuHa4vOXYw+E=; h=From:To:Cc:Subject:Date:From; b=ddW0YVFPybhSWSA9HGHlAnj0vYYVBE36KfwwTLfkSb4IUhhP/4mGnKJImS26VTEBy zu2/8HYVJwucX5RXJjUliw7Y4VMnTTUf2nkXR56KervPkBdFvZBBFsdxHeJqklLxLJ cZlgPkcyc/ff0kGl9G1d3dV6zcg6iqca44YzGqHOFq9zKA0qntr5AELEGctSVtctOc CctRdT7wNoBRSHOEvl30xejQ+fvyu6H3R9bMsO5aDEx2gtDRYE/zEw2G+rfV+gzr7M 1eKlVjeX0KaPhE0e/woSa0T176LRTEORvfO9OGIN69OpgCbW47eVOGZ+T6EcCIyJAJ iGWSfLGqaPeEw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Jbr9n4cW9z9rxL; Sat, 15 Jan 2022 21:58:37 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Uwe Brauer Subject: Re: org-->html text between @ should be red. References: <87fspolvss.fsf@mat.ucm.es> <87v8ykamh0.fsf@posteo.net> <87ilukkcvd.fsf@mat.ucm.es> <87mtjwahxq.fsf@posteo.net> <87bl0cbvc4.fsf@mat.ucm.es> Date: Sat, 15 Jan 2022 20:58:36 +0000 In-Reply-To: <87bl0cbvc4.fsf@mat.ucm.es> (Uwe Brauer's message of "Sat, 15 Jan 2022 21:24:59 +0100") Message-ID: <87ilukaf7n.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@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_H3=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: , Cc: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642280402; 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=cQVzVtOrBEJ8YdzWTK9BYbE9FXht/NTUS8XI5xo/1Po=; b=j0ceh2ZgL95TiwlRMXGOGTlohyMRP6QqoJ49f2FpeDMOeo1dzL4oQDQ4GQXGNYOoYd58uQ UmBGFNAIPJjHDnsqxyvr/CvQLMSVUHf8E3W9jnyMOwWpN27t+faJgYtW64U4RDUS+ElWbW MDh9n63SDPbsiPka58qz02mCnYDNe0jGWCFzADtQjx6q08K9YJzVCseU+3si+7zI1LD5GD rNuIkpNp/2wzfTpdL61tn1piyVHXF/+FVIWm+Q2S0NAz4Uvm92a4+OjlkGt4c6MGyR2oMl XiUFoVaTAcKRVHoA2Ssyf/6TVxv3CHOIAA33aMPU2qsoEM3A9kwIYELgK+CaFQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642280402; a=rsa-sha256; cv=none; b=SR88piLmI83qGONAP52qRXMGzCYNi4O+chdm45aMJMrZ3xOCTetAcxzrBM52csu3X6LYx2 jomB17utbuCACTKUiq6Q7yIpupl/Q6zc4Wv4eow2kw0YO3ERl3D6DyRgWRnkV3pmgE6Kgy w2RfBP2XU9AxE5eBTqJ2oILA7EDBeTY/HltBaEO8MnxVT1EZ9TJ0yK/B/XogugmVbHKlj/ SO2Na2VOPlmf3rZZOxWszKKbEETJ+s+vrODo6OEb7Nkb3Kk0WAMDnFLwUj8+CahY4HXrz0 5xJwibb+m4XJz+qnaCvjJs05PzGPvBSiI0UGt4LRqU2CJbUx6qIcHACVgRV+6g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ddW0YVFP; 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" X-Migadu-Spam-Score: -4.52 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ddW0YVFP; 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" X-Migadu-Queue-Id: B27C4322E2 X-Spam-Score: -4.52 X-Migadu-Scanner: scn1.migadu.com X-TUID: aB9G9OTifSlc Uwe Brauer writes: > (add-to-list 'org-export-filter-plain-text-functions 'my-html-red) > > How could I remove something from a list? I think this would work: (setq org-export-filter-plain-text-functions (remove 'my-html-red org-export-filter-plain-text-functions)) Anyway, I recommend that you take a look at the documentation on filters that Timothy pointed you to, as custom filters are tremendously useful and versatile, and very "surgical". I use them a lot! You can also apply a filter only in a document, by using the #+bind keyword and including the function in a non-exportable code block: #+begin_src emacs-lisp :exports results :results none (defun my-html-red (text backend info) (when (org-export-derived-backend-p backend 'html) (replace-regexp-in-string "@\\([^@]*\\)@" "\\1" text))) #+end_src #+bind: org-export-filter-plain-text-functions (my-html-red) (You need to set org-export-allow-bind-keywords to non-nil) Best regards, Juan Manuel