From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 wL7JAuPPHGLjKQEAgWs5BA (envelope-from ) for ; Mon, 28 Feb 2022 14:36:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yGNgAOPPHGLI4wAA9RJhRA (envelope-from ) for ; Mon, 28 Feb 2022 14:36:35 +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 94177867C for ; Mon, 28 Feb 2022 14:36:34 +0100 (CET) Received: from localhost ([::1]:57126 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nOgCX-0003NJ-8C for larch@yhetil.org; Mon, 28 Feb 2022 08:36:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60094) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOfzs-0008FI-3o for emacs-orgmode@gnu.org; Mon, 28 Feb 2022 08:23:28 -0500 Received: from [2001:4b98:dc4:8::229] (port=49587 helo=relay9-d.mail.gandi.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOfzq-00083m-7n for emacs-orgmode@gnu.org; Mon, 28 Feb 2022 08:23:27 -0500 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by mail.gandi.net (Postfix) with ESMTPSA id B2C76FF812; Mon, 28 Feb 2022 13:23:21 +0000 (UTC) From: Nicolas Goaziou To: David =?utf-8?Q?Luke=C5=A1?= Subject: Re: Protect Org export from auto-formatting hooks References: <87pmnagei5.fsf@nicolasgoaziou.fr> Mail-Followup-To: David =?utf-8?Q?Luke=C5=A1?= , emacs-orgmode@gnu.org Date: Mon, 28 Feb 2022 14:23:20 +0100 In-Reply-To: ("David =?utf-8?Q?Luke=C5=A1=22's?= message of "Mon, 28 Feb 2022 14:14:36 +0100") Message-ID: <87sfs33z1z.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2001:4b98:dc4:8::229 (failed) Received-SPF: pass client-ip=2001:4b98:dc4:8::229; envelope-from=mail@nicolasgoaziou.fr; helo=relay9-d.mail.gandi.net X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , Cc: emacs-orgmode@gnu.org 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=1646055394; 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; bh=AnDOPmFgJe4WOYoKJIEe8ACuVzVJQH1tqOXNR85L0zw=; b=Jh4N2v04S+V/MrSKmKATWKSj2Iy6LcSInexh1bC/boHE/SH1tr8mNorhRDIMAL+mpeJyuj VoGSDgwBlJ3FdwE53flg/JaqAt6Ah+YKMvkpUZwniwEQ3PJRuErnxMPT+W8l2NfNPHc/AN YFXAKnJ3PGIOsltjE9hc6Mv/NWRi/c3r+C+JBiPuhLS12pxM+cADrY0QuRjjTnvP7XAi8L +9DydiZOpUJWXfND1dWgyMBMgS7ESjAdN1ExCWNhQusGyV3MiF/Vc7xV+uKuro1CRkr61B S6YoihLA2vxFpMLJOqb8BHcDsVbtA+/TvVQRMt3///TICN8+1++feYwk6TsJtQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646055394; a=rsa-sha256; cv=none; b=lEU5oV4Qz/iw11gRleLQF7BUENPQ9+9StqJ4Vy5SIZ62KYYNuMvidulym2+K7Lmg4IW6da 3LJNFxiYp2wvNwmWnTx0qCoDHQssjd2cxBgMk97uJuzJzCrta3QNDsSYky/sKNRIC3tVIN XlZ8g20Px0qITg6RTGwRXk3IN1O8VqQkePKk4/jGCLMIP8mPGTs35NbxmVSxVnnUyTkINx Pp5ElFXopmkmC/0qkAy79oGWs2hfB1EaWTYHUcJr54yNCvipeJbjyXJlf9KCQ7Nry/1XeD PkoIieipfs9vmVxp2FW8kzLmlYrbpPCqRlqBHbRDeVAjNteh4Ta/dXZ2J/jkcQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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" X-Migadu-Spam-Score: -3.90 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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" X-Migadu-Queue-Id: 94177867C X-Spam-Score: -3.90 X-Migadu-Scanner: scn0.migadu.com X-TUID: clt3nY9uFTz6 Hello, David Luke=C5=A1 writes: > Thanks, that's indeed a much better way of doing it :) One can even > avoid the temp buffer altogether and write the `output' string > directly with `(write-region output nil file)`. Yup, even better. > Shall I prepare a patch? Or would you rather do it yourself, since it > was your idea? Please be my guest. :) Regards, --=20 Nicolas Goaziou