emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-archive-all-matches doesn't use org-archive-default-command
@ 2020-05-25 17:49 Thomas Schaper
  2020-05-26 22:00 ` Matthew Lundin
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Schaper @ 2020-05-25 17:49 UTC (permalink / raw)
  To: emacs-orgmode


Hi all,

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?

Warm regards,
Thomas Schaper


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: org-archive-all-matches doesn't use org-archive-default-command
  2020-05-25 17:49 org-archive-all-matches doesn't use org-archive-default-command Thomas Schaper
@ 2020-05-26 22:00 ` Matthew Lundin
  0 siblings, 0 replies; 2+ messages in thread
From: Matthew Lundin @ 2020-05-26 22:00 UTC (permalink / raw)
  To: Thomas Schaper, emacs-orgmode

Hi Thomas,

Thomas Schaper <thomas+org-mode@libremail.nl> 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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-26 22:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-25 17:49 org-archive-all-matches doesn't use org-archive-default-command Thomas Schaper
2020-05-26 22:00 ` Matthew Lundin

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).