From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kB55FEGot2KILgEAbAwnHQ (envelope-from ) for ; Sun, 26 Jun 2022 02:28:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cCxAFEGot2IohwAAauVa8A (envelope-from ) for ; Sun, 26 Jun 2022 02:28:49 +0200 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 D4E2C2E419 for ; Sun, 26 Jun 2022 02:28:48 +0200 (CEST) Received: from localhost ([::1]:39084 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5G8t-0004ts-1t for larch@yhetil.org; Sat, 25 Jun 2022 20:28:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42556) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5G83-0004tk-OS for emacs-orgmode@gnu.org; Sat, 25 Jun 2022 20:27:55 -0400 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]:34310) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5G82-0005ZQ-5x for emacs-orgmode@gnu.org; Sat, 25 Jun 2022 20:27:55 -0400 Received: by mail-pg1-x529.google.com with SMTP id g186so5795622pgc.1 for ; Sat, 25 Jun 2022 17:27: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; bh=Ghb/EG0UI80BZOqz0wCc+o3wwYzdGB90smmGvsJDbcs=; b=EF5D3pU8NNYmaYw+EHcrY09juliIUb+iCAs/u4nRF9bhOdD6RyX7RbJTngJgm9czJy zPJinPhL6AdnZoabOjSWETUkSzdp3qvFTTIBGv76rY+UCrRn7+08R+AXJDeqQTxcqpim IGCGobktDKfXa4OHqH/pTSZpiEutAsC5ulTyDgZ7GRlDrNjO3FvTbKXukmVa8F+IzZ1T /ZEeVsMaSQy6tELjqNuSLMHbzc+twxsu198FaxdUYz7YXqr1RGQlYq5AIUBb10kwaXzO GqJVt1u06Ow/hySQ2PqRCQSZOYVlwKsx7PmsJljVa6j8T04eGPWxhVV51Nkbk+cVd+yV s31A== 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=Ghb/EG0UI80BZOqz0wCc+o3wwYzdGB90smmGvsJDbcs=; b=wct8hHAfrV5cItPMOzl+bLIn0DwOtAWeafRUSKZ3TvJKzAfBHlGOr/oG0olZ8n/ub3 nGzqILv2AkXmbf813QHtYqXjA2J8r+MdE2Cbsc6fUh4KF9hOHJ8KJtvgkgWxyP9BvFN1 cd6KCdO5df8Arq/YEmGmbD/LMzY6AVOOh0Camx7/oZy57xpT99exYld+G1THQniuK7rk ur0CGWYHLi4gsGpn7TBvwZEZEPHw57LLODey0biKb0KheXQSrIvsLJzj0fribkXby2zu NmzfV2pKe+DsT8cayl+AipRpel4S2vGK3uIkzEEnp3NbG69RYBzDcHwD/ZhS9KYmEpFK TJKQ== X-Gm-Message-State: AJIora/riftUd9v6YdvWA94Im1AYkISV2yKz6gDhNqiov3gKYvP36Lnu GIu8dH9P3xY2VxKpuh7cvQrak5ua/YDDXoS5 X-Google-Smtp-Source: AGRyM1u5lNXafMpYenlbrJu49etSywlhEvRXoUx7UfnBlHiW7TK7HK/Qby/88TC7kkbwbGpMew4xXA== X-Received: by 2002:a63:ae4a:0:b0:40c:2d48:5fda with SMTP id e10-20020a63ae4a000000b0040c2d485fdamr5823158pgp.434.1656203272327; Sat, 25 Jun 2022 17:27:52 -0700 (PDT) Received: from localhost ([209.95.60.151]) by smtp.gmail.com with ESMTPSA id p6-20020a170902780600b0016a4db13429sm4231388pll.192.2022.06.25.17.27.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jun 2022 17:27:51 -0700 (PDT) From: Ihor Radchenko To: Fabio Natali Cc: emacs-orgmode@gnu.org Subject: Re: Allowed characters/formatting in Org text blocks In-Reply-To: References: Date: Sun, 26 Jun 2022 08:29:02 +0800 Message-ID: <8735fsuv1t.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::529; envelope-from=yantar92@gmail.com; helo=mail-pg1-x529.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-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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656203328; 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=Ghb/EG0UI80BZOqz0wCc+o3wwYzdGB90smmGvsJDbcs=; b=ZDCY6Ro7pV7RBEUXJIOKi/GMDvmQYcZLSubiubqu11cg8zYzFUXlVkJw/Zeup1Qo6ejOIk OaCnVBfMbjwvzq/0RQfBtgOHxohE430b0kmBhuBSQd0iNkW2nAptlu3xuzqiJ4gK2r5fo8 Sf1p2pLk3K3XEngQS8y01GJQZ55A6t96Yc9WMvb7weV3tHf/09yj13zuqnXr4iuyS5J+as 3x49fddQco8FGN0qmScTHohrXfqhpiy4QYblkX4SYG5pdzlWq1nVOZ3l25Mw+VV1YD2/tn sPcwIelegvF0ZAFQIZMmLiAOL78+9HtecWBwSwhGEVp9Ai3pAmP51QePo3tq8A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656203328; a=rsa-sha256; cv=none; b=Zvt0EidZr8JHrnef0motoxbjuIeAJ6SkNaTbQsfOyRu6nQdy4O9x2SNIvocwwC9UxAkuTN BK2xt2MPiPksv5yJtDDDpY8SaU8CRBIED6VnjaUGVLCNBFWhrdPW1AGxxhOnpkVeW27DEI jmd7KJuG782jZjcvIOwJ/glUCqQBRUFNZIZWBcEdl2CqLdTQSbknq6YuiVDpcnwW9Nj8YE VYUCDTxhYazx5ND0VzI+aSc+RrDV8kyq4S/KayW4qlO3ZsmZ6h7KO2ludDvwgLehY9JnO+ Ihr/YFRDFmmYCO3GkbjX9bkNHuOvgpv8vyLMajmk6w8IFCtaWi2z7XrFIS7xkw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=EF5D3pU8; dmarc=pass (policy=none) header.from=gmail.com; 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: -3.76 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=EF5D3pU8; dmarc=pass (policy=none) header.from=gmail.com; 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: D4E2C2E419 X-Spam-Score: -3.76 X-Migadu-Scanner: scn0.migadu.com X-TUID: iv2cqAfgzh2f Fabio Natali writes: > Now consider a slight variation where "Hello world" is formatted as a > Org heading. The 'org-babel-goto-named-src-block' function is no longer > able to identify the text block. Executing the Emacs Lisp block results > in the error message below. > > #+name: bar > #+begin_src text > * Hello world > #+end_src > ... > Is this expected? Am I misunderstanding what text blocks are for and > what characters/formatting they're allowed to use? Headline markup has the highest priority. Your block is interpreted as #+name: bar #+begin_sec text * Hello world #+end_src See https://orgmode.org/manual/Literal-Examples.html You need to escape "*" and "#+" at the beginning of line inside code blocks using comma: ",*", ",#+". Org will do it for you automatically if you use C-c ' interface to edit source blocks. Best, Ihor