org-bibtex: fixed most of the compiler warnings
[org-mode/org-jambu.git] / lisp / org-bibtex.el
blobf4614fb2fa4c01e64b1fc4c49f4380eae3a386df
1 ;;; org-bibtex.el --- Org links to BibTeX entries
2 ;;
3 ;; Copyright (C) 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
4 ;;
5 ;; Author: Bastien Guerry <bzg at altern dot org>
6 ;; Carsten Dominik <carsten dot dominik at gmail dot com>
7 ;; Eric Schulte <schulte dot eric at gmail dot com>
8 ;; Keywords: org, wp, remember
9 ;; Version: 7.5
11 ;; This file is part of GNU Emacs.
13 ;; GNU Emacs is free software: you can redistribute it and/or modify
14 ;; it under the terms of the GNU General Public License as published by
15 ;; the Free Software Foundation, either version 3 of the License, or
16 ;; (at your option) any later version.
18 ;; GNU Emacs is distributed in the hope that it will be useful,
19 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
20 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ;; GNU General Public License for more details.
23 ;; You should have received a copy of the GNU General Public License
24 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26 ;;; Commentary:
28 ;; This file implements links to database entries in BibTeX files.
29 ;; Instead of defining a special link prefix, it uses the normal file
30 ;; links combined with a custom search mechanism to find entries
31 ;; by reference key. And it constructs a nice description tag for
32 ;; the link that contains the author name, the year and a short title.
34 ;; It also stores detailed information about the entry so that
35 ;; remember templates can access and enter this information easily.
37 ;; The available properties for each entry are listed here:
39 ;; :author :publisher :volume :pages
40 ;; :editor :url :number :journal
41 ;; :title :year :series :address
42 ;; :booktitle :month :annote :abstract
43 ;; :key :btype
45 ;; Here is an example of a remember template that use some of this
46 ;; information (:author :year :title :journal :pages):
48 ;; (setq org-remember-templates
49 ;; '((?b "* READ %?\n\n%a\n\n%:author (%:year): %:title\n \
50 ;; In %:journal, %:pages.")))
52 ;; Let's say you want to remember this BibTeX entry:
54 ;; @Article{dolev83,
55 ;; author = {Danny Dolev and Andrew C. Yao},
56 ;; title = {On the security of public-key protocols},
57 ;; journal = {IEEE Transaction on Information Theory},
58 ;; year = 1983,
59 ;; volume = 2,
60 ;; number = 29,
61 ;; pages = {198--208},
62 ;; month = {Mars}
63 ;; }
65 ;; M-x `org-remember' on this entry will produce this buffer:
67 ;; =====================================================================
68 ;; * READ <== [point here]
70 ;; [[file:file.bib::dolev83][Dolev & Yao 1983: security of public key protocols]]
72 ;; Danny Dolev and Andrew C. Yao (1983): On the security of public-key protocols
73 ;; In IEEE Transaction on Information Theory, 198--208.
74 ;; =====================================================================
76 ;; Additionally, the following functions are now available for storing
77 ;; bibtex entries within Org-mode documents.
79 ;; - Run `org-bibtex' to export the current file to a .bib.
81 ;; - Run `org-bibtex-check' or `org-bibtex-check-all' to check and
82 ;; fill in missing field of either the current, or all headlines
84 ;; - Run `org-bibtex-create' to add a bibtex entry
86 ;; - Use `org-bibtex-read' to read a bibtex entry after `point' or in
87 ;; the active region, then call `org-bibtex-write' in a .org file to
88 ;; insert a heading for the read bibtex entry
90 ;; - All Bibtex information is taken from the document compiled by
91 ;; Andrew Roberts from the Bibtex manual, available at
92 ;; http://www.andy-roberts.net/misc/latex/sessions/bibtex/bibentries.pdf
94 ;;; History:
96 ;; The link creation part has been part of Org-mode for a long time.
98 ;; Creating better remember template information was inspired by a request
99 ;; of Austin Frank: http://article.gmane.org/gmane.emacs.orgmode/4112
100 ;; and then implemented by Bastien Guerry.
102 ;; Eric Schulte eventually added the functions for translating between
103 ;; Org-mode headlines and Bibtex entries, and for fleshing out the Bibtex
104 ;; fields of existing Org-mode headlines.
106 ;; Org-mode loads this module by default - if this is not what you want,
107 ;; configure the variable `org-modules'.
109 ;;; Code:
111 (require 'org)
112 (require 'bibtex)
113 (eval-when-compile
114 (require 'cl))
116 (defvar description nil) ; dynamically scoped from org.el
118 (declare-function bibtex-beginning-of-entry "bibtex" ())
119 (declare-function bibtex-generate-autokey "bibtex" ())
120 (declare-function bibtex-parse-entry "bibtex" (&optional content))
121 (declare-function bibtex-url "bibtex" (&optional pos no-browse))
122 (declare-function longlines-mode "longlines" (&optional arg))
125 ;;; Bibtex data
126 (defvar org-bibtex-types
127 '((:article
128 (:description . "An article from a journal or magazine")
129 (:required :author :title :journal :year)
130 (:optional :volume :number :pages :month :note))
131 (:book
132 (:description . "A book with an explicit publisher")
133 (:required (:editor :author) :title :publisher :year)
134 (:optional (:volume :number) :series :address :edition :month :note))
135 (:booklet
136 (:description . "A work that is printed and bound, but without a named publisher or sponsoring institution.")
137 (:required :title)
138 (:optional :author :howpublished :address :month :year :note))
139 (:conference
140 (:description . "")
141 (:required :author :title :booktitle :year)
142 (:optional :editor :pages :organization :publisher :address :month :note))
143 (:inbook
144 (:description . "A part of a book, which may be a chapter (or section or whatever) and/or a range of pages.")
145 (:required (:author :editor) :title (:chapter :pages) :publisher :year)
146 (:optional (:volume :number) :series :type :address :edition :month :note))
147 (:incollection
148 (:description . "A part of a book having its own title.")
149 (:required :author :title :booktitle :publisher :year)
150 (:optional :editor (:volume :number) :series :type :chapter :pages :address :edition :month :note))
151 (:inproceedings
152 (:description . "An article in a conference proceedings")
153 (:required :author :title :booktitle :year)
154 (:optional :editor (:volume :number) :series :pages :address :month :organization :publisher :note))
155 (:manual
156 (:description . "Technical documentation.")
157 (:required :title)
158 (:optional :author :organization :address :edition :month :year :note))
159 (:mastersthesis
160 (:description . "A Master’s thesis.")
161 (:required :author :title :school :year)
162 (:optional :type :address :month :note))
163 (:misc
164 (:description . "Use this type when nothing else fits.")
165 (:required)
166 (:optional :author :title :howpublished :month :year :note))
167 (:phdthesis
168 (:description . "A PhD thesis.")
169 (:required :author :title :school :year)
170 (:optional :type :address :month :note))
171 (:proceedings
172 (:description . "The proceedings of a conference.")
173 (:required :title :year)
174 (:optional :editor (:volume :number) :series :address :month :organization :publisher :note))
175 (:techreport
176 (:description . "A report published by a school or other institution.")
177 (:required :author :title :institution :year)
178 (:optional :type :address :month :note))
179 (:unpublished
180 (:description . "A document having an author and title, but not formally published.")
181 (:required :author :title :note)
182 (:optional :month :year)))
183 "Bibtex entry types with required and optional parameters.")
185 (defvar org-bibtex-fields
186 '((:address . "Usually the address of the publisher or other type of institution. For major publishing houses, van Leunen recommends omitting the information entirely. For small publishers, on the other hand, you can help the reader by giving the complete address.")
187 (:annote . "An annotation. It is not used by the standard bibliography styles, but may be used by others that produce an annotated bibliography.")
188 (:author . "The name(s) of the author(s), in the format described in the LaTeX book. Remember, all names are separated with the and keyword, and not commas.")
189 (:booktitle . "Title of a book, part of which is being cited. See the LaTeX book for how to type titles. For book entries, use the title field instead.")
190 (:chapter . "A chapter (or section or whatever) number.")
191 (:crossref . "The database key of the entry being cross referenced.")
192 (:edition . "The edition of a book for example, 'Second'. This should be an ordinal, and should have the first letter capitalized, as shown here; the standard styles convert to lower case when necessary.")
193 (:editor . "Name(s) of editor(s), typed as indicated in the LaTeX book. If there is also an author field, then the editor field gives the editor of the book or collection in which the reference appears.")
194 (:howpublished . "How something strange has been published. The first word should be capitalized.")
195 (:institution . "The sponsoring institution of a technical report.")
196 (:journal . "A journal name.")
197 (:key . "Used for alphabetizing, cross-referencing, and creating a label when the author information is missing. This field should not be confused with the key that appears in the \cite command and at the beginning of the database entry.")
198 (:month . "The month in which the work was published or, for an unpublished work, in which it was written. You should use the standard three-letter abbreviation,")
199 (:note . "Any additional information that can help the reader. The first word should be capitalized.")
200 (:number . "Any additional information that can help the reader. The first word should be capitalized.")
201 (:organization . "The organization that sponsors a conference or that publishes a manual.")
202 (:pages . "One or more page numbers or range of numbers, such as 42-111 or 7,41,73-97 or 43+ (the ‘+’ in this last example indicates pages following that don’t form simple range). BibTEX requires double dashes for page ranges (--).")
203 (:publisher . "The publisher’s name.")
204 (:school . "The name of the school where a thesis was written.")
205 (:series . "The name of a series or set of books. When citing an entire book, the the title field gives its title and an optional series field gives the name of a series or multi-volume set in which the book is published.")
206 (:title . "The work’s title, typed as explained in the LaTeX book.")
207 (:type . "The type of a technical report for example, 'Research Note'.")
208 (:volume . "The volume of a journal or multi-volume book.")
209 (:year . "The year of publication or, for an unpublished work, the year it was written. Generally it should consist of four numerals, such as 1984, although the standard styles can handle any year whose last four nonpunctuation characters are numerals, such as '(about 1984)'"))
210 "Bibtex fields with descriptions.")
212 (defvar *org-bibtex-entries* nil
213 "List to hold parsed bibtex entries.")
215 (defcustom org-bibtex-autogen-keys nil
216 "Set to a truthy value to use `bibtex-generate-autokey' to generate keys."
217 :group 'org-bibtex
218 :type 'boolean)
220 (defcustom org-bibtex-prefix nil
221 "Optional prefix for all bibtex property names.
222 For example setting to 'BIB_' would allow interoperability with fireforg."
223 :group 'org-bibtex
224 :type 'string)
226 (defcustom org-bibtex-export-arbitrary-fields nil
227 "When converting to bibtex allow fields not defined in `org-bibtex-fields'.
228 This only has effect if org-bibtex-prefix is defined, so as to
229 ensure that other org-properties, such as CATEGORY or LOGGING are
230 not placed in the exported bibtex entry."
231 :group 'org-bibtex
232 :type 'boolean)
234 ;; TODO if ID, test to make sure ID is unique
235 (defcustom org-bibtex-key-property "CUSTOM_ID"
236 "Property that holds the bibtex key.
237 By default, this is CUSTOM_ID, which enables easy linking to
238 bibtex headlines from within an org file. This can be set to ID
239 to enable global links, but only with great caution, as global
240 IDs must be unique."
241 :group 'org-bibtex
242 :type 'string)
245 ;;; Utility functions
246 (defun org-bibtex-get (property)
247 (or (org-entry-get (point) (upcase property))
248 (org-entry-get (point) (concat org-bibtex-prefix (upcase property)))))
250 (defun org-bibtex-put (property value)
251 (let ((prop (upcase (if (keywordp property)
252 (substring (symbol-name property) 1)
253 property))))
254 (org-set-property
255 (concat (unless (string= org-bibtex-key-property prop) org-bibtex-prefix)
256 prop)
257 value)))
259 (defun org-bibtex-headline ()
260 "Return a bibtex entry of the given headline as a string."
261 (flet ((val (key lst) (cdr (assoc key lst)))
262 (to (string) (intern (concat ":" string)))
263 (from (key) (substring (symbol-name key) 1))
264 (flatten (&rest lsts)
265 (apply #'append (mapcar
266 (lambda (e)
267 (if (listp e) (apply #'flatten e) (list e)))
268 lsts))))
269 (let ((notes (buffer-string))
270 (id (org-bibtex-get org-bibtex-key-property))
271 (type (org-bibtex-get "type")))
272 (when type
273 (let ((entry (format
274 "@%s{%s,\n%s\n}\n" type id
275 (mapconcat
276 (lambda (pair) (format " %s={%s}" (car pair) (cdr pair)))
277 (remove nil
278 (if (and org-bibtex-export-arbitrary-fields
279 org-bibtex-prefix)
280 (mapcar
281 (lambda (kv)
282 (when (string-match org-bibtex-prefix (car kv))
283 (cons (downcase (replace-regexp-in-string
284 org-bibtex-prefix ""
285 (car kv)))
286 (cdr kv))))
287 (org-entry-properties nil 'standard))
288 (mapcar
289 (lambda (field)
290 (let ((value (or (org-bibtex-get (from field))
291 (and (equal :title field)
292 (org-get-heading)))))
293 (when value (cons (from field) value))))
294 (flatten
295 (val :required (val (to type) org-bibtex-types))
296 (val :optional (val (to type) org-bibtex-types))))))
297 ",\n"))))
298 (with-temp-buffer
299 (insert entry)
300 (bibtex-reformat) (buffer-string)))))))
302 (defun org-bibtex-ask (field)
303 (unless (assoc field org-bibtex-fields)
304 (error "field:%s is not known" field))
305 (save-window-excursion
306 (let* ((name (substring (symbol-name field) 1))
307 (buf-name (format "*Bibtex Help %s*" name)))
308 (with-output-to-temp-buffer buf-name
309 (princ (cdr (assoc field org-bibtex-fields))))
310 (with-current-buffer buf-name (longlines-mode t))
311 (org-fit-window-to-buffer (get-buffer-window buf-name))
312 ((lambda (result) (when (> (length result) 0) result))
313 (read-from-minibuffer (format "%s: " name))))))
315 (defun org-bibtex-autokey ()
316 "Generate an autokey for the current headline"
317 (org-bibtex-put org-bibtex-key-property
318 (if org-bibtex-autogen-keys
319 (let ((entry (org-bibtex-headline)))
320 (with-temp-buffer
321 (insert entry)
322 (bibtex-generate-autokey)))
323 (read-from-minibuffer "id: "))))
325 (defun org-bibtex-fleshout (type &optional optional)
326 "Fleshout the current heading, ensuring that all required fields are present.
327 With optional argument OPTIONAL, also prompt for optional fields."
328 (flet ((val (key lst) (cdr (assoc key lst)))
329 (keyword (name) (intern (concat ":" (downcase name))))
330 (name (keyword) (upcase (substring (symbol-name keyword) 1))))
331 (dolist (field (append
332 (remove :title (val :required (val type org-bibtex-types)))
333 (when optional (val :optional (val type org-bibtex-types)))))
334 (when (consp field) ; or'd pair of fields e.g., (:editor :author)
335 (let ((present (first (remove nil
336 (mapcar
337 (lambda (f) (when (org-bibtex-get (name f)) f))
338 field)))))
339 (setf field (or present (keyword (org-icompleting-read
340 "Field: " (mapcar #'name field)))))))
341 (let ((name (name field)))
342 (unless (org-bibtex-get name)
343 (let ((prop (org-bibtex-ask field)))
344 (when prop (org-bibtex-put name prop)))))))
345 (when (and type (assoc type org-bibtex-types)
346 (not (org-bibtex-get org-bibtex-key-property)))
347 (org-bibtex-autokey)))
350 ;;; Bibtex link functions
351 (org-add-link-type "bibtex" 'org-bibtex-open)
352 (add-hook 'org-store-link-functions 'org-bibtex-store-link)
354 (defun org-bibtex-open (path)
355 "Visit the bibliography entry on PATH."
356 (let* ((search (when (string-match "::\\(.+\\)\\'" path)
357 (match-string 1 path)))
358 (path (substring path 0 (match-beginning 0))))
359 (org-open-file path t nil search)))
361 (defun org-bibtex-store-link ()
362 "Store a link to a BibTeX entry."
363 (when (eq major-mode 'bibtex-mode)
364 (let* ((search (org-create-file-search-in-bibtex))
365 (link (concat "file:" (abbreviate-file-name buffer-file-name)
366 "::" search))
367 (entry (mapcar ; repair strings enclosed in "..." or {...}
368 (lambda(c)
369 (if (string-match
370 "^\\(?:{\\|\"\\)\\(.*\\)\\(?:}\\|\"\\)$" (cdr c))
371 (cons (car c) (match-string 1 (cdr c))) c))
372 (save-excursion
373 (bibtex-beginning-of-entry)
374 (bibtex-parse-entry)))))
375 (org-store-link-props
376 :key (cdr (assoc "=key=" entry))
377 :author (or (cdr (assoc "author" entry)) "[no author]")
378 :editor (or (cdr (assoc "editor" entry)) "[no editor]")
379 :title (or (cdr (assoc "title" entry)) "[no title]")
380 :booktitle (or (cdr (assoc "booktitle" entry)) "[no booktitle]")
381 :journal (or (cdr (assoc "journal" entry)) "[no journal]")
382 :publisher (or (cdr (assoc "publisher" entry)) "[no publisher]")
383 :pages (or (cdr (assoc "pages" entry)) "[no pages]")
384 :url (or (cdr (assoc "url" entry)) "[no url]")
385 :year (or (cdr (assoc "year" entry)) "[no year]")
386 :month (or (cdr (assoc "month" entry)) "[no month]")
387 :address (or (cdr (assoc "address" entry)) "[no address]")
388 :volume (or (cdr (assoc "volume" entry)) "[no volume]")
389 :number (or (cdr (assoc "number" entry)) "[no number]")
390 :annote (or (cdr (assoc "annote" entry)) "[no annotation]")
391 :series (or (cdr (assoc "series" entry)) "[no series]")
392 :abstract (or (cdr (assoc "abstract" entry)) "[no abstract]")
393 :btype (or (cdr (assoc "=type=" entry)) "[no type]")
394 :type "bibtex"
395 :link link
396 :description description))))
398 (defun org-create-file-search-in-bibtex ()
399 "Create the search string and description for a BibTeX database entry."
400 ;; Make a good description for this entry, using names, year and the title
401 ;; Put it into the `description' variable which is dynamically scoped.
402 (let ((bibtex-autokey-names 1)
403 (bibtex-autokey-names-stretch 1)
404 (bibtex-autokey-name-case-convert-function 'identity)
405 (bibtex-autokey-name-separator " & ")
406 (bibtex-autokey-additional-names " et al.")
407 (bibtex-autokey-year-length 4)
408 (bibtex-autokey-name-year-separator " ")
409 (bibtex-autokey-titlewords 3)
410 (bibtex-autokey-titleword-separator " ")
411 (bibtex-autokey-titleword-case-convert-function 'identity)
412 (bibtex-autokey-titleword-length 'infty)
413 (bibtex-autokey-year-title-separator ": "))
414 (setq description (bibtex-generate-autokey)))
415 ;; Now parse the entry, get the key and return it.
416 (save-excursion
417 (bibtex-beginning-of-entry)
418 (cdr (assoc "=key=" (bibtex-parse-entry)))))
420 (defun org-execute-file-search-in-bibtex (s)
421 "Find the link search string S as a key for a database entry."
422 (when (eq major-mode 'bibtex-mode)
423 ;; Yes, we want to do the search in this file.
424 ;; We construct a regexp that searches for "@entrytype{" followed by the key
425 (goto-char (point-min))
426 (and (re-search-forward (concat "@[a-zA-Z]+[ \t\n]*{[ \t\n]*"
427 (regexp-quote s) "[ \t\n]*,") nil t)
428 (goto-char (match-beginning 0)))
429 (if (and (match-beginning 0) (equal current-prefix-arg '(16)))
430 ;; Use double prefix to indicate that any web link should be browsed
431 (let ((b (current-buffer)) (p (point)))
432 ;; Restore the window configuration because we just use the web link
433 (set-window-configuration org-window-config-before-follow-link)
434 (with-current-buffer b
435 (goto-char p)
436 (bibtex-url)))
437 (recenter 0)) ; Move entry start to beginning of window
438 ;; return t to indicate that the search is done.
441 ;; Finally add the link search function to the right hook.
442 (add-hook 'org-execute-file-search-functions 'org-execute-file-search-in-bibtex)
445 ;;; Bibtex <-> Org-mode headline translation functions
446 (defun org-bibtex (&optional filename)
447 "Export each headline in the current file to a bibtex entry.
448 Headlines are exported using `org-bibtex-export-headline'."
449 (interactive
450 (list (read-file-name
451 "Bibtex file: " nil nil nil
452 (file-name-nondirectory
453 (concat (file-name-sans-extension (buffer-file-name)) ".bib")))))
454 (let ((bibtex-entries (remove nil (org-map-entries #'org-bibtex-headline))))
455 (with-temp-file filename
456 (insert (mapconcat #'identity bibtex-entries "\n")))))
458 (defun org-bibtex-check (&optional optional)
459 "Check the current headline for required fields.
460 With prefix argument OPTIONAL also prompt for optional fields."
461 (interactive "P")
462 (save-restriction
463 (org-narrow-to-subtree)
464 (let ((type ((lambda (name) (when name (intern (concat ":" name))))
465 (org-bibtex-get "TYPE"))))
466 (when type (org-bibtex-fleshout type optional)))))
468 (defun org-bibtex-check-all (&optional optional)
469 "Check all headlines in the current file.
470 With prefix argument OPTIONAL also prompt for optional fields."
471 (interactive) (org-map-entries (lambda () (org-bibtex-check optional))))
473 (defun org-bibtex-create (&optional arg)
474 "Create a new entry at the given level."
475 (interactive "P")
476 (let* ((type (org-icompleting-read
477 "Type: " (mapcar (lambda (type) (symbol-name (car type)))
478 org-bibtex-types)))
479 (type (if (keywordp type) type (intern type))))
480 (unless (assoc type org-bibtex-types)
481 (error "type:%s is not known" type))
482 (org-insert-heading)
483 (let ((title (org-bibtex-ask :title)))
484 (insert title) (org-bibtex-put "TITLE" title))
485 (org-bibtex-put "TYPE" (substring (symbol-name type) 1))
486 (org-bibtex-fleshout type arg)))
488 (defun org-bibtex-read ()
489 "Read a bibtex entry and save to `*org-bibtex-entries*'.
490 This uses `bibtex-parse-entry'."
491 (interactive)
492 (flet ((keyword (str) (intern (concat ":" (downcase str))))
493 (clean-space (str) (replace-regexp-in-string
494 "[[:space:]\n\r]+" " " str))
495 (strip-delim (str) ; strip enclosing "..." and {...}
496 (dolist (pair '((34 . 34) (123 . 125) (123 . 125)))
497 (when (and (= (aref str 0) (car pair))
498 (= (aref str (1- (length str))) (cdr pair)))
499 (setf str (substring str 1 (1- (length str)))))) str))
500 (push (mapcar
501 (lambda (pair)
502 (cons (let ((field (keyword (car pair))))
503 (case field
504 (:=type= :type)
505 (:=key= :key)
506 (otherwise field)))
507 (clean-space (strip-delim (cdr pair)))))
508 (save-excursion (bibtex-beginning-of-entry) (bibtex-parse-entry)))
509 *org-bibtex-entries*)))
511 (defun org-bibtex-write ()
512 "Insert a heading built from the first element of `*org-bibtex-entries*'."
513 (interactive)
514 (when (= (length *org-bibtex-entries*) 0)
515 (error "No entries in `*org-bibtex-entries*'."))
516 (let ((entry (pop *org-bibtex-entries*))
517 (org-special-properties nil)) ; avoids errors with `org-entry-put'
518 (flet ((val (field) (cdr (assoc field entry))))
519 (org-insert-heading)
520 (insert (val :title))
521 (org-bibtex-put "TITLE" (val :title))
522 (org-bibtex-put "TYPE" (downcase (val :type)))
523 (dolist (pair entry)
524 (case (car pair)
525 (:title nil)
526 (:type nil)
527 (:key (org-bibtex-put org-bibtex-key-property (cdr pair)))
528 (otherwise (org-bibtex-put (car pair) (cdr pair))))))))
530 (defun org-bibtex-yank ()
531 "If kill ring holds a bibtex entry yank it as an Org-mode headline."
532 (interactive)
533 (let (entry)
534 (with-temp-buffer (yank 1) (setf entry (org-bibtex-read)))
535 (if entry
536 (org-bibtex-write)
537 (error "yanked text does not appear to contain a bibtex entry"))))
539 (provide 'org-bibtex)
541 ;; arch-tag: 83987d5a-01b8-41c7-85bc-77700f1285f5
543 ;;; org-bibtex.el ends here