From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id CF0RKoWq7WTiVAAAG6o9tA:P1 (envelope-from ) for ; Tue, 29 Aug 2023 10:21:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CF0RKoWq7WTiVAAAG6o9tA (envelope-from ) for ; Tue, 29 Aug 2023 10:21:25 +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 08BCF5D463 for ; Tue, 29 Aug 2023 10:21:25 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=P6O9NWPk; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693297285; 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=BMoKqRAkgJhwS7fDtlXHNtx4b3sq4cqfwOz3onecqGg=; b=H7/IMjG5t5GLXa/hjSkE1xOYYqPehN8WBFjsmgZ7N2h07BZln0rhMKW2JWDiXHeLGVNxNe VgqZjdKJa6GQ4QzpbXYjMDr7BGTFJZ0kJWQvtArvd66hbM8TgkJA0/aRooboFCI9Qdh68H 6NvNMzix2uy/oX9iRQXklx+MX5j6Z9xgV3TBizlEAKjOUuKu0fYSjCLv1R7GW0kObV6Qoe AesgxO+cvEXeW384Xj05dEHPY65bFv8Hd7dOPUPvL7vYg5Q9qwSloEIPImc6brZVEcugi4 Gxs+1svhbSyXD+tOzM7bHUvBg4kH16dE3pr7yqM9W0FJDLG/F8hdOTakjq0Scg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=P6O9NWPk; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693297285; a=rsa-sha256; cv=none; b=BDSRcKpiLBY5Xa93Hx9gffUubnGzDuBjynfXSVxpjLiBX16gT76huYwktnO7gD2Lt77R7c smvvFFhgQYHKuuT452j5L0YKI0v0jc1ekhGX6iEFH6tmABORMujE1Aubu7TbpHAJqp/lIp BRXq+MRNAXwo2unjg2Kw/qzSv20fVj4HI9pN6iOSTSxJytBaXvQwdFMby4n5gCc6htUkQb Wq1Ls0Z66E5VtHdUTZ7IdTG09pptKbmOIboelm5gkLVZRU6b7007XGBMzW2/l/j9tktHdM kpNhsuhWCw+Ex74R9yjrIw240HbYRhFxwQbPNJaNtbVN7DI4lwC4lkq1T5QIgg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qatxl-0008S4-3D; Tue, 29 Aug 2023 04:20:39 -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 1qatxa-0008Rm-Sv for emacs-orgmode@gnu.org; Tue, 29 Aug 2023 04:20:27 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qatxX-0004uu-Cz for emacs-orgmode@gnu.org; Tue, 29 Aug 2023 04:20:26 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 779B1240028 for ; Tue, 29 Aug 2023 10:20:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1693297220; bh=2ALKt1m2JzI9ZI6MUIVNKoaxVRJoDOsqwdX7nfqSUvE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=P6O9NWPklt6T1RyDjKA18QaqDU52IRDhrjUSPHlzMGfpB+gRHuvdfsXXinJ7uN1W2 TZGHybE1O3h997TqI6IboohAgJhjNN89ss4Xo9V8YwT3j1jCGrhuTD6cIyXknhwiLk fJa2KkVk9zx5BRL0gZ4Ebv3ygFwJFS+xAhITTxPZo9vIWxLTz6S7uBeOBHZ0tfNjTT InJxqH56ZtNq9lb4cTVtqVYqCH3bTm8UA0f2OGFa16V414b3SxvlmzevwL3xl6cFcV 55AOlkDscvIg3Pkl2Aen1GZxv0a1OWIMMyvc0/ubBwxAYNgmS1HV83I7AqU0UrL0cs owOjhV/JQGCGQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RZgN36JRvz6tsB; Tue, 29 Aug 2023 10:20:19 +0200 (CEST) From: Ihor Radchenko To: Rodrigo Morales Cc: org-mode-email Subject: Re: [BUG][org-map-entries] Using (widen) in FUNC when SCOPE is equal to 'tree iterates through headlines outside the tree In-Reply-To: References: Date: Tue, 29 Aug 2023 08:20:50 +0000 Message-ID: <87fs421cpp.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx2.migadu.com X-Migadu-Spam-Score: -9.15 X-Spam-Score: -9.15 X-Migadu-Queue-Id: 08BCF5D463 X-TUID: DBIyBvPAR7IO Rodrigo Morales writes: > (with-temp-buffer > (org-mode) > (insert > "* 1 > ,** 1.1 > ,** 1.2 > ,** 1.3 > ,* 2 > ,** 2.1 > ,** 2.2 > ,** 2.3 > ") > (goto-char (point-min)) > (org-map-entries > (lambda () > (widen) > (org-entry-get nil "ITEM")) > nil > 'tree)) > #+end_src > > #+RESULTS: > #+begin_example > ("1" "1.1" "1.2" "1.3" "2" "2.1" "2.2" "2.3") > #+end_example I cannot reproduce on the latest main (Org 9.7-pre) Canceled. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at