emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-refile and Archive headings
@ 2017-10-16 18:43 Allen Li
  2017-10-17  7:51 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Allen Li @ 2017-10-16 18:43 UTC (permalink / raw)
  To: emacs-orgmode

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.

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

* Re: org-refile and Archive headings
  2017-10-16 18:43 org-refile and Archive headings Allen Li
@ 2017-10-17  7:51 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2017-10-17  7:51 UTC (permalink / raw)
  To: Allen Li; +Cc: emacs-orgmode

Hello,

Allen Li <vianchielfaura@gmail.com> 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

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

end of thread, other threads:[~2017-10-17  7:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-16 18:43 org-refile and Archive headings Allen Li
2017-10-17  7:51 ` Nicolas Goaziou

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