From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GG82GnPVfGFlCgAAgWs5BA (envelope-from ) for ; Sat, 30 Oct 2021 07:17:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QE/xFXPVfGENbAAA1q6Kng (envelope-from ) for ; Sat, 30 Oct 2021 05:17:39 +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 C377B131DC for ; Sat, 30 Oct 2021 07:17:38 +0200 (CEST) Received: from localhost ([::1]:36844 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mggkL-0003kk-B3 for larch@yhetil.org; Sat, 30 Oct 2021 01:17:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45298) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mggjg-0003kO-3H for emacs-orgmode@gnu.org; Sat, 30 Oct 2021 01:16:56 -0400 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]:35550) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mggje-0003Ck-AZ for emacs-orgmode@gnu.org; Sat, 30 Oct 2021 01:16:55 -0400 Received: by mail-pj1-x1035.google.com with SMTP id n11-20020a17090a2bcb00b001a1e7a0a6a6so12233675pje.0 for ; Fri, 29 Oct 2021 22:16:53 -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:content-transfer-encoding; bh=/+2wR9GwZVxAaXtpLdKYKf87NbiL8ianfsOnIQbrcvk=; b=iR0qQaEMbjfdw8ZvgSQyAbizUMvSAhe1jfrERFHYlyijyTIypsgNwgL9PmhTPwdgZb hMos4J3Crv9+pp57SopWa1t7HD5N+j/6iTGXr534CmE1WoLp7a0XWBWGXb5LLu0RSJLT d7E427bMNKguWmsARxBgZuAG/qyT1/rBtR8llybcp2Pgrpo7C0fsKGQ9Ngh91QXAm6wU FeWLvmHxs+1uMEQmntATb/DSCisDFUNBvze4sNeXs5j7Vss8Gz+Gm7xmZapKTLzhkGLq M5i2GCs7zYqXo2VW05PgFjAwv5A7ypMdvRG3EiNPbAUMEzAbF4cDkAKvIfePxOLA3Oez 8e0Q== 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:content-transfer-encoding; bh=/+2wR9GwZVxAaXtpLdKYKf87NbiL8ianfsOnIQbrcvk=; b=Zl3G3xu0+mnExegTws8GnDnRNsA7ddChM7Qmm8kDePZmGr77tzvOyBwraK8o/lLFB1 iAk1JLG4wadQHE8qz5zwbYRz024Q0orUahTPbMeGMl99LEzTqb5g1330/BiH8ARJ6cN+ k0k431wBkP76qBa3BXu4DxprCnJ/RfJC3hbSJeFCqdqKbSS3+Udj0n2AuzvJ1vXOWUKj uGo63kY72EfF4xX+19H3OIBQrNIAlbF1MKRBv2PMWL0GhdE8p6qeKE7KEmISnlgJ75HR IkRm8BpNWks9Tkk8jQ8u1W6QtnRv7UeF9J75e9FB3cIv6PYPIdJpSukTn0sd6kfNju6A 5UmA== X-Gm-Message-State: AOAM532HLxwAxqkropQ39RZeHACy2fwggY5Qpcer/j89kl7hu63xOwfm qgaO/NQ0rt34ZnnYi5Nqd1jMXFCbkC18zadX X-Google-Smtp-Source: ABdhPJxpccQuloqxX1YWSSHiKE1gGxMvjg8rH4ntSFINL94iN2oTNtZHtOUYxRRqseSGhoLWeX/AqA== X-Received: by 2002:a17:903:41c1:b0:141:c15e:d3c8 with SMTP id u1-20020a17090341c100b00141c15ed3c8mr2383911ple.52.1635571012692; Fri, 29 Oct 2021 22:16:52 -0700 (PDT) Received: from localhost ([103.125.234.210]) by smtp.gmail.com with ESMTPSA id 3sm10942218pjn.31.2021.10.29.22.16.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Oct 2021 22:16:52 -0700 (PDT) From: Ihor Radchenko To: Jean-Christophe Helary Subject: Re: Regular expressions that describe most (?) org syntax ? In-Reply-To: References: Date: Sat, 30 Oct 2021 13:18:20 +0800 Message-ID: <87cznnks4j.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1035.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode 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=1635571058; 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:dkim-signature; bh=/+2wR9GwZVxAaXtpLdKYKf87NbiL8ianfsOnIQbrcvk=; b=jQJkUbosT+BbOJJf7DUVt447ONLh7YNWmQTY156dX9H/CS8J/4cOWfVUa1X7EeVyNswKSr ZIsLugdZD08SAbskHxqzRztWh8UOxOJl9CBlGpo3w5bbSS1s4rO2+5U5fF3HuGo6cNNLYg hYVxinIC7IwAmQv7t0Sn8BBQisvIYIXOlBkmIz0iafZE6mH5Jayfm+wfjv7Rx9zx+g01Sd Y9xecqWVzKN6q/ukn8QzPKh/JAJtIk3q/S0im09LAhrl++duCYHpHjm/JtwYQNBre8nY6V WUZIPbRqMnV9bswlKbOEi8rwGaefGbtosM5wqI7gEBPfD+GTQ51yNZKtRvlfbA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635571058; a=rsa-sha256; cv=none; b=Zzo1J96Ror7mcxl/WyspbAWgKLpHS5e0R4rcDE5mmzdnQEryM6Eb9zsfKsaKZL3faon6Bd RCFUsYETBRXebZ7qH2ApCujWz0XhFA6ZoQURL1mC+sO01pfQqvIWW4iR9WrKVHRrN4bv+v IQSm5XID6D0RPd7AiJRaNk8OFeTclo96OigxrFBJnjwIH/PyhUccA8IyuZxBGpgUQPxLjI uiY77dy2KexC/6a9c7KUYZCgTKsl5swKO/5p96ISUi1R/ZmJOYNR5c8rznAeE/KfzsLxkJ siMZvOMUjR99J0N3Si7/GzLRNrp5prt+WyJEHMF1NkL4koEGT8DB/9gkaadn0Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=iR0qQaEM; 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-Spam-Score: -0.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=iR0qQaEM; 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: C377B131DC X-Spam-Score: -0.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2Bhe1J3/zcMz Jean-Christophe Helary writes: > I am looking for a set of regular expressions that roughly describe most = of the important org syntax. > > A bit like > > @code\{[^\}]*\}|@command\{[^\}]*\} ... > > describes part of the texi code found in the Emacs manuals. > > I could figure something out, but I thought maybe there is already someth= ing around=E2=80=A6 You need to study org-element.el starting from `org-element--current-element'. Best, Ihor