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 OAt9IR5Ff2LMPQEAbAwnHQ (envelope-from ) for ; Sat, 14 May 2022 07:58:54 +0200 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 YClvIB5Ff2IWhAEAG6o9tA (envelope-from ) for ; Sat, 14 May 2022 07:58:54 +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 229AB21D2A for ; Sat, 14 May 2022 07:58:54 +0200 (CEST) Received: from localhost ([::1]:44590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1npknk-0002vf-LF for larch@yhetil.org; Sat, 14 May 2022 01:58:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npkjZ-0002vG-5R for emacs-orgmode@gnu.org; Sat, 14 May 2022 01:54:35 -0400 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]:35585) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1npkjX-0004Vs-MA for emacs-orgmode@gnu.org; Sat, 14 May 2022 01:54:32 -0400 Received: by mail-pl1-x62d.google.com with SMTP id c9so9856304plh.2 for ; Fri, 13 May 2022 22:54:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=ovpW1aWgE/uVfQKnMC2zU2g7Oadh6JeG73Ve0xGEj98=; b=Q/WiYbH3w64HzzLZcYkQ9Q8Oyq7Ei+m04hrJpsIosiXho7GG7Daxsqh2o5wTrhz4O1 5RoaingNI/05DiYshJZFv8lSfDx5pBUKddoZBBQuSEf1PBL0ElCo1lY2yo3Y6vdDm2gH d1L+z7iSRNBmMFFw/A9ccUC4SzIAfcWfJEenNlUTuHRIBtNx0NL9wuAmtBA7251Zhrp5 f5bhl4Ub//FbwSLqBf79QKPPwXOmXKMJDq5LRctGyBAtiK6Q3x0S4/Op091a25OWQsJC 5PLlSWJGz4yuVpEYS6+HSyqmYr1juPUpUeGectGnIFWvw5vTcuhxyUReXx3UTkMzuJzv rOZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=ovpW1aWgE/uVfQKnMC2zU2g7Oadh6JeG73Ve0xGEj98=; b=hOtlu0ZAVod6GM+Xa5GKFVPjKRYggEP0Qo3bi3HVysr4I5x/YnQsMhKvosNZUcUNGC cp5nHbFSxbQoimY5MlzBUPTdHOohws8VLzs+Y7noK1e6fh0iYJ2hhAepQMw+KNYKPTmd VPa6d+0L8gI+u17ChD/rKgaKyGU9KNmCIKCnQgh3f0YJ6dBxztxWG/TwkzsU9plQHX5d nb9E89Q+SykQrGU0+0wPE48MPtatc08noEIpRrNelUiw8ZSERdvi1gLWXJaeeb7OtuhJ s9wKDd456oaOUal+DijjfLDN5M9Mc5vJHwKJKNG3igaeIhu1QSg1xN0ddh1pymTOIvPA 5lZw== X-Gm-Message-State: AOAM532TntemvNlefzy/Baw81RRyvpAfmADxgND3kPto8i1MIW+rgBsw IuSk4NSJHOB0/+iqvMoRdPQ= X-Google-Smtp-Source: ABdhPJzrsw3GlILhA09RGOcgSR3FWrdHgh7THAOwf/y1oseYPFIZ0/bQx1Ip1VAgaSM5JEjyt3xMzA== X-Received: by 2002:a17:90b:3909:b0:1dc:2805:9aeb with SMTP id ob9-20020a17090b390900b001dc28059aebmr19493035pjb.147.1652507669238; Fri, 13 May 2022 22:54:29 -0700 (PDT) Received: from localhost (61-216-157-181.hinet-ip.hinet.net. [61.216.157.181]) by smtp.gmail.com with ESMTPSA id x5-20020a63cc05000000b003dafd8f0760sm2597476pgf.28.2022.05.13.22.54.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 22:54:28 -0700 (PDT) From: Ihor Radchenko To: Nicolas Goaziou Cc: Robert Nikander , emacs-orgmode@gnu.org Subject: Re: [PATCH] org-element--current-element: Fix #+BEGIN$ parsed as special block In-Reply-To: <878rw7cgp7.fsf@nicolasgoaziou.fr> References: <87bl13s9mg.fsf@localhost> <878rw7cgp7.fsf@nicolasgoaziou.fr> Date: Sat, 14 May 2022 13:55:10 +0800 Message-ID: <87o800bqv5.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=yantar92@gmail.com; helo=mail-pl1-x62d.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: , 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=1652507934; 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=ovpW1aWgE/uVfQKnMC2zU2g7Oadh6JeG73Ve0xGEj98=; b=M7mN0ewIr3XBaacFihkC5yCWvjruyUbaEssfiButALvhDFIBb6TZTW/Ve/el0sTN9YszmE P3i9W+YH/xpdiukgUIxhSpi9VpFQk8LoXD90kV0tHExIx7VYLp1zdXNn6nKMOvAGl17de6 FqA9t8wO3DMXzg0rMPzPW+PyCXJfDnphUkM5Q5MM+M7imDiy74ri/krTr2k54HKUmTuL82 TvFkw0UKp27r/77eluCgTxYshQihUwQpkB9ijXek084pPCT7xNsQaaJnIXJSiHFYkZu5fG h49EU6kjBXZLPJlviP8jBZYC1N1u/YZR/UNKXKOH2tR2Yxp8hk3qsNLDx1oabA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652507934; a=rsa-sha256; cv=none; b=GnVGSJogZ05y/fa+KS8D5IY2z/a5+zjmd92Lb7Bi3mVXbdupDE5G9+gqJqiDGegv6lsJ3I /ugkHB0F4U9zSTMRqPgxBCnlNXfS4q0jZEOPpY7C2t0n+6hQk/E0WGk7FxtpeP6PTOu+z/ oEVj0Jy8268+PA/dH7+eNVMEDtUy0Xxlko+5imIChvhbDLH6qYtzOr27ZYe5GLjifLNjem rAHrivGpiNv9xcgW4ai4MCx15MbKpnGZVTmsPWQkDvWDqnfRFzbn5ULgnEHmpU138SUi1P zLRaXY/yTLlVFvx0z8B+dpss2SdLp+phw06nZ9B2/tF7sfTrFhwoT9AbP1CT0A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="Q/WiYbH3"; 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: -7.53 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="Q/WiYbH3"; 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-Queue-Id: 229AB21D2A X-Spam-Score: -7.53 X-Migadu-Scanner: scn0.migadu.com X-TUID: PNw85uBHwmUu Nicolas Goaziou writes: > Hello, > > Ihor Radchenko writes: > >> Nicolas, >> Let me know if I miss something about special block parsing. > > LGTM! Thanks. Applied onto main as e5e7ae36c. I changed the patch as org-element-dynamic-block-open-re is matching from bol. Also, I fixed one broken test that assumed #+BEGIN: Paragraph to be a full paragraph, not a sequence of keyword + paragraph. Best, Ihor