Browse Source

os: os-headline-to-buglist calls os-headline-to-bug on its descendants

os-headline-to-buglist's paremeter is the headline element which
contains all bugs directly as its child headlines. the first element
of its contents is the section part with property drawer and text, all
other children are the headlines corresponding to bugs.

i don't understand why it could have worked the way it was.
Jonas Hoersch 8 years ago
parent
commit
4c6395ce04
1 changed files with 1 additions and 2 deletions
  1. 1 2
      os.el

+ 1 - 2
os.el

@@ -464,8 +464,7 @@ Return ELEM if it was added, nil otherwise."
          (url (cdr (assoc "url" alist)))
          (bugs (mapcar
                 'os-headline-to-bug
-                (nthcdr 1 (org-element-contents
-                           (car (org-element-contents h))))))
+                (nthcdr 1 (org-element-contents h))))
          (bl `(:title ,title
                       :url ,url
                       :bugs ,bugs)))