* lisp/org-bibtex.el (org-bibtex-headline): When taking title from
  headline, grab only the headline text, not metadata.
---
When generating an autokey or exporting to bibtex, the metadata (e.g.,
the TODO keyword) was being included in the title. This patch ensures
that only the headline text is included.

 lisp/org-bibtex.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/org-bibtex.el b/lisp/org-bibtex.el
index f4614fb..fcb25ca 100644
--- a/lisp/org-bibtex.el
+++ b/lisp/org-bibtex.el
@@ -289,7 +289,7 @@ IDs must be unique."
                            (lambda (field)
                              (let ((value (or (org-bibtex-get (from field))
                                               (and (equal :title field)
-                                                   (org-get-heading)))))
+                                                   (nth 4 
(org-heading-components))))))
                                (when value (cons (from field) value))))
                            (flatten
                             (val :required (val (to type) org-bibtex-types))
-- 
1.7.5


Reply via email to