From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id nNMdMq6eWmLRYAAAgWs5BA (envelope-from ) for ; Sat, 16 Apr 2022 12:47:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 2NQoKq6eWmJeqgAAG6o9tA (envelope-from ) for ; Sat, 16 Apr 2022 12:47:10 +0200 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 4BA633F2D0 for ; Sat, 16 Apr 2022 12:47:10 +0200 (CEST) Received: from localhost ([::1]:42040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nffxN-0005J8-AQ for larch@yhetil.org; Sat, 16 Apr 2022 06:47:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nffwf-0005Ix-32 for emacs-orgmode@gnu.org; Sat, 16 Apr 2022 06:46:25 -0400 Received: from mout02.posteo.de ([185.67.36.66]:53103) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nffwc-0000ck-Mb for emacs-orgmode@gnu.org; Sat, 16 Apr 2022 06:46:24 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 27444240108 for ; Sat, 16 Apr 2022 12:46:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1650105978; bh=XOXk9PtRBWFkP6vrZyLsTGU7OkVMXGCMHizZEHj2YRc=; h=From:To:Cc:Subject:Date:From; b=cpPuudPVPB2FQkgBkk9GMKRAYkLkwkQ3pt8ntc2FnuZft95RFj87gZQN1ABvxd5eb Cxy0kBmtFjloIpegIo6N7qLyfNbuE5yqpsMR3kDue8ppE24Hri+bv1Q6AMl30wv4YH pSlDEV9z+is50+WrPZG4TaDmhNZ1u406vr1RTCTf8uhTUCsbWkK/MwyWx52HrCuvmy 1t+M7QPZNx92WdmSCySzabsC9YcUqsSgWzFLvdkQ73rupT+LddyYrdrxV5RtVndbr+ xor6EOoqy683S2qIWankpEf8NGx60JV3sFPCEzrZYyRpS3uCxv/YAorCZrcO2SLVM6 qW8dTi903f8uw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4KgVHF0BmXz6tmJ; Sat, 16 Apr 2022 12:46:16 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Ihor Radchenko Subject: Re: [PATCH] org-element-export-snippet-parser: Fix snippets without ending @@ References: <87ee1xd2tp.fsf@localhost> Date: Sat, 16 Apr 2022 10:46:14 +0000 In-Reply-To: <87ee1xd2tp.fsf@localhost> (Ihor Radchenko's message of "Sat, 16 Apr 2022 13:17:38 +0800") Message-ID: <878rs5mhl5.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_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: , Cc: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650106030; 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=Cfwd9rsZI5QIzY9bhEfkwpIds1LQCYlxZMJRwA5x2gI=; b=AubiCcuRNaw3Y+de5fsjjSlr9JxCRoLamGG4NENXyamG13vkw7mVvyHLSYr++o8UDnWHQv CRguj20nkIQxZPWuf8znBVXlRbhPCL8mHF7pyOBt3nlvgbGLars2DBzvHlwtkA94kZJfY3 vgrmYkC/cAGrguXOtcH+QaUO4M8pVB8uu/UMbqEJZtCz4kXs3qXdbJ8keFgA/fDjtdLLxM VYJPQPpJlH5uszEHM3tQe0uGrkgQvbX0O8QVdPrZXgQY007DR2MEC7rzIy0TUDMU0m9UPj nkdyfnBQTBr+vdO4qcIRS9TVcUnnFrvmaxm7HXc2/d6mc9EJfLqdnGeiQXzMzQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650106030; a=rsa-sha256; cv=none; b=QYq3jZc6ZRxZ+0bBHFrJJyNEjas8iV5dN9DY7joG3ZdAu+I31eVm9GNYJQHNv8f1W2eS9c mOBdA0BNjbNqAbfBayia71IVGkor7OrOK0Pao7HvMFpHJUyjtqDBy13WsVfprdMIpgAfzb j1uPNcmK/4bWUd8byj0imxjP+X9JT0bCWdda5MK9BJ73ng3s4IXlg6r3wfpiesp6gp7taW P0VGerFOCBpmytqrCpTI4xP81b0TY6vBBfP090rAf2hiBQB61wbOWJd3rbgIbnPG5ETinW HOIBqyu8fJhMPb705cMGJiiF5IwOH4VOAdelP23fXMf4X4WrQQITLUUQezNcQw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=cpPuudPV; 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: -9.85 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=cpPuudPV; 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: 4BA633F2D0 X-Spam-Score: -9.85 X-Migadu-Scanner: scn0.migadu.com X-TUID: qyBlentUk07P Ihor Radchenko writes: > Our current parser recognises the opening "@@html:" as a standalone > snippet. > > Unless I misunderstand something, it is not intentional. > > The fix is attached. This fix makes a lot of sense to me. I've always been intrigued by this 'strange' behavior of html export snippets. Of course, the main danger of this unintentional behavior is error propagation. I remember seeing it on a few sites, like here: https://emacs.stackexchange.com/a/30470 Best regards, Juan Manuel