emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Archiving to a subtree
@ 2019-03-17 16:23 Ken Mankoff
  2019-03-18 21:39 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Ken Mankoff @ 2019-03-17 16:23 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

Hello list,

I used to archive items to a subtree (in an archive file) using some functions provided on this list back in 2014 [1]. I recently updated Org and this code stopped working because the 'org-extract-archive-file' function has been removed. This was commit 9d603b1854f658202024807c17ffc1fd47a3cd74

Does anyone have a replacement function that archives sub-items to sub-trees? I'm looking for behavior that will take **bar:

file.org:
* Foo
** Bar

And archive it to **bar under *foo like this:

archive/file.org_archive
* Foo
** Bar

I don't see any mention of this in the NEWS.org.

Thanks,

  -k.


[1] https://lists.gnu.org/archive/html/emacs-orgmode/2014-08/msg00109.html

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

* Re: Archiving to a subtree
  2019-03-17 16:23 Archiving to a subtree Ken Mankoff
@ 2019-03-18 21:39 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2019-03-18 21:39 UTC (permalink / raw)
  To: Ken Mankoff; +Cc: emacs-orgmode@gnu.org

Hello,

Ken Mankoff <mankoff@gmail.com> writes:

> I used to archive items to a subtree (in an archive file) using some
> functions provided on this list back in 2014 [1]. I recently updated
> Org and this code stopped working because the
> 'org-extract-archive-file' function has been removed. This was commit
> 9d603b1854f658202024807c17ffc1fd47a3cd74
>
> Does anyone have a replacement function that archives sub-items to
> sub-trees? I'm looking for behavior that will take **bar:

If I read the patch correctly, (car (org-archive--compute-location ...))
should replace it.

> I don't see any mention of this in the NEWS.org.

I don't mention removal of internal functions in that file.

Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2019-03-18 21:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-17 16:23 Archiving to a subtree Ken Mankoff
2019-03-18 21:39 ` Nicolas Goaziou

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).