From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hendrik Tews Subject: archiving in the same file always creates top-level headings Date: Mon, 18 Jun 2018 11:07:26 +0200 Message-ID: <87efh4wjht.fsf@cert.kernkonzept.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUq9U-0004KC-32 for emacs-orgmode@gnu.org; Mon, 18 Jun 2018 05:08:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fUq9P-0000zZ-5V for emacs-orgmode@gnu.org; Mon, 18 Jun 2018 05:08:44 -0400 Received: from askra.de ([81.169.225.145]:35860) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fUq9O-0000vx-U7 for emacs-orgmode@gnu.org; Mon, 18 Jun 2018 05:08:39 -0400 Received: from ipb21833f8.dynamic.kabel-deutschland.de ([178.24.51.248] helo=cert) by askra.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fUq8E-0000Sy-TP for emacs-orgmode@gnu.org; Mon, 18 Jun 2018 11:07:26 +0200 Received: from localhost ([::1] helo=cert.kernkonzept.com) by cert with esmtp (Exim 4.91) (envelope-from ) id 1fUq8E-0002dn-HH for emacs-orgmode@gnu.org; Mon, 18 Jun 2018 11:07:26 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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