From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Bug in `org-get-outline-path' Date: Wed, 17 Dec 2008 11:54:30 +0100 Message-ID: <2A4BE8D0-6834-433E-B8CC-3566D49CD23C@uva.nl> References: Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LCu34-0002rl-Do for emacs-orgmode@gnu.org; Wed, 17 Dec 2008 05:54:38 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LCu33-0002rZ-NQ for emacs-orgmode@gnu.org; Wed, 17 Dec 2008 05:54:37 -0500 Received: from [199.232.76.173] (port=46855 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCu33-0002rW-Bc for emacs-orgmode@gnu.org; Wed, 17 Dec 2008 05:54:37 -0500 Received: from mail-ew0-f13.google.com ([209.85.219.13]:46658) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LCu32-0004q8-QU for emacs-orgmode@gnu.org; Wed, 17 Dec 2008 05:54:37 -0500 Received: by ewy6 with SMTP id 6so4372284ewy.18 for ; Wed, 17 Dec 2008 02:54:36 -0800 (PST) In-Reply-To: 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: Ulf Stegemann Cc: emacs-orgmode@gnu.org 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.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 > _______________________________________________ > 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