emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* archiving in the same file always creates top-level headings
@ 2018-06-18  9:07 Hendrik Tews
  2018-06-19  6:43 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Hendrik Tews @ 2018-06-18  9:07 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

when I have this file

=================== cut =======================
* A
** B
** C
=================== cut =======================

and set org-archive-location to "::* Archived Tasks", as
recommended in the documentation of this variable. Then, after
doing C-c C-x C-a (org-archive-subtree-default) both on B and on
C, I get

=================== cut =======================
* A
* Archived Tasks

** B...

* Archived Tasks

** C...
=================== cut =======================

while I would have expected

=================== cut =======================
* A
* Archived Tasks
** B...
** C...
=================== cut =======================

(only one Archived Tasks heading).

Is it really intended that org-archive-subtree-default inserts
the heading, even if it does already exist?

Thanks,

Hendrik

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

* Re: archiving in the same file always creates top-level headings
  2018-06-18  9:07 archiving in the same file always creates top-level headings Hendrik Tews
@ 2018-06-19  6:43 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2018-06-19  6:43 UTC (permalink / raw)
  To: Hendrik Tews; +Cc: emacs-orgmode

Hello,

Hendrik Tews <hendrik@askra.de> writes:

> when I have this file
>
> =================== cut =======================
> * A
> ** B
> ** C
> =================== cut =======================
>
> and set org-archive-location to "::* Archived Tasks", as
> recommended in the documentation of this variable. Then, after
> doing C-c C-x C-a (org-archive-subtree-default) both on B and on
> C, I get
>
> =================== cut =======================
> * A
> * Archived Tasks
>
> ** B...
>
> * Archived Tasks
>
> ** C...
> =================== cut =======================
>
> while I would have expected
>
> =================== cut =======================
> * A
> * Archived Tasks
> ** B...
> ** C...
> =================== cut =======================
>
> (only one Archived Tasks heading).
>
> Is it really intended that org-archive-subtree-default inserts
> the heading, even if it does already exist?

No, it is a bug, already reported here:
<http://lists.gnu.org/r/emacs-orgmode/2018-06/msg00056.html>

Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2018-06-19  6:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-18  9:07 archiving in the same file always creates top-level headings Hendrik Tews
2018-06-19  6:43 ` 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).