From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OCQRGtU9mWG/GQEAgWs5BA (envelope-from ) for ; Sat, 20 Nov 2021 19:26:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 0Jm3FdU9mWGDbAAAB5/wlQ (envelope-from ) for ; Sat, 20 Nov 2021 18:26:29 +0000 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 11A332C2A for ; Sat, 20 Nov 2021 19:26:29 +0100 (CET) Received: from localhost ([::1]:47168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1moV4F-0003MO-Cg for larch@yhetil.org; Sat, 20 Nov 2021 13:26:27 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moV3c-0003I4-C3 for emacs-orgmode@gnu.org; Sat, 20 Nov 2021 13:25:49 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:45431) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moV3Z-0000CW-Vm for emacs-orgmode@gnu.org; Sat, 20 Nov 2021 13:25:48 -0500 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 0A9D760002; Sat, 20 Nov 2021 18:25:40 +0000 (UTC) From: Nicolas Goaziou To: Ihor Radchenko Subject: Re: [PATCH] Re: c47b535bb origin/main org-element: Remove dependency on =?utf-8?Q?=E2=80=98org-emphasis-regexp-components=E2=80=99?= References: <87o86mw86r.fsf@localhost> <87fsrxkahq.fsf@nicolasgoaziou.fr> <87fsrxa1j5.fsf@localhost> <878rxoa6lk.fsf@localhost> <87tug93b2a.fsf@localhost> <87y25l8wvs.fsf@nicolasgoaziou.fr> <87r1bd39ny.fsf@localhost> <8735nsv9qo.fsf@nicolasgoaziou.fr> <87mtm09xzf.fsf@localhost> <87zgq02ueq.fsf@nicolasgoaziou.fr> <87h7c89rqr.fsf@localhost> Date: Sat, 20 Nov 2021 19:25:40 +0100 In-Reply-To: <87h7c89rqr.fsf@localhost> (Ihor Radchenko's message of "Fri, 19 Nov 2021 21:53:16 +0800") Message-ID: <874k86y997.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 Received-SPF: pass client-ip=217.70.183.195; envelope-from=mail@nicolasgoaziou.fr; helo=relay3-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: , Cc: Max Nikulin , 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=1637432789; 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=YN5/7nikTHLRAzJ0PQICl2SO87vXTYAPtiLmmMMf2qE=; b=ZcTUrOseFXJT9eGjRF8Ef1AcDN0JXJpnlY61u1TvsYaLC2ACMZ+zdOEtm6p3ef9Q7sCUzo rOmhMgwxnEtFBFh4Z6WbNjBKGiUM2isKqSSA8CCLotCjDJIOKX788/UrtU2KmYF+JvUJfF WNyf1uzA0bey23T8kUa6Rw2Lso05JxvtrBO/ctq/Pxbt1b/0y4Dj64deAi0ZQJ9kL1XeIe ioe2yPV2zInvo6O89nLli5Or5TIA6DwFtZixARIrtFTwN28weFZswvYQQGwLXfoWycQyHS 7i+bgwaFNyWWEc4ILLNaDhMk4K4wMh5PUCRVImPY0qprrABNbzzxoc7XTio3sw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637432789; a=rsa-sha256; cv=none; b=ePMI572JJBuk4zypjiS1qHxOJ5WsMu74MNqGJ51QAZNVKgbK2p6Zn2WdXYU7IAYz+r8CVD b5MNQqLJUhLR3sHFNaBf59xbrZX9sDcPeXBtJbtPO2GsXMx1DrLfQ/oBWxyApT5dc9788q YjubzklNOtjt1vrQn+4/r3NnzMOaR/eLPOf5GaJ9NtIeQhmWXaH5BNNhefC2n7E6yiHppG RJNshOXJyEMq8+QQUJv2X23JVAdCLPw/E31hFUxXmo+r/sZ/DES8aNecw7ebhucT86nWZ1 fbd8LodOEdyicPrq8YhrkbFBHOy4bP9o3hCfS3U7s0zNhQlFRRLz59f3SZLL8A== 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: -2.97 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: 11A332C2A X-Spam-Score: -2.97 X-Migadu-Scanner: scn0.migadu.com X-TUID: qF70dRUXMFBW Hello, Ihor Radchenko writes: > I updated the patch. If you have no objections on the new wording, I > will push it to main. Thanks for the update, and apologies in advance for being bold, as I have some additional comments about it. > * doc/org-manual.org (Emphasis and Monospace): Advice users to insert > zero width space when Org does not parse emphasized text correctly. Org _does_ parse emphasized text correctly. It may be seen as unintuitive, but it's really a fontification problem. Anyway, this is just a commit message=E2=80=A6 > +=3D*=3D, =3D/=3D, =3D_=3D, =3D=3D=3D, and =3D~=3D symbols inside =3Dverb= atim=3D or ~code~ can > +sometimes produce unexpected markup.=20=20 OK, but it's not limited to symbols within verbatim or code. What about something like: Sometimes, when marked text also contains the marker character itself, the result may be unsettling. ...example follows (see below)... > +#+begin_example > +/The whole line is supposed to be marked italic, but the following > +~user/?variable~ contains italics =3D/=3D marker and confuses Org parser= /. > +#+end_example The whole line is not supposed to be marked as italic, as long as we follow Org syntax. And the parser is not confused at all. The user may be, however. I suggest: /One may expect this whole sentence to be italicized, but the following ~user/?variable~ contains =3D/=3D character, which effectively stops emphasis there./ > +You can use zero width space to help Org sorting out the ambiguity. > +See [[*Escape Character]] for more details. Thinking about it a bit more, you might be right: we may slightly change the closing part of the emphasis regexp, e.g.: (seq (not space) (group ,mark) (or (any space ?- ?') (and (any ?. ?, ?\; ?: ?! ?? ?\" ?\) ?\} ?\\ ?\[) (or space line-end= )) line-end)) The logic behind this is that in regular text, we assume usual punctuation rules apply. My concern is that the more complicated is the rule, the more difficult it is to predict. Also, we introduce new corner case, e.g., Woot! I just released Org *10*.0! So, I'm not totally convinced it is worth the trouble. Regards, --=20 Nicolas Goaziou