From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id AAgsMBVG6GUpTAEA62LTzQ:P1 (envelope-from ) for ; Wed, 06 Mar 2024 11:31:49 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id AAgsMBVG6GUpTAEA62LTzQ (envelope-from ) for ; Wed, 06 Mar 2024 11:31:49 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=XD4wgeQ1; dmarc=pass (policy=none) header.from=posteo.net; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709721109; 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=NqI4fZ498H+lG8hK/1XOdwxMpBeiJ6Lub5mCU4oAafE=; b=hguR5UiBNrVtE55tu7CKovNRfA7IwNd7/85vFwg258KhBemOUSFF0H3Y7Eq532d/Qb06tA M8VsDSEi5rStbrNshDBZ9zUeozNBeheBkskEvxyK48ec1f6K98EsqJx7zafMTCxKEzXL0X ifjKXyJ7x4noP3n/MsRKWNQctlQ4ns2u/EdiUfoI49Oc/1j9mkzU1cgO99ijd/BRjrK9KO bTWDIiCTfBSb6bTMo5Wuplz4bUS80Be/qsGoauxYIcPCtga6SYwCLx9wKKYBEyDg6M/bxH aie8HKxmw+KGnJUskefvrM+YrcJkhJKDmxE0OZOIHnhHNIGQ9h2wmFzFZhYQ4w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=XD4wgeQ1; dmarc=pass (policy=none) header.from=posteo.net; 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=1709721109; a=rsa-sha256; cv=none; b=MEM5VPWsTW1Urx3aBL2OA+O1y1hdi/Jo+fXjQsSl+2GupMe8B8GcWXzolJXnI3aA4ANUuc lHxPsVcg58qTzLYnGzUM/kgDMlYciawRvS9Iw6P69/Jafh5Mso1pWLUt8wMCYwGQGGPZPA RpqcPXXahHCzcN4KZDd8ZHh4JXdyT/HLGGdd1GOpVtJcocbuivQ/+hoQ7GFHs0zdDm5HnO VxyY3iueFwQxKSjeDx/oiW4ubXKmIRH9Bjt0RzDvjL+DM8lIYTqDqK0Vn48nr8YFtgm9G3 LXidxbaIRRDgPy0Ru1/AhC4BHdP4tazbzT7XBEJXkwTWfJD2QnJKMxotszc/pA== 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 70A4F3EE18 for ; Wed, 6 Mar 2024 11:31:49 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rhoY5-0004VX-61; Wed, 06 Mar 2024 05:30:57 -0500 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 1rhoY3-0004VM-J3 for emacs-orgmode@gnu.org; Wed, 06 Mar 2024 05:30:55 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rhoY1-0007W6-Fy for emacs-orgmode@gnu.org; Wed, 06 Mar 2024 05:30:55 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 9B95C240104 for ; Wed, 6 Mar 2024 11:30:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1709721048; bh=TDzIo/DLXzRwWM5uSH3Yv4Dh3FIlBJrhkzfPxUFVfMQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=XD4wgeQ154ahr6jznRkWXC6qS6WjZbgCoNfzTzwwlPGi+givsfj4FOeu7GpOWFxi/ 2nqc2VnbgzLr6vNg2T+PBLDhMDh8rjvqCdBmQp8kkaleQtyHr3+O6GvZhx9qsjWLl9 Z4O7a3UP/7C3uZOGmsd5Z5GewB33OLn0ruaBwuQPKXLFjebo1uctoIyGFeUL2GlQzP PwfA6awGsuuED6OOPJwqDALEzBNkcmGV9V7IVMW9TUGcVvvJbj7MUwUoO1lKh0W+JS 2sGBxNlaIohK7Qqsr4bwqGCM/UuI9mQHrQpAY7wtScze7OprgUTyYPcdctHYjvYXoD Arljp6+wSl46Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TqTGv5Vw2z6tsb; Wed, 6 Mar 2024 11:30:47 +0100 (CET) From: Ihor Radchenko To: mahmood sheikh Cc: emacs-orgmode@gnu.org Subject: Re: nested blocks in org In-Reply-To: References: <87frxrm604.fsf@localhost> <87il2mc1v3.fsf@localhost> Date: Wed, 06 Mar 2024 10:34:53 +0000 Message-ID: <87ttlj3aya.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=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-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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.51 X-Spam-Score: -6.51 X-Migadu-Queue-Id: 70A4F3EE18 X-Migadu-Scanner: mx13.migadu.com X-TUID: FNe8PCyW1KQD mahmood sheikh writes: > with the given minimal example: > ``` > #+begin_parent > #+begin_child > #+end_child > #+end_parent > ``` > the code > ```lisp > (org-block-map (lambda () (message "elem: %s" (org-element-at-point)))) > ``` > goes through only the parent element and doesnt run the lambda on the > child block > the docstring of org-block-map says it iterates through src blocks but > it also goes through special blocks, albeit not nested ones, i > might've confused it for org-element-map as im not sure about the > later functions behavior. This is a bug in `org-block-map'. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at