From mboxrd@z Thu Jan 1 00:00:00 1970 From: Allen Li 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: Thu, 7 Dec 2017 12:52:05 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eN39L-0003Ok-Th for emacs-orgmode@gnu.org; Thu, 07 Dec 2017 15:52:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eN39L-0005KC-2M for emacs-orgmode@gnu.org; Thu, 07 Dec 2017 15:52:07 -0500 Received: from mail-qt0-x242.google.com ([2607:f8b0:400d:c0d::242]:46225) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eN39K-0005Jt-Sr for emacs-orgmode@gnu.org; Thu, 07 Dec 2017 15:52:06 -0500 Received: by mail-qt0-x242.google.com with SMTP id r39so21020166qtr.13 for ; Thu, 07 Dec 2017 12:52:06 -0800 (PST) In-Reply-To: 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 On Wed, Dec 6, 2017 at 12:19 PM, Allen Li wrote: > (Can reproduce with Org 9.1.3, submitting with emacs -Q) > > Using a file tmp.org: > > * Foo > ** Archive :ARCHIVE: > *** Test > :PROPERTIES: > :ARCHIVE_TIME: 2017-12-06 Wed 12:13 > :END: > ** Bar > > This appears like so with default visibility: > > * Foo > ** Archive :ARCHIVE:... > ** Bar > > Archiving Bar with C-c C-x A yields: > > * Foo > ** Archive :ARCHIVE:... > *** Bar... > > Expected visibility: > > * Foo > ** Archive :ARCHIVE:... Actually, this issue is a bit more severe. point does not get left on the next headline, which breaks my workflow of recording a macro for C-c C-x A and tapping F4 many times. According to http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00286.html > 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... This bug means that the Archive headline's position is significant.