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 uBmiMRlNlmGljwAAgWs5BA (envelope-from ) for ; Thu, 18 Nov 2021 13:54:49 +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 UAVlLBlNlmEhHQAAB5/wlQ (envelope-from ) for ; Thu, 18 Nov 2021 12:54:49 +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 625E71931 for ; Thu, 18 Nov 2021 13:54:49 +0100 (CET) Received: from localhost ([::1]:47896 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mngwC-0007vQ-IB for larch@yhetil.org; Thu, 18 Nov 2021 07:54:48 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mngvn-0007v1-6R for emacs-orgmode@gnu.org; Thu, 18 Nov 2021 07:54:23 -0500 Received: from [2a00:1450:4864:20::32a] (port=54262 helo=mail-wm1-x32a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mngvl-0003c0-7G for emacs-orgmode@gnu.org; Thu, 18 Nov 2021 07:54:22 -0500 Received: by mail-wm1-x32a.google.com with SMTP id y196so5207214wmc.3 for ; Thu, 18 Nov 2021 04:54:20 -0800 (PST) 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=X7TQND+MASEvBFhueXs95gz/mD5W17tOFzYRmCwjQDo=; b=B7XaMm6ZKozIyjw6NKFs4nvNrXLjeS1OmTacKIAQcx7uVHik/NcQ+jX77DvDWaP6lI yH4mUMx3ZnK+TS0h3h7DhGV0adnGXsGfyV4Bgaf5hxHE5Jrv6B6D7/ABYQGr21v+EDDo R7OfzcBkjBzj8UrZ364WKkmlMcS75lkvr2ABDmPSH8iSWkatwbhUmhi9/gJoerzGcDf/ dsORzcNfL2ZTcrDgfr99riC3jTE716EHrP781c5mnOoCxIqk+kQuQNd1jet19hCDLAV8 ojnW8XW9YiFnT17nQT3mUR194728hhT57feTyJ3d6u2A32qwkIXvKlKli0zqO6D4bBkm 0Avg== 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=X7TQND+MASEvBFhueXs95gz/mD5W17tOFzYRmCwjQDo=; b=OFJgdI4Uuzf6qpXr98yGsse8BDk9LyptjjyMSImlnYO+NsYHeuG28+jBxtngi1tIc1 2hgIEnFITCZb0Liv0nC5AadynF3sfSTdZx1pJwnfygB0hPWtUlsxj2nAOE5sVJugBZ9W CgR1jLycuwYNPfvIZa1dwfzcUDftZpyooYHMbV92gj4XNDhdxnZCzlUjuDNjdrbD4r47 R0fPO16I2sj4zpeYKCc3p1fqQWq3xLxB2A7erooOeStFf/9LvD9j60E6iCA0ezG+suYV LRab7C9jr271ffhkalcuq5vfgqIBLc1rVyPDYNbTSa9r2gzDe+6OE5nrk2a4JXmvZA/w jUXA== X-Gm-Message-State: AOAM532zGwhg9ufdpi+d12rNKcsznrLgh/h2gnTG/TIRFR/fPSlxOQgW DEt+OUPKa0fnHvWuzWANJDE= X-Google-Smtp-Source: ABdhPJzgeDJ/c2BjiMBAzhPxwIz+60pamgabHOsTlXvtqbFVI8urTuC2STY7NTdlCmvteCOFJ3wkYQ== X-Received: by 2002:a05:600c:290b:: with SMTP id i11mr9717967wmd.137.1637240059900; Thu, 18 Nov 2021 04:54:19 -0800 (PST) Received: from localhost ([91.210.107.150]) by smtp.gmail.com with ESMTPSA id f7sm11651972wmg.6.2021.11.18.04.54.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Nov 2021 04:54:19 -0800 (PST) From: Ihor Radchenko To: Nicolas Goaziou Subject: Re: c47b535bb origin/main org-element: Remove dependency on =?utf-8?Q?=E2=80=98org-emphasis-regexp-components=E2=80=99?= In-Reply-To: <87y25l8wvs.fsf@nicolasgoaziou.fr> References: <87o86mw86r.fsf@localhost> <87fsrxkahq.fsf@nicolasgoaziou.fr> <87fsrxa1j5.fsf@localhost> <878rxoa6lk.fsf@localhost> <87tug93b2a.fsf@localhost> <87y25l8wvs.fsf@nicolasgoaziou.fr> Date: Thu, 18 Nov 2021 20:55:45 +0800 Message-ID: <87r1bd39ny.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::32a (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=yantar92@gmail.com; helo=mail-wm1-x32a.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: , 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637240089; 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=X7TQND+MASEvBFhueXs95gz/mD5W17tOFzYRmCwjQDo=; b=PIwoZkwroGM2rV/FgwnLRAcJStElgGuWSqtWSW5/TgXsCTnnKkS62maDHq3EAF1vxY8fZY QG1gQ8NV7a8b8YtuaS1ah38q9R/mlQxaivfO/OGJ+jfeBz0SGx3cjQU7y/gnJDDNRyQ7M7 94Z+YBaSejCuA/OeKCU3CoZfILvNJ1OApQGEVKCrCp5O/zr+HxP73QgG7iArUxdRD2/yz3 LVU9uGqn0zdxprxkJNERCY/uYJyslotT+2CLpdbu5ieFl9cPSJjgF7J6nmYHgHQ0C/vuVD egxn36c3lxyhGW5dJgBFFP1gZClI29LG9xnEtKyXLG2dLxS3SDv0q+DijrSVFg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637240089; a=rsa-sha256; cv=none; b=UtOu8Cpd5DLykiaFvFPCtU1b4GnHTQtD9UpuPMJpFZgsVa1ee2pnX7FgF2U0FKPZzF0c0M XLwY+K1I1ojqJ0K48WUStcKFl1JIfxbvYLocHn4lWbxn92iGD950urvpLbtrdn6pTTSsL2 9itevYicUex8eY4js+tPK0eb0r8qhBS5gYUig1qPI93URQC1sB0qzXBLiogXgr8O/hf22/ BRk3sQkp4G3dDAeIXWx8hIEkC3jEnGAvjnLm+FzggisvjZ6B26Sce8gTT1y28mGHRcOKc7 Tc1q6ybuD1lhECecwh2FD/13xq+vwb8Xlt9MbBOBmyq2pZz/SJBMj+EVcD0a8Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=B7XaMm6Z; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.56 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=B7XaMm6Z; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 625E71931 X-Spam-Score: -3.56 X-Migadu-Scanner: scn1.migadu.com X-TUID: mBNOvYZCdffI Nicolas Goaziou writes: >> My intuition says that the current parser behaviour is not correct. It >> would make more sense to prioritise link over italics. However, it would >> require a major change in the parser - instead of a single pass, the >> parser may parse different types of objects sequentially. The emphasis >> objects should come last avoiding the markers to have different parents. >> >> Nicolas, WDYT? > > I disagree. Priority should be given to the first object being started. > This is, IMO, the only sane way to handle syntax. Multi-pass may indeed over-complicate the syntax. However, it is not clear then how to handle situations like /A link [[https://orgmode.org/?oops=true][Org Mode]] or /A code ~user/?my-user-variable~ with slash/ or /A verbatim =text/.= with slash/ Should we modify the closing-re for emphasis? >> (seq (not space) >> (group ,mark) >> (or (any space ?- ?. ?, ?\; ?: ?! ?? ?' ?\" ?\) ?\} ?\\ ?\[) >> line-end)) Best, Ihor