From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uCQnH3bXzGE64AAAgWs5BA (envelope-from ) for ; Wed, 29 Dec 2021 22:47:34 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KCyVG3bXzGFITQEAauVa8A (envelope-from ) for ; Wed, 29 Dec 2021 22:47:34 +0100 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 071D5A23F for ; Wed, 29 Dec 2021 22:47:33 +0100 (CET) Received: from localhost ([::1]:52854 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2gnE-0007Zp-5a for larch@yhetil.org; Wed, 29 Dec 2021 16:47:32 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51018) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2gme-0007Zb-2C for emacs-orgmode@gnu.org; Wed, 29 Dec 2021 16:46:56 -0500 Received: from [2607:f8b0:4864:20::1031] (port=39765 helo=mail-pj1-x1031.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2gmb-0004za-9y for emacs-orgmode@gnu.org; Wed, 29 Dec 2021 16:46:54 -0500 Received: by mail-pj1-x1031.google.com with SMTP id z9-20020a17090a7b8900b001b13558eadaso25832914pjc.4 for ; Wed, 29 Dec 2021 13:46:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=VuKb7xFppW0aHtLFlkZB+bvlvGRDgMCzdKK5roYlEjU=; b=V270UYNvDBd9aD5MibLOomvmOYcPqjXisS+6dNCfqLDFeoHWf9DwInZdzCzOikEk1a BOzF+MLY82UJ0RYz4l4geLBQb7pcCYmGl09KzI/WQmvkDbh5EKla5MXyKz/58EhY7Cdx 0mPNv8BQc8ysFog2ks54WQlnbwKnjA8Mz4N4XRA+mzGiPaOEn4Zbfy3+0W9TNVrAifUW GT4pGtgUWzEW1YO7vGfRx+wxEXSLnGbxp2uf46TtzSXC8uthw8Pcgky06/HkO5Xto+ni urcXLwWvFmstGpkrtmm/6I++OumN4tBJjm2/Pm5neByb6+r9L2lB9FXT17AWXeQ2lz5n BHJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:subject:date :in-reply-to:message-id:mime-version:content-transfer-encoding; bh=VuKb7xFppW0aHtLFlkZB+bvlvGRDgMCzdKK5roYlEjU=; b=6GIpc25B7tAUkpNwODj4Kip1ckd9r1GOQIXfer4xyWbjyhp3eRmtCOHNqEQuAXZ4Ud Sn1gEuAzK1XcqQsAVIm0G2A4mD/I6LLfN9T5OfJpmFtl2VxPJ3ij3Vw764eRv4HpFHyD bPTkDuTc9uv2V6eyaOa6HmCoKwonezEmGmMXpJkijOV5v7dh/7yd0Ltgm9jUkk1XJ39K S6qM+n2Q43ebwh6TGTpG1jEGHHyIw0cq4IwmcRy+SMaIRMjyEMMKv3m3h3Vx4Dy2uP1Q 2ipneXjoMM0ok4IvUC9GT1JQZ4tcqloj8L5fBehalkTTiVwKM1BUOqU9toypWmD0UheD p2EA== X-Gm-Message-State: AOAM531GCsOwD+RIrSXAbYhHr451oTSY06tk2v3+7E8pZ6FsX3nk3uBe /3FvVHdTXn6KZ/r+QfJKYYzjZMHb/3U= X-Google-Smtp-Source: ABdhPJwvsb0HRyLPnC6BvJ53vPjZ4yBiuWOupXFNf3LpNW2osyhgthdR1VUZCCRprC6c5Vra4iWcOg== X-Received: by 2002:a17:90b:1c01:: with SMTP id oc1mr23328412pjb.27.1640814411318; Wed, 29 Dec 2021 13:46:51 -0800 (PST) Received: from dingbat ([124.149.107.194]) by smtp.gmail.com with ESMTPSA id z4sm26259542pfh.15.2021.12.29.13.46.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Dec 2021 13:46:50 -0800 (PST) References: User-agent: mu4e 1.7.5; emacs 28.0.90 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: block folding - should this work? Date: Thu, 30 Dec 2021 08:37:37 +1100 In-reply-to: Message-ID: <87pmpf3wzl.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::1031 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=theophilusx@gmail.com; helo=mail-pj1-x1031.google.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640814454; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=VuKb7xFppW0aHtLFlkZB+bvlvGRDgMCzdKK5roYlEjU=; b=DrBhederuptFfaEH+qpaK71RLU0fm3+2elDr6DcmLNy/LG2uklBnQl+J0n1Kn5vpRiN9GB jn+wmBitXOfgEq94KOATSMTYIAyyLZz2v5tHxSaC0MTfHj9xxmE8GBhGCxsUgQ4SrSCEEo lWL39M8SDKctf8+OTRso7a9QrC1CkkS1MUqnJO1SPcGqOjO45sLP1W9O2r/iB0f2Gs+o12 9wDFKeis2NXGQD7Is66umibN8Y/OF8/YFoE7VD4bzOanZhlossxUkL1dMyrk/2Q4evABp0 18E58Bo0/ZhLCrSA4mezuis7k7mSvJmJaHYI9MI6jluLAem66H6Clk9H0Gdfvw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640814454; a=rsa-sha256; cv=none; b=UkJvj6eQ4+CBzanP5Lrw82zOVIjJNc3szLYYciKukJBOf0dGYdFNTZpdZJ+27VPaazvH4T 2Rj75kPBSUxO2JFVBzBa+QXfn1hx3uf05eyzv+pK1MBaycz2LhBk7CxXXgNUB1WX3GU2ez SyR9NTanvA7+7ySj7PgdkDp7YUO+Z7pYsPaj5YdPO+Gz+9HhjDOvWstrQeu6UkQsizuWNn 00TKuhNDWvCzfqOJ385nhGUpInT4uDJ6+vYivhNJDuJkVGZnHnolO4avwiNFxI/imycGwv P47ZnAVHQXCEiX87R+1390EmP49VF0wVNl0J5gVUdEZYklTA9mqD5Nj+YnKxFg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=V270UYNv; 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: -5.07 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=V270UYNv; 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: 071D5A23F X-Spam-Score: -5.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: XJveU4XVg5yL Robert Nikander writes: > I started reading about =E2=80=9Cblocks" in the manual. I wanted a chunk = of text that I could hide, so I tried this: > > * Test > Some text > #+BEGIN=20 > Hide this > #+END > > Hitting TAB on the BEGIN line does nothing. But if I add a blank line bef= ore it, > then hitting TAB hides and shows the block. Is that a bug? Or am I doing = it > wrong? Seems like it should work without the blank line. > > * Test > Some text > > #+BEGIN=20 > Hide this > #+END > > M-x org-version =3D> 9.5.1. The problem here is that your blocks are not correctly specified. If you run M-x org-lint on your example, it will tell you the blocks may not be correctly specified. You need to tell org what sort of block it is. Org supports a number of different block types, such as source code blocks (#+begin_src/#+end_src), example blocks (#+begin_example/#+end_example), centred blocks (#+begin_center/#+end_center) etc. You can use C-c C-, to run the command org-insert-structured-template to select the block type. If you first highlight the region, it will be wrapped in the block you select.