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 ms0.migadu.com with LMTPS id wFlwJfxL2GG6pwAAgWs5BA (envelope-from ) for ; Fri, 07 Jan 2022 15:19:40 +0100 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 YHhBIvxL2GFPRQEAauVa8A (envelope-from ) for ; Fri, 07 Jan 2022 15:19:40 +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 43E16FB85 for ; Fri, 7 Jan 2022 15:19:40 +0100 (CET) Received: from localhost ([::1]:56948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n5q5i-0004uD-Vb for larch@yhetil.org; Fri, 07 Jan 2022 09:19:39 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5q4w-0004u4-VU for emacs-orgmode@gnu.org; Fri, 07 Jan 2022 09:18:50 -0500 Received: from [2a00:1450:4864:20::12e] (port=39531 helo=mail-lf1-x12e.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n5q4t-0004Vr-B0 for emacs-orgmode@gnu.org; Fri, 07 Jan 2022 09:18:50 -0500 Received: by mail-lf1-x12e.google.com with SMTP id bp20so16036600lfb.6 for ; Fri, 07 Jan 2022 06:18:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=xY+XHIzT+dT3HdxEKjOBu5cUMV8bKRMKI/LFA2F99qc=; b=SN/1S1SIn07F9i4pynoH/nY+yqwPhi85CO8GCQTo2n8ZWq/t5J48ZXNwQnHOtggjfd /pMsMKjoslkfLELhCjUtkiHNbzfpJCNJlIcKLG5ZwHzh6soOrSnCQA1I7VND5DIuAjw/ XhwXxka3rk572/U0vomKeeEH5bdL8or+fDHmvD1kDhLBP7iRnRwbHnVULQIGcuMjJE64 sdOyBI3VhT6l9uZ124NEuESIKlG0w9Jzm9KQfTUyKkUkmSaekNC2fsMIDVG/rZhcw2Dc ZoFDSIlhbA4YtwyRtWyFlfSIg4hPIRn4eU1dyFIegoAsch/wsyKXpD4nEgoPkUgkoCCk 0IPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=xY+XHIzT+dT3HdxEKjOBu5cUMV8bKRMKI/LFA2F99qc=; b=NmCq+Ie+P/z+9gDS7cc9nHujmWAVMtZDaEqKYI4xe6EKvgE/zAx1po7Axv2Upg+6Ry n4RoFGQalBhE91sA2Ym4Fm+YZ2Fzu9yBc3iMDXY/APJ95jOIoX35EJqjUHKkU2RBqRru pmH2/mkn2fFsSuhAFkBcU45txI3Vum4SEj8Yv3gtq5Ky3+QegIZUgG7oh/Ur4dIpAPsr xtkSuZAupE3eovHTXUPTpufw106HHrp5fyuMWbxrqAj/NzK24LwqKKfphT7Ry4nuClxj N7aP7PTv52RkHOWwgowXoyw10fRHNDP7Cn8QOmHEx1/5ZsGL/MWAAIq7HX7VfTl3ZjAu 1mKg== X-Gm-Message-State: AOAM5312L83wENeg8ZeLYaKqTRWxBc8Vzvl65Y17AsjCECNFCEe/QLnL nThEbmNf6KaIP3uItZ+XNnQ= X-Google-Smtp-Source: ABdhPJzEGxlbd1P64iLLeJnfp4kjEVPhCdAu6m+9j2MbPwEs9ZGqLl5B3pfi7GbG71oeW+EjSwc4HA== X-Received: by 2002:a05:6512:2209:: with SMTP id h9mr54098112lfu.79.1641565125095; Fri, 07 Jan 2022 06:18:45 -0800 (PST) Received: from localhost ([91.210.107.150]) by smtp.gmail.com with ESMTPSA id m12sm596041lfu.1.2022.01.07.06.18.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jan 2022 06:18:44 -0800 (PST) From: Ihor Radchenko To: John Mathena Subject: Re: [BUG] Setting org-map-continue from to avoid skipping headings while archiving no longer works [9.5.2 (9.5.2-gd01235 @ /home/john/.emacs.d/straight/build/org/)] In-Reply-To: References: <874k6soyvg.fsf@localhost> <87h7aonerx.fsf@localhost> Date: Fri, 07 Jan 2022 22:20:01 +0800 Message-ID: <87o84nr5ke.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::12e (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=yantar92@gmail.com; helo=mail-lf1-x12e.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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_ENVFROM_END_DIGIT=0.25, 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: , Cc: emacs-orgmode@gnu.org 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=1641565180; 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=xY+XHIzT+dT3HdxEKjOBu5cUMV8bKRMKI/LFA2F99qc=; b=UMmMoNpmFQ6URdrVpzrxRdHjsW9daz5J6BM19yhsyOPcoMjO+PMwx5V7iXLxRzMF2Z6knO bEvozy0Ys4pSbu9saSJcB8hsT8AwuR60yvD4Ll3J238161QJbMonRoAaKFPvDwc/7qnOKl vzIbbz2NadbkUSVVwr8bJXAYpxJcB76oIvIHAUGDqksuoQsmLCNcRmhkKmrXp2N9I/Cx2J dxXxAhqJg10sZGa3SeQlZYUYiV6ZUZuDOoRO34Os34Jo/xCwlPn4488wEVttfviCRVui63 Y0JWQa19fHcBxRXbMriEvlitWpd+Q44Wrjpk6eBius1CBGDe+5GmCsorqcP7zg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641565180; a=rsa-sha256; cv=none; b=YD2uYqcx3FiqtPs0zioLu/CJA1vt10SxKL93b/9FFglAxL9xmK8nfB/MMrXhhYrodvpkLP iCSkWLAbiLQh0HVS4uoiLjUMthkkmp1uvMqlIa2jwkOGFZA5yQk6KvSlZC0hqCqSMN6ggJ MqzIEO9Cx6B/T/aIM1+v5Zci7A0CpEkRc3mMTr3BjWiPs7unptKgb11RzwsR6+B+ZNG45Z vr5R6BH095T91IhC35vs7iOvKJUj1aAqFmp2F60aeC1B4MLBDGFe9Knb5XmRX4rzyCp0nD 4csa4/Pc52/b2An5o3vrU7FqQZ5921ONKrAxkFBS0tgUIYH7oHmr+mU4zL56Ng== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="SN/1S1SI"; 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: -3.80 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="SN/1S1SI"; 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: 43E16FB85 X-Spam-Score: -3.80 X-Migadu-Scanner: scn1.migadu.com X-TUID: JFI63BCKjFbu John Mathena writes: > * TODO A > * TODO B > * DONE C > > ...Emacs will hang, locking up until you "C-g". This minimal example > was confirmed on Emacs 29.0.50 and Org 9.5.2-gb8656a (and I'd Thanks for reporting! This was a problem on Org side. Should be fixed now. > Again, I'd totally understand if this is just an end-user problem, > where I need to write a proper end condition for my archiving function > - if you think that's the case, let me know! I just wanted to bring > your attention to Emacs locking up in case it was unforeseen on your > end. Your function indeed looks fishy in sense that it can sometimes force Org to call your function twice on the same element. I think your specific combination of matcher and the function should do just fine (after I fixed the bug), but you may need to be careful about moving to element at point at the end of buffer if you reuse this code for more complex tasks. Best, Ihor