From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulf Stegemann Subject: Bug in `org-get-outline-path' Date: Wed, 17 Dec 2008 10:33:05 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LCsmK-0002VA-VX for emacs-orgmode@gnu.org; Wed, 17 Dec 2008 04:33:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LCsmJ-0002UE-OP for emacs-orgmode@gnu.org; Wed, 17 Dec 2008 04:33:16 -0500 Received: from [199.232.76.173] (port=47119 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCsmJ-0002U0-HO for emacs-orgmode@gnu.org; Wed, 17 Dec 2008 04:33:15 -0500 Received: from main.gmane.org ([80.91.229.2]:43834 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LCsmJ-0004eN-78 for emacs-orgmode@gnu.org; Wed, 17 Dec 2008 04:33:15 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LCsmF-0002j0-UN for emacs-orgmode@gnu.org; Wed, 17 Dec 2008 09:33:12 +0000 Received: from london.zeitform.net ([146.140.213.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Dec 2008 09:33:11 +0000 Received: from ulf-news by london.zeitform.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Dec 2008 09:33:11 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain 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. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=org-get-outline-path-fix.patch --- 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 --=-=-= Content-Type: text/plain Ulf --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --=-=-=--