From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id gNwZLz4362VFWwEAe85BDQ:P1 (envelope-from ) for ; Fri, 08 Mar 2024 17:05:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id gNwZLz4362VFWwEAe85BDQ (envelope-from ) for ; Fri, 08 Mar 2024 17:05:18 +0100 X-Envelope-To: larch@yhetil.org 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=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709913918; 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: 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=LQLw/HNbyZEEzJJVPv9peDqAfhkgN2thxrWyVnP8NME=; b=pzLnTioR/rx0zZnFDh9Leie69FvhFeUbsFIrCZRISZeiCRQulcxb5aqxokklnAYenJECdO 765Fgv1bCHkp1huWEKOl6RbXaMLHyy/Q84fw3mMV48GGQG2W27f3/PocY08JW6dFN7WtjH BC8/Flij+YiVUV6MSYNbajMe3CEkiN7tP78uV3LPE1Fd79wUoE1d6W7PEJp+LV1L0fg8/V cesR4ytNavBIfmZZkKhpfRDOv/3SJ4CslPlaU12m8VyUUZgDf4Ti40b5hNIodaiJEoAoCl RmVPXO4P5D0zrfizUUuTy73IrAmFPrzjhgL8V2Sz8MfIeXEJrBiD9p5WjhKwwg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709913918; a=rsa-sha256; cv=none; b=mqeV2mUr9X5dHntWu4dz1Th/DPzQ2my4sawH57NLnrSKLagNcuQriS3unSEmmmSMaerB2x DnSkx8f/77PTI0NWMueSVC1dmS7vmgKLEv0l9nGiFgu8MbuUhlxirM2YXIrFQ77zWtvHSm ryEx7+pIM2nu+MBIpAiB892PX3fqqnzOqsa8eVWdezTIf6CMf71nPAEyccmVlvBrYRfaK9 gXq0iKrfQpbbCmVYenE5h7diAGhtB+lrwIQ9YLyarFlUwn3lNwGM3Key63QzxnC+PP5JkU k4RjM+shKv8WhAlADYa/1jq1/OQk8K5NpieG3HuHt7bL8psc4ZS2UpcvB7T0Mw== 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=gmail.com (policy=none) 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 AA81C5AAA9 for ; Fri, 8 Mar 2024 17:05:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1richv-0001Uy-80; Fri, 08 Mar 2024 11:04:27 -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 1richl-0001S7-Rv for emacs-orgmode@gnu.org; Fri, 08 Mar 2024 11:04:18 -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 1richi-0006ev-Py for emacs-orgmode@gnu.org; Fri, 08 Mar 2024 11:04:15 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1richh-00081C-2Y for emacs-orgmode@gnu.org; Fri, 08 Mar 2024 17:04:13 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: false positives: Re: Experimental public branch for inline special blocks Date: Fri, 8 Mar 2024 23:04:07 +0700 Message-ID: References: <87wmql6690.fsf@posteo.net> <87msra47y8.fsf@posteo.net> <87sf121e9t.fsf@localhost> <87o7bq2g38.fsf@posteo.net> <8734t2koqc.fsf@localhost> <87h6hi2d51.fsf@posteo.net> <87cys53nt9.fsf@posteo.net> <87o7bopw28.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla Thunderbird Content-Language: en-US, ru-RU In-Reply-To: <87o7bopw28.fsf@posteo.net> 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: 25 X-Spam_score: 2.5 X-Spam_bar: ++ X-Spam_report: (2.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, NML_ADSP_CUSTOM_MED=0.9, 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -2.67 X-Spam-Score: -2.67 X-Migadu-Queue-Id: AA81C5AAA9 X-Migadu-Scanner: mx11.migadu.com X-TUID: 0YUhmY2f3JUA On 08/03/2024 22:44, Juan Manuel MacĂ­as wrote: > Max Nikulin writes: > >> (org-export-string-as "Alpha@Beta{" >> 'html >> '(:export-options (body-only))) >> "

\nAlpha{

\n" >> >> (org-export-string-as "Alpha@Beta[" >> 'html >> '(:export-options (body-only))) >> Debugger entered--Lisp error: (wrong-type-argument >> number-or-marker-p nil) > > Maybe in that case you could add a zero width space character. > > In any case, if someone has reasons to write "Alpha@Beta{" they may also > have reasons to write "Alpha_Beta": > > (org-export-string-as "Alpha_beta" > 'html > '(:export-options (body-only))) >

> Alphabeta

From my point of view it is a pitfall with Org syntax, but parser works as it should. On the other hand if there is no closing bracket then it is not an inline special block, so this part of document should be considered as text (unless some other objects are recognized). Currently Org parser does not signal errors even for invalid input.