emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: org-archive-all-matches doesn't use org-archive-default-command


From: Matthew Lundin
Subject: Re: org-archive-all-matches doesn't use org-archive-default-command
Date: Tue, 26 May 2020 17:00:37 -0500

Hi Thomas,

Thomas Schaper <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]