emacs-orgmode
[Top][All Lists]
Advanced

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

[O] [PATCH 4/5] org-bibtex.el: Change property names in `org-bibtex-stor


From: Stefan-W. Hahn
Subject: [O] [PATCH 4/5] org-bibtex.el: Change property names in `org-bibtex-store-link' API.
Date: Sun, 23 Mar 2014 11:16:10 +0100

* org-bibtex.el (org-bibtex-store-link): Change property names in API.

Because it is confusing to have a ":key" property in
`org-bibtex-store-link' which is not the ":key" entry of a bibtex entry
but the key of the entry, this should be changed. The new name of the
property is ":bibkey".

To be consistent the property ":btype" is renamed to ":bibtype".

TINY CHANGE

Signed-off-by: Stefan-W. Hahn <address@hidden>
---
 lisp/org-bibtex.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/org-bibtex.el b/lisp/org-bibtex.el
index b4b707a..d8ab649 100644
--- a/lisp/org-bibtex.el
+++ b/lisp/org-bibtex.el
@@ -39,7 +39,7 @@
 ;; :editor        :url            :number      :journal
 ;; :title         :year           :series      :address
 ;; :booktitle     :month          :annote      :abstract
-;; :key           :btype
+;; :bibkey        :bibtype
 ;;
 ;; Here is an example of a capture template that use some of this
 ;; information (:author :year :title :journal :pages):
@@ -456,7 +456,7 @@ (defun org-bibtex-store-link ()
           (entry (org-bibtex-read-internal)))
 
       (org-store-link-props
-       :key (cdr (assoc :bibkey entry))
+       :bibkey (cdr (assoc :bibkey entry))
        :author (or (cdr (assoc :author entry)) "[no author]")
        :editor (or (cdr (assoc :editor entry)) "[no editor]")
        :title (or (cdr (assoc :title entry)) "[no title]")
@@ -473,7 +473,7 @@ (defun org-bibtex-store-link ()
        :annote (or (cdr (assoc :annote entry)) "[no annotation]")
        :series (or (cdr (assoc :series entry)) "[no series]")
        :abstract (or (cdr (assoc :abstract entry)) "[no abstract]")
-       :btype (or (cdr (assoc :bibtype entry)) "[no bibtype]")
+       :bibtype (or (cdr (assoc :bibtype entry)) "[no bibtype]")
        :type "bibtex" ; hides bibtex entry :type
        :link link
        :description org-bibtex-description))))
-- 
1.8.3.2.733.gf8abaeb




reply via email to

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