From: Charles Tam <me@charlest.net>
To: Bastien <bzg@gnu.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: Off-by-one when archiving to top level date [9.3.6 (9.3.6-17-g389288-elpa @ /home/charlestam/.emacs.d/elpa/org-20200224/)]
Date: Tue, 10 Nov 2020 03:20:44 -0500 [thread overview]
Message-ID: <CAKu+9YVus=wPKGMY_vWp_7ND+oK7ZrRhN=1TXa2Cok3=8se1gg@mail.gmail.com> (raw)
In-Reply-To: <877dt3z3mp.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1410 bytes --]
Wow it's been a while. Sorry I dropped this!
To reproduce the bug, open the following content in `emacs -q` and run
org-archive-subtree on the TEST ITEM:
#+COMMENT: Local Variables:
#+COMMENT: mode: org
#+COMMENT: org-archive-location: "::datetree/"
#+COMMENT: org-odd-levels-only: t
#+COMMENT: End:
* TEST ITEM
You can check that the indentation of the TEST ITEM is more correct if you
set org-odd-levels-only to nil. More weirdness also happens if you set
org-archive-location to "::datetree/* Archive Header" (while
org-odd-levels-only is t).
Charles
On Wed, Sep 9, 2020 at 5:44 AM Bastien <bzg@gnu.org> wrote:
> Hi Charles,
>
> sorry for the late feedback.
>
> Charles Tam <me@charlest.net> writes:
>
> > I am archiving subtrees of my main Orgmode document to a top-level
> > datetree in a secondary file. When I do so, I expect something like
> > the following:
> >
> > * 2020
> > *** 2020-02 February (org-odd-levels-only t)
> > ***** 2020-02-27 Thursday
> > ******* Archived Item
> >
> > But instead I get
> >
> > * 2020
> > *** 2020-02 February
> > ***** 2020-02-27 Thursday
> > ***** Archived Item
> >
> > The archived item ends up as a sibling of the targeted date, instead
> > of a child. This seems incorrect.
>
> What command or keybinding do you use when archiving?
>
> Can you provide a minimal step-by-step recipe to reproduce this bug
> with emacs -q ?
>
> Thanks,
>
> --
> Bastien
>
[-- Attachment #2: Type: text/html, Size: 2668 bytes --]
next prev parent reply other threads:[~2020-11-10 8:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-27 23:31 Bug: Off-by-one when archiving to top level date [9.3.6 (9.3.6-17-g389288-elpa @ /home/charlestam/.emacs.d/elpa/org-20200224/)] Charles Tam
2020-09-09 9:43 ` Bastien
2020-11-10 8:20 ` Charles Tam [this message]
2020-11-12 6:07 ` Kyle Meyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKu+9YVus=wPKGMY_vWp_7ND+oK7ZrRhN=1TXa2Cok3=8se1gg@mail.gmail.com' \
--to=me@charlest.net \
--cc=bzg@gnu.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).