From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: subtree archiving when Archive is not final headline yields bad visibility [8.2.10 (release_8.2.10 @ /usr/share/emacs/25.2+gg1+12/lisp/org/)] Date: Mon, 11 Dec 2017 23:32:22 +0100 Message-ID: <87wp1sx5e1.fsf@nicolasgoaziou.fr> References: <87po7lxsms.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOWcg-0002aS-E2 for emacs-orgmode@gnu.org; Mon, 11 Dec 2017 17:32:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOWcc-000256-Gx for emacs-orgmode@gnu.org; Mon, 11 Dec 2017 17:32:30 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:54437) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eOWcc-00024A-BZ for emacs-orgmode@gnu.org; Mon, 11 Dec 2017 17:32:26 -0500 In-Reply-To: (Allen Li's message of "Mon, 11 Dec 2017 11:39:06 -0800") 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 Allen Li writes: > Archiving DOES move point, it's just a question of where it moves > point to. It should not be moving point to the archived heading. > Examples (^ is point): > > * Foo > ** A > ** ^B > ** C > ** Archive :ARCHIVE:... > > Archiving to a separate file yields: > > * Foo > ** A > ^** C > ** Archive :ARCHIVE:... > > Archiving to a subtree yields: > > * Foo > ** A > ^** C > ** Archive :ARCHIVE:... > > BUT if the Archive heading isn=E2=80=99t last: > > * Foo > ** Archive :ARCHIVE:... > ** A > ** ^B > ** C > > Archiving to a separate file yields: > > * Foo > ** Archive :ARCHIVE:... > ** A > ^** C > > Archiving to a subtree yields: > > * Foo > ** Archive :ARCHIVE: > *** B^... > ** A > ** C I see. Fixed. Thank you. Regards,