From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id IIyhG6uRzV5sSAAA0tVLHw (envelope-from ) for ; Tue, 26 May 2020 22:01:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id mM2WF6uRzV6yKwAAB5/wlQ (envelope-from ) for ; Tue, 26 May 2020 22:01:15 +0000 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 06B00940365 for ; Tue, 26 May 2020 22:01:14 +0000 (UTC) Received: from localhost ([::1]:34814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdhdH-0006z1-9C for larch@yhetil.org; Tue, 26 May 2020 18:01:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37458) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdhcq-0006yu-VD for emacs-orgmode@gnu.org; Tue, 26 May 2020 18:00:44 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:33215) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdhco-0003jc-M0 for emacs-orgmode@gnu.org; Tue, 26 May 2020 18:00:44 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id BBECD15B7; Tue, 26 May 2020 18:00:40 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 26 May 2020 18:00:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imapmail.org; h= from:to:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm3; bh=NSWvkVwU/1moFs/+N+jOu84lbk G57o1fl3fdvF0oMU4=; b=mE6Npv5y0p8xLpr2ObXUtxGsTeUmUEBfEMBbSZq90z 5MNIWyUu0NPtenLkPXm/OORbb06vNmOOBkx+CNkt9wLprexDXWhHN6O+qful49YM 1TJEx50Qahy0lrlah4mWCBxSqWhzW62wmYhTmpT4wfDR8J5nYKHYt/l5HmwelG/w dMy3tG5kJWcvvKCvJzo47Z2n/NbThwSZallvXf7n5Kaq2ASJUm1QlvlRf52xUMHG 3nbxjZOQVsYgvBOYEEkUN4Qp67qrRQCXW1Yyscx3QcVf1hh7J6aFqnH9K4Hv2cwN inuylDtyUhlhv0rftbfOUY1I6l70jLsvm1DZNKhtBFaw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=NSWvkV wU/1moFs/+N+jOu84lbkG57o1fl3fdvF0oMU4=; b=Lfln/V3Y19scOgPy0ULlmR /h1KbGP/02ONnWVGZb72x/c+lAEBr4wLaoCLXanna926KJZ9jKgpTAKC4jv4tlJR JS6/XLLt3ljLst8mm4zSbW8bFfLnfVPihcESk19er2DEP1BLn1qS3nc5dpwi2qlP kg3soFdwI2jhHTs2ONzcLTxlnQEfSh62KpQbuLfV2QypE1VW7zk/Q9PODiWvFcT0 u8O6N8nj5xJFjW8hmjJ7NknXmwRHuWQqLKazUGAjJvUqsmXNpzhSptDllxs84YIS zWaPa63nP1qol+tLQ0h234RBOQtHzGK45+aqvQL7cWbuXQWeyZ4rSuAtdEmp8YBQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddvfedgtdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffujghffffkgggtsehttdertd dttddtnecuhfhrohhmpeforghtthhhvgifucfnuhhnughinhcuoehmughlsehimhgrphhm rghilhdrohhrgheqnecuggftrfgrthhtvghrnhepveffgeejffehvdfgvefgledvvdejie egfffgveeuvdelkeeivdfggffggeeuheehnecukfhppeejiedrudeirddufeehrdduudel necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgulh esihhmrghpmhgrihhlrdhorhhg X-ME-Proxy: Received: from localhost (c-76-16-135-119.hsd1.il.comcast.net [76.16.135.119]) by mail.messagingengine.com (Postfix) with ESMTPA id 720D730665DF; Tue, 26 May 2020 18:00:39 -0400 (EDT) From: Matthew Lundin To: Thomas Schaper , emacs-orgmode@gnu.org Subject: Re: org-archive-all-matches doesn't use org-archive-default-command In-Reply-To: <87o8qb52gt.fsf@Libertus> References: <87o8qb52gt.fsf@Libertus> Date: Tue, 26 May 2020 17:00:37 -0500 Message-ID: <87v9ki8igq.fsf@fastmail.fm> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=64.147.123.20; envelope-from=mdl@imapmail.org; helo=wout4-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/26 18:00:41 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=imapmail.org header.s=fm3 header.b=mE6Npv5y; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=Lfln/V3Y; dmarc=pass (policy=none) header.from=imapmail.org; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: PWZlSB8V1ZsQ Hi Thomas, Thomas Schaper writes: > When playing around with org-archive, I noticed that the function > org-archive-all-matches doesn't use org-archive-default-command but > calls org-archive-subtree directly. Is there any reason for this, or is > it simply a small bug/missing feature? I think this is because at present org-archive-all-matches is a non-interactive helper function that is called only when someone is using org-archive-subtree or org-toggle-archive-tag with a prefix argument. So without some refactoring, using org-archive-default-command would cause unexpected behavior, since it is invoked only in contexts in which people are explicitly expecting *either* org-archive-subtree *or* org-toggle-archive-tag. Were you by chance looking to have this work with org-archive-to-archive-sibling? Best, Matt