From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Stefan-W. Hahn" Subject: [PATCH 4/5] org-bibtex.el: Change property names in `org-bibtex-store-link' API. Date: Sun, 23 Mar 2014 11:16:10 +0100 Message-ID: <1395569771-32421-5-git-send-email-stefan.hahn@s-hahn.de> References: <20140221161702.GS7560@pille.home> <1395569771-32421-1-git-send-email-stefan.hahn@s-hahn.de> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRfSO-0008Q4-1s for emacs-orgmode@gnu.org; Sun, 23 Mar 2014 06:16:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WRfSH-0008SC-S1 for emacs-orgmode@gnu.org; Sun, 23 Mar 2014 06:16:43 -0400 In-Reply-To: <1395569771-32421-1-git-send-email-stefan.hahn@s-hahn.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode@gnu.org, "Stefan-W. Hahn" * 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 --- 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