emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug in `org-get-outline-path'
@ 2008-12-17  9:33 Ulf Stegemann
  2008-12-17 10:54 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Ulf Stegemann @ 2008-12-17  9:33 UTC (permalink / raw)
  To: emacs-orgmode

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

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.


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

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


Ulf

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

_______________________________________________
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-12-17 10:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-17  9:33 Bug in `org-get-outline-path' Ulf Stegemann
2008-12-17 10:54 ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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