From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +HNPF/pSD2MqSQAAbAwnHQ (envelope-from ) for ; Wed, 31 Aug 2022 14:24:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 4I5gF/pSD2OtaQAA9RJhRA (envelope-from ) for ; Wed, 31 Aug 2022 14:24:26 +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 D94EE4187D for ; Wed, 31 Aug 2022 14:24:25 +0200 (CEST) Received: from localhost ([::1]:51238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTMld-0003vN-2d for larch@yhetil.org; Wed, 31 Aug 2022 08:24:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36880) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTMkw-0003v0-GZ for emacs-orgmode@gnu.org; Wed, 31 Aug 2022 08:23:42 -0400 Received: from smtpout01-ext2.partage.renater.fr ([194.254.240.33]:55864) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTMks-0004Pi-N1 for emacs-orgmode@gnu.org; Wed, 31 Aug 2022 08:23:41 -0400 Received: from zmtaauth03.partage.renater.fr (zmtaauth03.partage.renater.fr [194.254.240.26]) by smtpout10.partage.renater.fr (Postfix) with ESMTP id C2A0F621FF; Wed, 31 Aug 2022 14:23:31 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zmtaauth03.partage.renater.fr (Postfix) with ESMTP id B7CC1802C9; Wed, 31 Aug 2022 14:23:31 +0200 (CEST) Received: from zmtaauth03.partage.renater.fr ([127.0.0.1]) by localhost (zmtaauth03.partage.renater.fr [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 6Wjz81MRkD7D; Wed, 31 Aug 2022 14:23:31 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zmtaauth03.partage.renater.fr (Postfix) with ESMTP id 72047803A9; Wed, 31 Aug 2022 14:23:31 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 zmtaauth03.partage.renater.fr 72047803A9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unistra.fr; s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3; t=1661948611; bh=pDGElG/u9x4dCvy04mv1M21KHGjDhQ8xLMqeP5h61hI=; h=MIME-Version:Message-ID:Date:From:To; b=L7q+bxJEjMUjYVL4tvgGNK9ZRIIcFhiB8o/Lg3EP0JqOdUS8VLiHx/LYfjK+tDzGp zfzBmVCPAZddBrPmK9IkGaudeMroKdLjzj1iV2FC3LlIXk3IoY22TwLPUepRCoJKeT 5fjliPa1G7pzfreKd9crZ0LqU7GV1bJktoxbXPKVtksqJG6k5hAFYI1J7geWsoIRcJ c23zonl78Y9E97wPwKUvJQU4PWhW8nz3Guc6D+8Kx2xwOp/yzxqbF93YFVzt8rX1ox r6NBk2R/y/+ndiq32tE6+B3BZ8Qlmd1WeZ0r+dYW+YpcHXFHT6ICjII0GiwyXf3Fai 5MeBwTidXXn4w== X-Virus-Scanned: amavisd-new at zmtaauth03.partage.renater.fr Received: from zmtaauth03.partage.renater.fr ([127.0.0.1]) by localhost (zmtaauth03.partage.renater.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id LHMFlWGTli8L; Wed, 31 Aug 2022 14:23:31 +0200 (CEST) Received: from 130.79.11.24 (unknown [194.254.241.251]) by zmtaauth03.partage.renater.fr (Postfix) with ESMTPA id 194AC802C9; Wed, 31 Aug 2022 14:23:31 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <25359.21186.842934.778547@gargle.gargle.HOWL> Date: Wed, 31 Aug 2022 14:23:30 +0200 From: Alain.Cochard@unistra.fr To: Ihor Radchenko Cc: alain.cochard@unistra.fr, Org Mode List Subject: Re: Suspected bug: example block in a footnote doesn't fold if starts with 2 blank lines In-Reply-To: <87zgflp443.fsf@localhost> References: <25357.49721.706791.137935@gargle.gargle.HOWL> <87zgflp443.fsf@localhost> X-Mailer: VM 8.2.0b under 29.0.50 (x86_64-pc-linux-gnu) X-Renater-Ptge-SpamState: clean X-Renater-Ptge-SpamScore: -100 X-Renater-Ptge-SpamCause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdekiedgvdegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecutffgpfetvffgtfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepgggtgffkfffhvfevufgjfhforhesthhqredtredtudenucfhrhhomheptehlrghinhdrvehotghhrghrugesuhhnihhsthhrrgdrfhhrnecuggftrfgrthhtvghrnheptdevffdtuefhieefveegjefhffffffdtuddvgeefuddugffhtefgueffvdfhffegnecukfhppeduleegrddvheegrddvgedurddvhedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelgedrvdehgedrvdeguddrvdehuddphhgvlhhopedufedtrdejledruddurddvgedpmhgrihhlfhhrohhmpeetlhgrihhnrdevohgthhgrrhgusehunhhishhtrhgrrdhfrhdpnhgspghrtghpthhtohepfedprhgtphhtthhopegvmhgrtghsqdhorhhgmhhouggvsehgnhhurdhorhhgpdhrtghpthhtoheprghlrghinhdrtghotghhrghrugesuhhnihhsthhrrgdrfhhrpdhrtghpthhtohephigrnhhtrghrledvsehgmhgrihhlrdgtohhm Received-SPF: pass client-ip=194.254.240.33; envelope-from=Alain.Cochard@unistra.fr; helo=smtpout01-ext2.partage.renater.fr X-Spam_score_int: 3 X-Spam_score: 0.3 X-Spam_bar: / X-Spam_report: (0.3 / 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, NICE_REPLY_A=-0.001, RCVD_HELO_IP_MISMATCH=2.368, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Reply-To: alain.cochard@unistra.fr 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=1661948666; h=from:from:sender:sender:reply-to: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=pDGElG/u9x4dCvy04mv1M21KHGjDhQ8xLMqeP5h61hI=; b=lNScEpdsG/QXGsNzvHv2M/hf4+JueCNIgxWRXz0yczeJ0s1BxGybrt4PpqhykDEBzyE2v5 mLsAz1yreoiiu+R84gLU+V6dJmJYyydm1RYkvbl5M7KlbtOaCrp0xMEtXNu7wxvWT4LFLm WdFkd6Qp8ezAPObmWFVt1NCiA3WvD2/Z9VLOqMYj6qAPA+6LOLjhdAjsldPJFJyvAUpidO Hk6sAfMx2EMCb1etdFPv75D/4s0VuswwdqUuK//KnLlZPmygsJ9Wo6givkNcHGnNMTzobf m1Lml0qLhY6Wj4xDc76zHfGytbdl5INsOmjXqx6K+rEArM+02VWjZWMQqY/xVQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661948666; a=rsa-sha256; cv=none; b=l5UAyVoNDV1my35EbjmR/0VYuK3Ct4EJpYJgUnGDqDwdmM6qQQAt0r38Nz1txjOkn+9fwV rTckGi7R0EjXHLchxtEKe1Mn309WTpSTMrEsLlr4XHCl6kS7DEoqvBPV4Ezhnej2PWTu3f KUszCzuYfVcsVBpWy8ZVm2f/K0dZ+UoDgMZ3DySQ9e25B8oCVRy5MweLyzK6dA9MNPQgQB YD8lBkFS0rw/FlW3/R8LvZyjS2ozK6+/9O5pGWqxMnMi+p6RhvoE+UshiRHFhv7KQZME87 pfH6oW8vvdSlDWBA+xgYk2nCfGwzsbHS1Fyj3+tlbhTB64UvYSvY1JLNgxt7NQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=unistra.fr header.s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3 header.b=L7q+bxJE; dmarc=none; 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.78 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=unistra.fr header.s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3 header.b=L7q+bxJE; dmarc=none; 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: D94EE4187D X-Spam-Score: -6.78 X-Migadu-Scanner: scn0.migadu.com X-TUID: ypr/u6PQmpQq Ihor Radchenko writes on Wed 31 Aug 2022 09:57: > This is not a bug. Just unintuitive syntax: > [...] > The important part is: It ends at the next footnote definition, > headline, or after two consecutive empty lines. >=20 > So, your example is >=20 > foo[fn:1] >=20 > [fn:1] bar > #+begin=5Fexample ;; <- this is not considered an example block beca= use no > major org elements can be inside a footnote definition. >=20 >=20 > > x > #+end=5Fexample > Thanks a lot for answering. Is there an official definition for "major org element" =3F (I could no= t find anything relevant in the manual.) I guess a headline would qualify (and it would not have occurred to me to use a headline within a footnote; the manual is clear in that respect anyway). But then a list item would probably qualify as well=3F But, as far as = I can see, lists and footnotes work perfectly well together... (because 2 consecutive empty lines also mark the end of a list item=3F) Furthermore, as long as there is not more than one empty line in a row, blocks also appear to me to work just fine within footnotes, including upon latex export, and I use things like the following all the time: #+LATEX=5FHEADER: \usepackage{fancyvrb} #+LATEX=5FHEADER: \VerbatimFootnotes foot[fn:1] [fn:1] note=20 #+begin=5Fsrc fortran =09 print*,"foo" #+end=5Fsrc I simply never had to use 2 consecutive empty lines in blocks up to now... So I guess I'll turn my "suspected bug" into a feature request: that #+BEGIN ... #+END blocks behave the same way whether they are within a footnote or not. Regards --=20 EOST (=C9cole et Observatoire des Sciences de la Terre)=20 ITE (Institut Terre & Environnement) | alain.cochard@unistra.fr 5 rue Ren=E9 Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44=20= F-67084 Strasbourg Cedex, France | [ slot available for rent ]