emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Bug in `org-get-outline-path'


From: Ulf Stegemann
Subject: [Orgmode] Bug in `org-get-outline-path'
Date: Wed, 17 Dec 2008 10:33:05 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Hi,

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.

--- 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
       (progn
        (loop for i from level upto 19 do
Ulf

reply via email to

[Prev in Thread] Current Thread [Next in Thread]