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 4OnFFau6T2NuCgEAbAwnHQ (envelope-from ) for ; Wed, 19 Oct 2022 10:51:55 +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 4I/aFKu6T2M5hQAAG6o9tA (envelope-from ) for ; Wed, 19 Oct 2022 10:51:55 +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 972BCC889 for ; Wed, 19 Oct 2022 10:51:54 +0200 (CEST) Received: from localhost ([::1]:40732 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ol4np-0000b5-Kz for larch@yhetil.org; Wed, 19 Oct 2022 04:51:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ol4jo-0000Tt-A3 for emacs-orgmode@gnu.org; Wed, 19 Oct 2022 04:47:47 -0400 Received: from mout01.posteo.de ([185.67.36.65]:42117) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ol4jF-0004GX-1q for emacs-orgmode@gnu.org; Wed, 19 Oct 2022 04:47:13 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 13E65240028 for ; Wed, 19 Oct 2022 10:47:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1666169227; bh=TK2EqruGuX5PGjt774zqejDBO5/7YP7+uHWzoHGKM0E=; h=From:To:Subject:Date:From; b=LiF4Olttr6eAi3OR+u2cVWPGM03+tYNE5u4opAkOCik/ZTMEhxRcZhJGkrUgrNhGg aQ59i+3n7bpspvsa6kMe12V0sDfrEUA7aFgTQ9Z8CZ+2jf+xvxgTa3qj04y5RHMNvT 7wXMgnInu1wr6mj8w9+CvsJ6OO7EJ6C3/WPTCg6NO3TR6i7foPXVG7SEzksG835Q4u VwLDz8Cg7VHE+HM0d55z+mIc1vLzf8ifzDSq1S8rCxfJQOlfkzF9Cgx9mdl5EQ0Xn9 qYecTGMJju7KiSspwc2+e9DNa3YTE0zlFiagPFdJ2Sn+wpqb/IJN5eEhrTbpuFpJfW NL/STpRRV63fQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Mskqr2lD0z6tnc for ; Wed, 19 Oct 2022 10:47:02 +0200 (CEST) From: Ihor Radchenko To: emacs-orgmode@gnu.org Subject: Can someone dig the reasons behind emphasis regexp limitations? Date: Wed, 19 Oct 2022 08:47:48 +0000 Message-ID: <87mt9sb3nv.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, 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: , 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=1666169515; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Hx4T4CrI3q02moi1cslfnXJnQZF90EBKwYAFSEUS0DI=; b=R+FKEak2cLqPmVIEJ+Hn0P5SqT90/b7VCbFhlHmt6GQnspMWIbsZVJPuKOEvD8zyO4iQxb v345AEE4xWtHZPnstii8Xhzrh+ytN15fQwolWjeJLQitqWYx1kNjQGmxVxyRKfT2Ymlywe 0f+1gDmnqMRNIgKKJo30jBxDxyKDFjI/xpVU/Bozifox2hErEYudBYTPWbUSvyZ/oT7ZAY XE7hexuwpZPqlVG3YECVnQCBgrQAerYgudbU1jTcsv21yGPrrBiyXH+DG5PU5E/15jLltp akawg6yysFn6+X5jWZYnz6dyZ95wbzUNEozkcAf+MA0L1JaplIYqiFaaeRHr7w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666169515; a=rsa-sha256; cv=none; b=rmvJ/fFZAibTR+O+jby5DZT4d8mdYx/fTD38AN1klUrpPhKz8lWqHinTw50wBeHHHpW5Ge ogkwNbgU3XGVlTgD7UxVKhGEiNpgOjsoekB3bAZSFD51lBEfe+OM4EsfFz8pQXg27DNxmO dlgj1SSpU00fm89uoCEHsJDUj1VFAz6wPBOOyeQCje01fesrxJfsX0qKOtT1f9BGK5OXlz XhAGhrr7BA4QjMQP2kQlFXN0BSR7cqaKzgyjjfZsYpu7d6avEcqg0jXGp5R7+tpXr8+qht eABaA4CS+vwgXgAnC1KYIgg2TyuZHA4SGK2pTdqdMj8EFiB0odQVchSaNCY2qg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=LiF4Oltt; 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: -0.93 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=LiF4Oltt; 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: 972BCC889 X-Spam-Score: -0.93 X-Migadu-Scanner: scn1.migadu.com X-TUID: spOv0i9eK0hB Org allows *emphasis* markers to be surrounded by spaces to some markup: 1. Before opening emphasis marker we can have space; -('"{ 2. After closing emphasis marker we can have space; -.,;:!?'")}\[ (see org-element--parse-generic-emphasis) I keep looking at these rules and remain confused, even though I do remember that Nicolas stated good reasons for this. But... Why "[" can be after closing marker and _not_ before opening marker. It is counter-intuitive. And what about "]"? Can somebody dig into that mailing list archives and figure out the reasons why some characters are allowed and some now. I will then put them into code comments or maybe even into Org syntax spec. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at