emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ulf Stegemann <ulf-news@zeitform.de>
To: emacs-orgmode@gnu.org
Subject: Bug in `org-get-outline-path'
Date: Wed, 17 Dec 2008 10:33:05 +0100	[thread overview]
Message-ID: <zf.upnzlivcfji.fsf@zeitform.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 215 bytes --]


I've encountered a problem with `org-get-outline-path' (as of today)
which fails if the (optional) argument `level' is nil. The error occured
when calling `org-archive-subtree'. The following fixes it for me.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: org-get-outline-path-fix.patch --]
[-- Type: text/x-patch, Size: 469 bytes --]

--- org.el.orig	2008-12-17 09:55:44.000000000 +0100
+++ org.el	2008-12-17 10:23:38.000000000 +0100
@@ -7542,7 +7542,7 @@
 (defun org-get-outline-path (&optional fastp level heading)
   "Return the outline path to the current entry, as a list."
-  (if (> level 19) (error "Outline path failure, more than 19 levels."))
+  (if (and level (> level 19)) (error "Outline path failure, more than 19 levels."))
   (if fastp
 	(loop for i from level upto 19 do

[-- Attachment #3: Type: text/plain, Size: 5 bytes --]


[-- Attachment #4: Type: text/plain, Size: 204 bytes --]

Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.

             reply	other threads:[~2008-12-17  9:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-17  9:33 Ulf Stegemann [this message]
2008-12-17 10:54 ` Bug in `org-get-outline-path' Carsten Dominik

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:

  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=zf.upnzlivcfji.fsf@zeitform.de \
    --to=ulf-news@zeitform.de \
    --cc=emacs-orgmode@gnu.org \


* 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


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