From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel Subject: Re: Org mode and Emacs Date: Mon, 20 Jun 2022 08:03:28 +0800 Message-ID: <87tu8gxktr.fsf@localhost> References: <87bkv527p5.fsf@gmail.com> <835yld93w7.fsf@gnu.org> <877d5t0yrn.fsf@gmail.com> <87r140yuof.fsf@gmail.com> <875yl9e7zm.fsf@gmail.com> <87y1y2irhn.fsf@yahoo.com> <87wndmaaow.fsf@localhost> <87tu8qa8cz.fsf@localhost> <87fskawjvw.fsf@gmail.com> <87ilp6qsj2.fsf@localhost> <87edzrq19o.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13966"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Tim Cross , Po Lu , Richard Stallman , monnier@iro.umontreal.ca, acm@muc.de, emacs-devel@gnu.org To: David Masterson Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jun 20 02:04:10 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o34tl-0003NO-Sf for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Jun 2022 02:04:09 +0200 Original-Received: from localhost ([::1]:40000 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o34tk-00081z-Gu for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Jun 2022 20:04:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49746) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o34s9-00071I-R0 for emacs-devel@gnu.org; Sun, 19 Jun 2022 20:02:29 -0400 Original-Received: from mail-qv1-xf30.google.com ([2607:f8b0:4864:20::f30]:38728) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o34s8-0006Ac-22; Sun, 19 Jun 2022 20:02:29 -0400 Original-Received: by mail-qv1-xf30.google.com with SMTP id p31so13919193qvp.5; Sun, 19 Jun 2022 17:02:19 -0700 (PDT) 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=gY2/2ueq9eFW2ru7B2zVFMEuGbytQ/6AKgRZweHVguA=; b=BjF7Df0g07YlDxbcyp5QZPQgNEH1Lgjy+UQDw6kajObRR+FfmwcSvim58JxfSzkp/g wtwLxZfnbVjXp4cDffR8UO03V4muIt/2En5jjpkH6vueRN6ogjsZrwagx6YySN6EYrSt NsuyPPKkToWObGNzsATFJBCXYnc8eI5H4mfnA8bVv1Gl+2ZpxPuCae6O1Wum7aca28Q/ nfPO0eM3QYcEjwoA6Ecdnd9Lk9Awn+tvA9Uxo+s3dcLr3rlSrIzpeuvYeD7rhsHfSPCL Np0cOfJVv2Tl1ii4qNwiwOjhKnilJT+syzKQd51vbLb1807oODkugnuUW2ZYCBx2JS7n 781Q== 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=gY2/2ueq9eFW2ru7B2zVFMEuGbytQ/6AKgRZweHVguA=; b=XGFA/P8m+2gRXyRskq0alK9YYiDTDt3WwLKMlWvQ3v1TOEcJJbPZuMGeFwJjAY6nLs k48npKLztt9QYCIBIkbvygs4CgfO2TpkNRd/xmRxICXGjQ7gfSYVI7y4qRhYojWGaZ7b b45DopntCDrhfBBsX7H51ToXUV0Kif+bK2gmNaiamD8esHQnf+muzE3mLi8J9NMZ6E/v sdyVp7A2z92tijNzL1mhkvqVV3NoYuVzje9c5GbKkkp7lLmogsfmqxrELaC71dwOpt+3 pRyToX2zXeC6vwjQ7CEhvShYQoAXxIOOISO9II1AZuCtbxgZedLCiAafNVaw+eN1L3ul fTQg== X-Gm-Message-State: AJIora+nYZf0YvXwr5ouTrDLDM0dQf4i606I/6wwSmuQBfN7L573l7bi 1H65QatFepJPkM+E5iO/fYY= X-Google-Smtp-Source: AGRyM1vMUdhN7X4wPJ9AmOqHO8YK3391CHcMhBlSnRIRB/dnItJXDpcvgDqrBD9kNTlNmGWnshbirg== X-Received: by 2002:a05:622a:144a:b0:307:c769:70e7 with SMTP id v10-20020a05622a144a00b00307c76970e7mr12858073qtx.469.1655683338604; Sun, 19 Jun 2022 17:02:18 -0700 (PDT) Original-Received: from localhost ([66.150.196.58]) by smtp.gmail.com with ESMTPSA id z16-20020a05620a08d000b006a5d2eb58b2sm10312532qkz.33.2022.06.19.17.02.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Jun 2022 17:02:17 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::f30; envelope-from=yantar92@gmail.com; helo=mail-qv1-xf30.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:291445 Archived-At: David Masterson writes: >>> But could it be moved in that direction? (ie. Organice) >> >> I don't think so. It is motivated by the fundamental Org syntax design, >> AFAIU. (mostly by first match wins design). We are not going to change >> fundamentals of the Org syntax. It will break backward compatibility. > > Could Org be moved toward a "well-defined" grammar that could be > separated from the Emacs implementation to allow other systems (iOS, > Android, Windows) to implement (at least part of) a "standard" Org? > Could the backward compatibility be covered by an Emacs library where > necessary? Yes. See https://orgmode.org/worg/dev/org-syntax.html I hope it is well-defined enough for you. I don't think that we need major changes to allow implementation in other systems. There is already a number of existing third-party parsers for Org: https://github.com/200ok-ch/org-parser https://github.com/tgbugs/laundry https://github.com/milisims/tree-sitter-org https://github.com/tecosaur/Org.jl Best, Ihor