From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id CNepMCEB7mR5XAEAG6o9tA:P1 (envelope-from ) for ; Tue, 29 Aug 2023 16:30:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CNepMCEB7mR5XAEAG6o9tA (envelope-from ) for ; Tue, 29 Aug 2023 16:30:57 +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 91DA4660F3 for ; Tue, 29 Aug 2023 16:30:57 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=ZYqbm6Jx; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693319457; 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=cymrsIRi4ynX8DYurHOor89qgjrnlCWKJCepeJfACaU=; b=BdAb5QX+y7UgTfK9yo/0q9um1xY26nlsZHssz5D/WcpcuGJ0YmbPD2kqNrNgIelzOIs6ri KjB7+Hl1hCjlBGEV93msQYZWyVC3H+rnMzRXvjwKocdxmZiXdeQnVI2GViUnu4lDXCX0UN Fs4dM2QbWogvgOyrU7hfkKX3vTdFgadUISI8RK63ObQa0IRn/rKO5LbuCyAB3YaJMw0GV4 W3vJCr9xMwpzzsrSVVziXR1PbxbYawmWf0pBDqE8+lVM0ryBruM/EnkKucQ3HHN3f7DBLc 5Ue2+2Y2y2K0CNYawk4d6Lv6tQdi+tARd+4diTEIEWToGD0HSqypj78TozIutQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=ZYqbm6Jx; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693319457; a=rsa-sha256; cv=none; b=rnVxK72tZ2qUn6B/2CSDlNxUAcfRa5azkn0RvXYKJn2ioP0rKc5QjB5FFDTLIvVde1VpUq djGrZwdZu71BAlFxyBIbjyyPIqSnaB2MtOc3jo3vM0UtdHGHoOrV2+FowODXfoWtb/Hnx8 xTfiRg7/NTmKXPqQAS+EbDRXk+/zfo8zPsikqzj8goeH7zh3DPPMlwcINycYXJgVPKY88Q sANyBw02XnX3bULrx96CW9onCSfaiqS4mnkHOd1JmUV+kb3H6NNdlFnXLXnCIkdNReHmEX 6K9HNf8rp9euL1stog6YR3u28VXwy57SJf4gVFTKe50syKmSpd/OiPeDDyQ9Cw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qayn9-00062B-RE; Tue, 29 Aug 2023 09:30:00 -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 1qayn3-000612-Tt for emacs-orgmode@gnu.org; Tue, 29 Aug 2023 09:29:53 -0400 Received: from mail-vs1-xe2c.google.com ([2607:f8b0:4864:20::e2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qayn1-0006P9-DS for emacs-orgmode@gnu.org; Tue, 29 Aug 2023 09:29:53 -0400 Received: by mail-vs1-xe2c.google.com with SMTP id ada2fe7eead31-44d4cef5effso1598924137.1 for ; Tue, 29 Aug 2023 06:29:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693315790; x=1693920590; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=cymrsIRi4ynX8DYurHOor89qgjrnlCWKJCepeJfACaU=; b=ZYqbm6JxnVbzgmf/ezQhyDF1x6m6PYPr68CWHr1Mjz3PLw8Pos39FdCDmPS3bXuitm RjiXcOlpaxtPaLTCvbZIuqj3aWkLVTBT9iUw9IRgGKQsgBXx5/R5cK/4VJ5Nm2+vsGbH 1QNAApBJ0RZayGzY6hPp7AEO9V5d34gxpByfmAlstlPXLClYNs86hS4DfjK2hwb21V7C n8+aaBVKysgrYXHZwKzRiJlhzMzLesm4xG3xmYK+0/UvHv8v3cO5oovNnbSQepVHPMGA Oy6tRB3ktViGqLDSZS5aQBWazu1dTA17QJ4oIhU8SQaaZ7HuBeeIKGCJ4hkiSQt7HQso 5ykg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693315790; x=1693920590; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cymrsIRi4ynX8DYurHOor89qgjrnlCWKJCepeJfACaU=; b=EVp+F0+47wIe/ihe5662lznHfRPc5W0ptukpqyndBT4yzuvyz3FBKCI5jUSi4X5fgi j/YurmUihHP1SKnITGdBQyuda3/o6J0XcY11Hna2Ri0/yT4dqguDbsATj6xW5S0nIy9p ancIn+KzZ3XCJbORdZwK1Zo8Flk8+wcr2iAoDnekwaHnWF3IXbPJbYXO9i91+8aq1mgK iGOjQiRcXmHIZds5MzHMAmyLLBtNu+GVLCoWSIxPc0ZTWCLCSY4XcKatm/m11ialb+hA QuRIZCZmjxBuTp0V7EeT0b0r/zwL4BYILRLuRVVtCK7zOoV7RTfp28CSmPBv9XAvdPsE D5Qw== X-Gm-Message-State: AOJu0YzrlpV/vPxxUNQzwV85eIvx1UsT+kqLM6uLYOb5tx6EO7HJKvcT 9mkzZ3mrLOFzKIxLay4r39d5KHgGIXo1e8Mjn7GLJ4miLJk= X-Google-Smtp-Source: AGHT+IG+X6D6U5sX96lIhbmKc/M/jWnu6ItbQyqmeyrMAZbaccOUtzOu4dcFdgQDvg0VHSm1RjzW6Qe2yoehg+H4OXM= X-Received: by 2002:a05:6102:c46:b0:44e:afb0:f45c with SMTP id y6-20020a0561020c4600b0044eafb0f45cmr8868012vss.28.1693315790164; Tue, 29 Aug 2023 06:29:50 -0700 (PDT) MIME-Version: 1.0 References: <87fs421cpp.fsf@localhost> In-Reply-To: <87fs421cpp.fsf@localhost> From: Rodrigo Morales Date: Tue, 29 Aug 2023 13:29:34 +0000 Message-ID: Subject: Re: [BUG][org-map-entries] Using (widen) in FUNC when SCOPE is equal to 'tree iterates through headlines outside the tree To: Ihor Radchenko Cc: org-mode-email Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::e2c; envelope-from=moralesrodrigo1100@gmail.com; helo=mail-vs1-xe2c.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -9.59 X-Spam-Score: -9.59 X-Migadu-Queue-Id: 91DA4660F3 X-TUID: ltneMN8jH12q I cannot reproduce on the latest main either. Next time, before reporting a bug, I'll make sure that it hasn't been fixed on the latest main. Thanks for reviewing it. On Tue, 29 Aug 2023 at 08:20, Ihor Radchenko wrote: > > 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