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 ms9.migadu.com with LMTPS id CAQiO8HDnmTWtwAASxT56A (envelope-from ) for ; Fri, 30 Jun 2023 14:00:02 +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 WLunOsHDnmRjgwAAauVa8A (envelope-from ) for ; Fri, 30 Jun 2023 14:00:01 +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 C14AC3DDA8 for ; Fri, 30 Jun 2023 14:00:01 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qFClu-0004gy-O8; Fri, 30 Jun 2023 07:58:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEkO3-0002oc-CY for emacs-orgmode@gnu.org; Thu, 29 Jun 2023 01:40:13 -0400 Received: from forward400a.mail.yandex.net ([2a02:6b8:c0e:500:1:45:d181:db01]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEkNy-0005uV-Hl for emacs-orgmode@gnu.org; Thu, 29 Jun 2023 01:40:10 -0400 Received: from mail-nwsmtp-smtp-production-main-55.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-55.vla.yp-c.yandex.net [IPv6:2a02:6b8:c2a:210:0:640:45a:0]) by forward400a.mail.yandex.net (Yandex) with ESMTP id BA2F264764 for ; Thu, 29 Jun 2023 08:40:00 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-55.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id tdFh440DemI0-R5VfICTJ; Thu, 29 Jun 2023 08:40:00 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1688017200; bh=YtN0IzdrrxiAS0TvyxhCZWyaIx4KmvRY2JezcUBS3lI=; h=Message-ID:Date:Subject:To:From; b=c8EzZT3hinvUfmaGqaqW+OxPGK8Og6pDabw8wyZ//z9z2WDuNOU7Nb5HpxcJbC1f7 AnoFciYkgCbXk3wdYpDiRXyBOajBTOwRz7kb2iIfRtVly/x9kcvvVZjPRKKhskBElA a+wQ780wBq4cRcWpmBiTS5rePuXTbOOaATzTDB7Y= From: pva-outdoor@yandex.ru To: emacs-orgmode@gnu.org Subject: [BUG] incorrect org-mode dynamic blocks docs [9.5.4 (release_9.5.4-3-g6dc785 @ /usr/local/share/emacs/29.0.50/lisp/org/)] Date: Thu, 29 Jun 2023 10:41:07 +0500 Message-ID: <87a5wij05o.fsf@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a02:6b8:c0e:500:1:45:d181:db01; envelope-from=pva-outdoor@yandex.ru; helo=forward400a.mail.yandex.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, 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-Mailman-Approved-At: Fri, 30 Jun 2023 07:58:40 -0400 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1688126401; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=YtN0IzdrrxiAS0TvyxhCZWyaIx4KmvRY2JezcUBS3lI=; b=S6Zqv3BK7BNGvVm9rzBZcy1NAfrHcCdZgRRNaGvMtXbHgWbgfN1OtBJHcLcvHqMjj08mRN +RUV7Ub0tPs3CPNzy42ULopFov3WoV2EkpOIOjgK2jhaVw+fhkMrr6j+6VT6KSymcQFgP7 xlwAL/eW2PViRuqwQBpHFFlSXxqFJocb5VfcS3gMG5dBBdlh1D3ts7JJCQGhmvjkOhmdDu Z+u8BAnOHD66z1tWZy+p9cSQKfisFfgbmaw6PZsU+vBct0alfiRJPHSraMD06U/oHnRp8w hvNKdf5DkebkOfQb2NZfc4CeKAkokb2k06E+3zop3QGNqP20ozgurOuuvfA8sA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=yandex.ru header.s=mail header.b=c8EzZT3h; dmarc=pass (policy=none) header.from=yandex.ru; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1688126401; a=rsa-sha256; cv=none; b=ipsRGBFqTNYajcqegei5EVdr0AIaUenF3T0s3ucZ2d6DNZ2GXGtMZZ07e5R9blmRzZRInH Z2xF17WEerl5qWT/tMMdtjgPfe/a/qMN50ZNNe/VNg0njKr6y+4YSs35dY1GkuVi1RAffl CwE1gh6APdAfb2rCRcuIeU7IEk70pWmFnYdmCLCQNuoAcmEw0JCON57XcTYBPAKEjwVegl UFBY/KG+lahQS15BQvMO0nWALE2g1iUqj8mgRjLAZ8gL0mbcvUx288TOicV2WI6uW96VEo 9813sihhVUEY3QCN3Z2OTyUvpW4zwiWToKrQOxe5jZ2KPjZ1aEeEOKdNx5lb+A== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -5.37 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=yandex.ru header.s=mail header.b=c8EzZT3h; dmarc=pass (policy=none) header.from=yandex.ru; 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: C14AC3DDA8 X-Spam-Score: -5.37 X-TUID: VljRHo4IcHAy Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ Hello, team! Please check the following documentation (or implementation) of dynamic blocks: 1. It seems that dynamic blocks can't have inner headlines (the org-dblock-write:xxx should not produce them). Otherwise the block will be parsed incorrectly (not mentioned in docs for org-mode). Example: Create the following 1.org and export it to unicode text (press C-c C-e t U). You will see "#+BEGIN: block2" as text. * Block2 =20=20 #+BEGIN: block2 ** Section 1 asdasdsad #+END: =20=20 2. Org-mode info file says: Dynamic blocks, like any other block, can be narrowed with =E2=80=98org-narrow-to-block=E2=80=99. That would not work because of implementation of org-narrow-to-block: (defun org-narrow-to-block () "Narrow buffer to the current block." (interactive) (let* ((case-fold-search t) (blockp (org-between-regexps-p "^[ \t]*#\\+begin_.*" <---- "^[ \t]*#\\+end_.*"))) (if blockp (narrow-to-region (car blockp) (cdr blockp)) (user-error "Not in a block")))) There is also a minor bug in org-mode (sould I report it in it's own mail?): If you press C-c C-, [RET] [RET] You'll get: #+begin_ #+end_nil while one could expect either begin_nil or end_.=20 Emacs : GNU Emacs 29.0.50 (build 4, x86_64-pc-linux-gnu, GTK+ Version 3.24= .34, cairo version 1.17.6) of 2022-07-15 Package: Org mode version 9.5.4 (release_9.5.4-3-g6dc785 @ /usr/local/share= /emacs/29.0.50/lisp/org/) --=20 Best regards, Andrey Petrov.