From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yCSFBtG/DmMVhQAAbAwnHQ (envelope-from ) for ; Wed, 31 Aug 2022 03:56:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id aEdtBtG/DmN0eQEAauVa8A (envelope-from ) for ; Wed, 31 Aug 2022 03:56:33 +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 B028A9FB1 for ; Wed, 31 Aug 2022 03:56:32 +0200 (CEST) Received: from localhost ([::1]:49424 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTCxz-0004QU-C5 for larch@yhetil.org; Tue, 30 Aug 2022 21:56:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44756) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTCxV-0004QL-M5 for emacs-orgmode@gnu.org; Tue, 30 Aug 2022 21:56:02 -0400 Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]:43755) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTCxT-0005Gy-Ms for emacs-orgmode@gnu.org; Tue, 30 Aug 2022 21:56:01 -0400 Received: by mail-pg1-x535.google.com with SMTP id v4so12259183pgi.10 for ; Tue, 30 Aug 2022 18:55:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc; bh=Ect4GSUf2597j8PBQlWWqcnQ5cTXcff7SFo1rFZf45U=; b=LWPxQE8IejZwkiuUN+EMG9E86L2oDS6Wt3w9usdhCzNsnMk7xH9Fnau8PG8S708HUW ZuLPCHnal5+owAHQw5Vuvsy+/kWUByD1Vhj+X0w+V46mThc+phX99//HbbYsN314bc1e VzWbWKZ1r2Z9JzMmPWo5DwQmiHANTuObJoBftJJg6B2YSWQ8HzcT5MA9OjEYkqWUpqhC oCf/+zgP49/w3lM4NFQJABpqD6/VigPFobzkWEVEslcB51Qm3IKuedLmUs+YfZTgqX/1 Y7QE08Zz+CVNW3WTx4SOnlZBNJgl1eaXYzAENan9CwY5eJ0GxqDciboQnUW9h+VGpWYC g7WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=Ect4GSUf2597j8PBQlWWqcnQ5cTXcff7SFo1rFZf45U=; b=dprBr9uG3jWzQL4knHb9F08FSNug5kseAxGIae/0MNOP6p4eHVYQYfj+ju0cscKFzC Ek/sq5+FaF2ii49gdnXjQ8YGlqoyLheP5V0dOmIkWg8WGIDWXfsoBxB6K0YyRwennAcN Cy4JMK7uNreaWvvMKKpaAVo8nbE1Q0lwSFb9C2I8o17EDVxj7A8aAU7VVpQPrZkXd2XF ZLioWkRk8gb7GLbi8psAqSIhRDoKl1m36xZIzLJsVXdsdt7NPwiIbfqf+utvSI4dTWSc 8SaRoWNOPLmzsXAAmRNUmYS4yh/Q5dWfFX96F7afFv524MEqXsXta1gDmPN+r79FNpXA O2eA== X-Gm-Message-State: ACgBeo0idBfOM7GW7zqswOBP9C7cvhjjnwcxWm7NCJH7VZNAHX0cwUP5 0CjGatX03dEHZ1Wk7iM9EDShCViTbL74th0D X-Google-Smtp-Source: AA6agR5c2sdYLO7Ijj8G6uNmmt5JwDrIjmV8qPgcKA+6Je3+sjnrmR6vzmgQ5o4FglyfLk4SbKLG7A== X-Received: by 2002:a63:2bd5:0:b0:41d:9a9f:2e6d with SMTP id r204-20020a632bd5000000b0041d9a9f2e6dmr20858331pgr.53.1661910957631; Tue, 30 Aug 2022 18:55:57 -0700 (PDT) Received: from localhost ([115.154.175.57]) by smtp.gmail.com with ESMTPSA id c9-20020a170903234900b00174e5fe9ce1sm4610565plh.159.2022.08.30.18.55.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Aug 2022 18:55:56 -0700 (PDT) From: Ihor Radchenko To: alain.cochard@unistra.fr Cc: Org Mode List Subject: Re: Suspected bug: example block in a footnote doesn't fold if starts with 2 blank lines In-Reply-To: <25357.49721.706791.137935@gargle.gargle.HOWL> References: <25357.49721.706791.137935@gargle.gargle.HOWL> Date: Wed, 31 Aug 2022 09:57:00 +0800 Message-ID: <87zgflp443.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::535; envelope-from=yantar92@gmail.com; helo=mail-pg1-x535.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=1661910992; 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=Ect4GSUf2597j8PBQlWWqcnQ5cTXcff7SFo1rFZf45U=; b=D67HLxY9BiDQ8N0aAEs9Y7naBar0Chx0S4zm/QtLoiPZtQSQi8o6JXgmgssX5xzAoo6XMN PD9Z5nJ5SzFajLEu9vPZKz+DTxE7AzV/F7/PWgO4y5naehZ6oejMLaG9GcBqawXzeLqu8Z WWUkQZ/jA55CytAoZI5O+10gGUSrHddqNQfCSfyX6EVOq/Y5Y2HXM20MJlSRZWnbO5udDY V9uVW5h6fsbPbg2VuJR8lOav8F9VdH3kblhjVR9Md35/G+tINDZ/BwNPXEPfAmE2d5VLjQ QgoPvW1JRVLGpxM8gOUL6xgAYjsWn+F6bPhIdg6ZA0FBeubk+CnvTPYlTnowpw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661910992; a=rsa-sha256; cv=none; b=ec+DhBAiweNUDwBZNSRjEybVu8S/5h9nI0/jyQ7+Q3+sA3R6E6DudrvsqiaCRAZPH+gEoq Ua7OySFGPiv/BZlfTl5gwmjuWl46J41oagkMaAU6IU5af5j3CQd0HzCnzdV51MOqCaYBfi shu60urehaZIJUNX8TUpxwGaaH/DjjcTncBdPouvGckll3p8xXMZRL9EORkJBP7LPGXm/a /yqLtMnc8FuXxch/NwsKajYEbdtCUpfIEUrU9SsepoXrwjH5j5AS/JoaboMVhPNbkAWTU7 in06oobCK1T3e6zy7lXbKGAjbt29RzFxThjHgY7Sm5sMfa5Zkp+a+p0MYpHQLw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=LWPxQE8I; 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: -6.79 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=LWPxQE8I; 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: B028A9FB1 X-Spam-Score: -6.79 X-Migadu-Scanner: scn0.migadu.com X-TUID: fjfm9FbzWMCh Alain.Cochard@unistra.fr writes: > Hello. When I visit an org buffer containing only: > > foo[fn:1] > > [fn:1] bar > #+begin_example > > > x > #+end_example > > then, hitting when the cursor is on either '#' does nothing > (i.e., no folding). This is not a bug. Just unintuitive syntax: https://orgmode.org/manual/Creating-Footnotes.html#Creating-Footnotes >> A footnote is started by a footnote marker in square brackets in >> column 0, no indentation allowed. It ends at the next footnote >> definition, headline, or after two consecutive empty lines. The >> footnote reference is simply the marker in square brackets, inside >> text. Markers always start with =E2=80=98fn:=E2=80=99. The important part is: It ends at the next footnote definition, headline, or after two consecutive= empty lines. So, your example is foo[fn:1] [fn:1] bar #+begin_example ;; <- this is not considered an example block because no major org elements can be inside a footnote definition. x #+end_example --=20 Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92