From: Carsten Dominik <dominik@science.uva.nl>
To: igrek <igrekster@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-archive-subtree and heading level
Date: Fri, 27 Feb 2009 16:49:08 +0100 [thread overview]
Message-ID: <E44DBBCC-4825-4537-B08E-879ECDCB213C@uva.nl> (raw)
In-Reply-To: <go8q1i$81v$1@ger.gmane.org>
Yes, this is a bug, thanks for the patch, I have applied it.
- Carsten
On Feb 27, 2009, at 2:32 PM, igrek wrote:
> Hello,
>
> when I archive a subtree as a top-level tree org-archive-subtree
> adds an extra level to the heading. Is that by-design or a bug? For
> the later case I have a patch.
>
>
> diff --git a/lisp/org-archive.el b/lisp/org-archive.el
> index 2609367..c1200dd 100644
> --- a/lisp/org-archive.el
> +++ b/lisp/org-archive.el
> @@ -270,7 +270,7 @@ this heading."
> ;; No specific heading, just go to end of file.
> (goto-char (point-max)) (insert "\n"))
> ;; Paste
> - (org-paste-subtree (org-get-valid-level level 1))
> + (org-paste-subtree (org-get-valid-level level (and heading 1)))
>
> ;; Mark the entry as done
> (when (and org-archive-mark-done
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
prev parent reply other threads:[~2009-02-27 15:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-27 13:32 org-archive-subtree and heading level igrek
2009-02-27 15:49 ` Carsten Dominik [this message]
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=E44DBBCC-4825-4537-B08E-879ECDCB213C@uva.nl \
--to=dominik@science.uva.nl \
--cc=emacs-orgmode@gnu.org \
--cc=igrekster@gmail.com \
/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).