New `org-bibtex-headline-format-function'
commit9e80c64d79bb06f7f65167bbe19cf79682cc1bc4
authorEric Danan <eric.danan@u-cergy.fr>
Fri, 9 Dec 2016 20:44:06 +0000 (9 21:44 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Fri, 9 Dec 2016 20:44:06 +0000 (9 21:44 +0100)
treebdcb2e427568911b290cbe999c3b3b21d0ca9099
parentf184ee9d2d3ea5b409679d1b96ba281987e88096
New `org-bibtex-headline-format-function'

* lisp/org-bibtex.el (org-bibtex-write): Make this function read the
headline format from the newly created variable
`org-bibtex-headline-format-function' instead of systematically using
the entry title.
(org-bibtex-headline-format-function): Create this variable to hold
a function of one argument, the entry alist, and return the string to
be inserted as headline.  The default value replicates the current
behavior of returning the entry title.

TINYCHANGE
etc/ORG-NEWS
lisp/org-bibtex.el