emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [PATCH 1/2] Ignore TODO keyword when taking title from headline


From: Matt Lundin
Subject: [O] [PATCH 1/2] Ignore TODO keyword when taking title from headline
Date: Fri, 29 Apr 2011 20:54:00 -0400

* 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

[Prev in Thread] Current Thread [Next in Thread]