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

2008-12-17 Thread Ulf Stegemann
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.0 +0100
+++ org.el	2008-12-17 10:23:38.0 +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
___
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


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

2008-12-17 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Dec 17, 2008, at 10:33 AM, Ulf Stegemann wrote:


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.0 +0100
+++ org.el  2008-12-17 10:23:38.0 +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
___
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




___
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