From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EII5L+mAomFo8gAAgWs5BA (envelope-from ) for ; Sat, 27 Nov 2021 20:03:05 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id OEe6KumAomFlQQAAbx9fmQ (envelope-from ) for ; Sat, 27 Nov 2021 19:03:05 +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 6CC3A3CDEF for ; Sat, 27 Nov 2021 20:03:05 +0100 (CET) Received: from localhost ([::1]:52706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mr2yW-00015i-LP for larch@yhetil.org; Sat, 27 Nov 2021 14:03:04 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45004) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mr2y6-00015a-Rf for emacs-orgmode@gnu.org; Sat, 27 Nov 2021 14:02:38 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:51989) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mr2y4-0004nk-Sy for emacs-orgmode@gnu.org; Sat, 27 Nov 2021 14:02:38 -0500 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 8A002E0005; Sat, 27 Nov 2021 19:02:32 +0000 (UTC) From: Nicolas Goaziou To: Max Nikulin Subject: Re: org parser and priorities of inline elements 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> <874k86y997.fsf@nicolasgoaziou.fr> <87v90lzwkm.fsf@localhost> Date: Sat, 27 Nov 2021 20:02:31 +0100 In-Reply-To: (Max Nikulin's message of "Sat, 27 Nov 2021 19:16:08 +0700") Message-ID: <87mtlppgl4.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.196; envelope-from=mail@nicolasgoaziou.fr; helo=relay4-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: 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=1638039785; 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; bh=GS7BoATpOo1+FsnktQfsR2VTwIS8tQNNApKIJ2hwCyI=; b=n4h1GyBHfO03yP7hJeB6dYtiH9BOnKXgx92RWNbmPIKsb8j1iYkl5ct+MQV+LDoAn7LIX6 z4Vze4e921FXnYI8ndACqcsTzlrFjjHf9f5U8s7eDyAUvAqJuP0Pq0LYuVsbAY3UYaSmIt WmDjED3w5Wfpd2wAmei4LONu0GEsQkPTF6TP6BYNkPEkEr63g+YC8BZvb7hDBdhSEvH/0N CYWAa3eBQkMGYnCUlIvSXQo1hURpRX+uUDcfE0Jr+NlwFbxVFaEkxcsduww/7CC3dKs58b o4xqhImn/ZdPza2zXvqp17VMdkPHN/c0dcmMgSCWD9hfZ/FozF6OESjwPvCI3w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638039785; a=rsa-sha256; cv=none; b=ZH7/1DT8sO58PZXKFM61JThSF+2RWW0A1wsbEMCbNViBlhaL65sS6VeHrOZipnOOv31cnj PED08xWoQfaFHpA7Ql1DtBMCcY3Xe5FEZoNtArDO9iJ8NRx0gr2ohVxDCjsStDdCbZXPmT 69fcWltphtLHQlTYzF36gsHuvlxwPC/fqHWQG26ieE7ftalIuQnmFpZYLz+jMz8AWTdOhw MZ+u+IKZhNSrbE+AuJGkZZSAB11Ei6UmJXEBMjbmJYZAKczkPtXz5Z8uo60G30NJLmwrmK QPWvNq1Wt8FSt8IO7BGPxdXEEIGcrSLdSb4FUcAfti4nGIGmgoPq6OwRDoGK6Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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.01 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 6CC3A3CDEF X-Spam-Score: -3.01 X-Migadu-Scanner: scn1.migadu.com X-TUID: 6GIX6PP8U5Vv Hello, Max Nikulin writes: > I can not estimate efforts necessary to implement priorities of > objects (verbatim - link - emphasis) in org-elements parser since > I have not looked into its code. Comparing the following snippets, > I might naively expect some kind of backtracking: > > - A /b *c +d e+ f* g/ h > - A /b *c +d f* e+ h > > I admit that I can be wrong and "first wins" approach handles buffer > of incomplete parsed entities in a different way. I don't see any incentive to change the order objects are parsed, once you know how Org does it. This is just a red herring. What is useful, however, is to fontify them the way Org sees them. Regards, -- Nicolas Goaziou