From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: archiving in the same file always creates top-level headings Date: Tue, 19 Jun 2018 08:43:34 +0200 Message-ID: <87bmc7i8dl.fsf@nicolasgoaziou.fr> References: <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]:39073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVAMi-0008Qv-4H for emacs-orgmode@gnu.org; Tue, 19 Jun 2018 02:43:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVAMd-0007Px-KI for emacs-orgmode@gnu.org; Tue, 19 Jun 2018 02:43:42 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:53121) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fVAMd-0007P1-E4 for emacs-orgmode@gnu.org; Tue, 19 Jun 2018 02:43:39 -0400 In-Reply-To: <87efh4wjht.fsf@cert.kernkonzept.com> (Hendrik Tews's message of "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: Hendrik Tews Cc: emacs-orgmode@gnu.org Hello, Hendrik Tews 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: Regards, -- Nicolas Goaziou