all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH 1/2] Ignore TODO keyword when taking title from headline
@ 2011-04-30  0:54 Matt Lundin
  0 siblings, 0 replies; only message in thread
From: Matt Lundin @ 2011-04-30  0:54 UTC (permalink / raw)
  To: Org Mode


* 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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-04-30  1:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-30  0:54 [PATCH 1/2] Ignore TODO keyword when taking title from headline Matt Lundin

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.