emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Archiving creates multiple parent tasks in master [9.1.13 (release_9.1.13-787-g13a09b @ c:/D-Drive/bin/org-mode/lisp/)]
@ 2018-06-06 18:08 Bernt Hansen
  2018-06-19 11:47 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Bernt Hansen @ 2018-06-06 18:08 UTC (permalink / raw)
  To: emacs-orgmode


Hi,

Archiving tasks using the master branch with the below configuration
creates duplicate "* Archived Tasks" heading each time you archive in
the test.org_archive file.

The behaviour in the maint branch is correct and files subsequently
archived tasks under the single main heading.

Thanks for org-mode!

Regards,
Bernt

-- test.el -------------------------------------------------------------
(setq org-archive-location "%s_archive::* Archived Tasks")

-- test.org ------------------------------------------------------------
#+FILETAGS: TEST
#+STARTUP: content

*Keys To Reproduce*

1) Move to next heading
   C-c C-n

2) Move to next heading
   C-c C-n

3) Archive heading
   C-c C-x C-a

4) Archive heading
   C-c C-x C-a

Results in test.org_archive:

maint branch produces (correct)
#+BEGIN_EXAMPLE
* Archived Tasks
** TODO do something
** TODO foo                                                             :BAR:
#+END_EXAMPLE

master branch produces (incorrect)
#+BEGIN_EXAMPLE
* Archived Tasks
** TODO do something
* Archived Tasks
** TODO foo                                                             :BAR:
#+END_EXAMPLE

* TODO Test Parent                                          :PRODUCTION:MISC:
  :PROPERTIES:
  :EFFORT:   15:30
  :END:
** TODO do something
   :PROPERTIES:
   :EFFORT:   15
   :END:
   :LOGBOOK:
   CLOCK: [2018-05-12 Sat 00:26]--[2018-05-12 Sat 00:26] =>  0:00
   CLOCK: [2018-05-12 Sat 00:23]--[2018-05-12 Sat 00:23] =>  0:00
   CLOCK: [2018-05-12 Sat 00:22]--[2018-05-12 Sat 00:22] =>  0:00
   CLOCK: [2018-05-12 Sat 00:22]--[2018-05-12 Sat 00:22] =>  0:00
   CLOCK: [2018-05-12 Sat 00:07]--[2018-05-12 Sat 00:08] =>  0:01
   CLOCK: [2018-05-12 Sat 00:00]--[2018-05-12 Sat 00:04] =>  0:04
   :END:
** TODO foo                                                             :BAR:
   :PROPERTIES:
   :EFFORT:   00:30
   :END:


------------------------------------------------------------------------

Emacs  : GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2013-01-08 on murphy, modified by Debian
Package: Org-mode version 8.3.1 (release_8.3.1-54-g102def @ /home/bernt/git/org-mode/lisp/)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-06-19 13:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-06 18:08 Bug: Archiving creates multiple parent tasks in master [9.1.13 (release_9.1.13-787-g13a09b @ c:/D-Drive/bin/org-mode/lisp/)] Bernt Hansen
2018-06-19 11:47 ` Nicolas Goaziou
2018-06-19 13:18   ` Bernt Hansen

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).