From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-refile and Archive headings Date: Tue, 17 Oct 2017 09:51:42 +0200 Message-ID: <877evuyzxt.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52355) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4MfD-0006v8-DI for emacs-orgmode@gnu.org; Tue, 17 Oct 2017 03:51:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4MfC-0001dK-Js for emacs-orgmode@gnu.org; Tue, 17 Oct 2017 03:51:47 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:47906) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e4MfC-0001cr-DD for emacs-orgmode@gnu.org; Tue, 17 Oct 2017 03:51:46 -0400 In-Reply-To: (Allen Li's message of "Mon, 16 Oct 2017 11:43:51 -0700") 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: Allen Li Cc: emacs-orgmode@gnu.org Hello, Allen Li writes: > The current default behavior for org-refile and org-reverse-note-order > does not treat Archive headings specially. Consider a .org file: > > * Some projects > ** Some item... > ** Archive :ARCHIVE:... > > Refiling an entry to "Some projects" results in: > > * Some projects > ** Some item... > ** Archive :ARCHIVE:... > ** New entry... > > Would it be desirable to instead append before the Archive heading? > > * Some projects > ** Some item... > ** New entry... > ** Archive :ARCHIVE:... > > This could be configurable using a magic value for > org-reverse-note-order. AFAIK, there is no special location in the file for archived subtrees, i.e., there is nothing wrong with * Some projects ** Some item... ** Archive :ARCHIVE:... ** New entry... I guess you could use `org-after-refile-insert-hook' for that special need. Regards, -- Nicolas Goaziou