emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matthew Lundin <mdl@imapmail.org>
To: Thomas Schaper <thomas+org-mode@libremail.nl>, emacs-orgmode@gnu.org
Subject: Re: org-archive-all-matches doesn't use org-archive-default-command
Date: Tue, 26 May 2020 17:00:37 -0500	[thread overview]
Message-ID: <87v9ki8igq.fsf@fastmail.fm> (raw)
In-Reply-To: <87o8qb52gt.fsf@Libertus>

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



      reply	other threads:[~2020-05-26 22:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-25 17:49 Thomas Schaper
2020-05-26 22:00 ` Matthew Lundin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v9ki8igq.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=thomas+org-mode@libremail.nl \
    --subject='Re: org-archive-all-matches doesn'\''t use org-archive-default-command' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this 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).