forked from pzorin/bibretrieve
-
Notifications
You must be signed in to change notification settings - Fork 1
/
bibretrieve-base.el
620 lines (545 loc) · 22.8 KB
/
bibretrieve-base.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
;;; bibretrieve-base.el --- Retrieving BibTeX entries from the web
;; Copyright (C) 2012
;; Author: Antonio Sartori <anto_sart -at- yahoo -dot- it>
;; Version: 0.1
;; Time-stamp: <2012-07-29 13:48:20 pavel>
;; This file is part of BibRetrieve.
;; BibRetrieve is free software: you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
;; published by the Free Software Foundation, either version 3 of the
;; License, or (at your option) any later version.
;; BibRetrieve is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
;; General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with BibRetrieve. If not, see
;; <http://www.gnu.org/licenses/>.
;;; Commentary:
;;
;; This file contains the code that (with the exception of
;; the function bibretrieve) is not directly exposed to the user.
;; This is the appropriate place to define a backend function
;; "bibretrieve-BACKEND-create-url" that takes as input author and title
;; and returns a url that, when retrieved, gives some bibtex entries.
;; Remember to add it to the list "bibretrieve-installed-backends" afterwards.
;; Edit: There are now two ways to define a new backend
;; First possibility, as before, is to define a function
;; "bibretrieve-BACKEND-create-url" that takes as input author and title and
;; returns a url that, when retrieve, gives some bibtex entries.
;; The second possibility is to define a function "bibretrieve-BACKEND-http"
;; which takes as input author and title and returns a buffer
;; with bibtex entries.
;;; Code:
(eval-when-compile (require 'cl))
(require 'reftex)
(require 'reftex-cite)
(require 'reftex-sel)
(require 'mm-url)
(provide 'bibretrieve)
;; Here only to silence the compilator
(defvar bibretrieve-backends)
(defvar bibretrieve-installed-backends)
(defvar bibretrieve-select-map nil
"Keymap used for *RefTeX Select* buffer, when selecting a BibTeX entry.
This keymap can be used to configure the BibTeX selection process which is
started with the command \\[bibretrieve-get].")
;; Prompt and help string for citation selection
(defconst bibretrieve-select-prompt
"Select: [n]ext [p]revious a[g]ain [r]efine [f]ull_entry [q]uit RET [?]Help+more")
;; Adapted from RefTeX
(defconst bibretrieve-select-help
" n / p Go to next/previous entry (Cursor motion works as well).
g / r Start over with new search / Refine with additional regexp.
SPC Show full database entry in other window.
f Toggle follow mode: Other window will follow with full db entry.
. Show current append point.
q Quit.
TAB Enter citation key with completion.
RET Accept current entry (also on mouse-2), and append it to default BibTeX file.
m / u Mark/Unmark the entry.
e / E Append all (marked/unmarked) entries to default BibTeX file.
a / A Put all (marked) entries into current buffer.")
;; Copied from bibsnarf
(defun bibretrieve-msn-create-url (author title)
(let* ((pairs `(("bdlback" . "r=1")
("dr" . "all")
("l" . "20")
("pg3" . "TI")
("s3" . ,title)
("pg4" . "ICN")
("s4" . ,author)
("fn" . "130")
("fmt" . "bibtex")
("bdlall" . "Retrieve+All"))))
(concat "http://www.ams.org/mathscinet/search/publications.html?" (mm-url-encode-www-form-urlencoded pairs))))
;; Modified from bibsnarf, URL valid as of 2012-07-29
;; Function not used anymore
(defun bibretrieve-zbm-create-url-old (author title)
(let* ((pairs `(("ti" . ,title)
("au" . ,author)
("type" . "bibtex")
("format" . "short")
("count" . "20"))))
(concat "http://www.zentralblatt-math.org/zmath/?" (mm-url-encode-www-form-urlencoded pairs))))
(defun bibretrieve-matches-in-buffer (regexp &optional buffer)
"return a list of matches of REGEXP in BUFFER or the current buffer if not given."
(let ((matches))
(save-match-data
(save-excursion
(with-current-buffer (or buffer (current-buffer))
(save-restriction
(widen)
(goto-char 1)
(while (search-forward-regexp regexp nil t 1)
(push (match-string 0) matches)))))
matches)))
(defun bibretrieve-zbm-http (author title)
(let* ((url (concat "https://zbmath.org/?q=au:" author ",ti:" title ))
(buffer (generate-new-buffer (generate-new-buffer-name "bibretrieve-results-"))))
(with-current-buffer buffer
(message "Retrieving %s" url)
(let* ()
(mm-url-insert-file-contents url)
(let* ((list-of-bib-urls (bibretrieve-matches-in-buffer "bibtex/[a-zA-Z0-9]*.bib" buffer)))
(erase-buffer)
(dolist (bib-url list-of-bib-urls)
(setq bib-url (concat "https://zbmath.org/" bib-url))
(mm-url-insert-file-contents bib-url))
buffer )))))
(defun bibretrieve-mrl-create-url (author title)
(let* ((pairs `(("ti" . ,title)
("au" . ,author)
("format" . "bibtex"))))
(concat "http://www.ams.org/mrlookup?" (mm-url-encode-www-form-urlencoded pairs))))
;; Copied from bibsnarf
(defun bibretrieve-arxiv-create-url (author title)
(concat "http://adsabs.harvard.edu/cgi-bin/nph-abs_connect?db_key=PRE&"
"&aut_req=YES&aut_logic=AND&author=" (mm-url-form-encode-xwfu author)
"&ttl_req=YES&ttl_logic=AND&title=" (mm-url-form-encode-xwfu title)
"&data_type=BIBTEX"))
;; Modified from bibsnarf
(defun bibretrieve-citebase-create-url (author title)
(let* ((query (concat author " " title))
(pairs `(("submitted" . "Search")
("query" . ,query)
("format" . "BibTeX")
("maxrows" . "100")
("order" . "DESC")
("rank" . "1000") ; in what order should we list?
)))
(concat "http://www.citebase.org/search?" (mm-url-encode-www-form-urlencoded pairs))))
;; Copied from bibsnarf
;; No more used
(defun bibretrieve-spires-rawcmd (author title)
(cond
((zerop (length author)) (concat "T+" title))
((zerop (length title)) (concat "A+" author))
(t (concat "A+" author "+and+" "T+" title))))
;; Copied from bibsnarf
;; No more used
(defun bibretrieve-spires-create-url (author title)
(let* ((rawcmd (bibretrieve-spires-rawcmd author title))
(pairs `(("rawcmd" . ,rawcmd)
("FORMAT" . "wwwbriefbibtex")
("SEQUENCE" . ""))))
(concat "http://www.slac.stanford.edu/spires/find/hep/www?" (mm-url-encode-www-form-urlencoded pairs))))
(defun bibretrieve-inspire-create-url (author title)
(let* ((pairs `(("ln" . "en")
("as" . "1")
("m1" . "a")
("op1" . "a")
("m2" . "a")
("op2" . "a")
("m3" . "a")
("action_search" . "Search")
("sf" . "year")
("so" . "d")
("sc" . "0")
("p1" . ,author)
("f1" . "author")
("p2" . ,title)
("f2" . "title")
("of" . "hx")
("rg" . "100"))))
(concat "http://inspirehep.net/search?" (mm-url-encode-www-form-urlencoded pairs))))
(defun bibretrieve-http (url)
"Retrieve URL and return the buffer, using mm-url."
(let ((buffer (generate-new-buffer (generate-new-buffer-name "bibretrieve-results-"))))
(with-current-buffer buffer
(message "Retrieving %s" url)
(mm-url-insert-file-contents url))
buffer))
;; (if bibretrieve-executable
;; (let ((buffer (generate-new-buffer (generate-new-buffer-name "bibretrieve-results-"))))
;; (message "Retrieving with %s %s" bibretrieve-executable url)
;; (call-process bibretrieve-executable nil buffer nil url)
;; buffer)
;; (message "Retrieving %s" url)
;; (url-retrieve-synchronously url)))
(defun bibretrieve-retrieve-backend (author title backend timeout)
"Call the backend BACKEND with AUTHOR, TITLE and TIMEOUT. Return buffer with results"
(let* ((function-backend-simple (intern (concat "bibretrieve-" backend "-create-url")))
(function-backend (intern (concat "bibretrieve-" backend "-http"))))
(if (functionp function-backend-simple)
(with-timeout (timeout) (bibretrieve-http (funcall function-backend-simple author title)))
(if (functionp function-backend)
(with-timeout (timeout) (funcall function-backend author title)))
)))
(defun bibretrieve-retrieve (author title backends &optional newtimeout)
"Search AUTHOR and TITLE on BACKENDS.
If NEWTIMEOUT is given, this replaces the timeout for all backends.
Returns list of buffers with results."
(let (failed not-found var buffers)
(dolist (backend backends)
(let* ((timeout (or (or newtimeout (cdr (assoc backend bibretrieve-backends))) "0"))
;; (function-backend (intern (concat "bibretrieve-" backend "-create-url")))
;; buffer)
;; (if (functionp function-backend)
;; (progn (setq buffer (with-timeout (timeout) (bibretrieve-http (funcall function-backend author title))))
;; (if (bufferp buffer)
;; (add-to-list 'buffers buffer)
;; (add-to-list 'failed backend)))
;; (add-to-list 'not-found backend))))
(buffer (bibretrieve-retrieve-backend author title backend timeout)))
(if (bufferp buffer)
(add-to-list 'buffers buffer)
(add-to-list 'failed backend))))
(when failed
(message (concat "Following backends failed: " (mapconcat 'identity failed " "))))
;; (when not-found
;; (message (concat "Following backends don't exist: " (mapconcat 'identity not-found " "))))
buffers))
(defun bibretrieve-prompt-and-retrieve (&optional arg)
"Prompts for author and title and retrieves.
ARG is the optional arg."
(let* ((author (read-string "Author: "))
(title (read-string "Title: "))
backend backends timeout)
(when arg
(if (integerp arg)
(setq timeout arg)
(progn (setq backend (completing-read "Backend to use: [defaults] " (append bibretrieve-installed-backends '("DEFAULTS" "ALL")) nil t nil nil "DEFAULTS"))
(setq timeout (read-string "Timeout (seconds): [5] " nil nil "5")))))
(setq backends
(cond ((or (not backend) (equal backend "DEFAULTS"))
(mapcar 'car bibretrieve-backends))
((equal backend "ALL")
'bibretrieve-installed-backends)
(t
`(,backend))))
(bibretrieve-retrieve author title backends timeout))
)
(defun bibretrieve-find-bibliography-file ()
"Try to find a bibliography file using RefTeX."
;; Returns a string with text properties (as expected by read-file-name)
;; or empty string if no file can be found
(let ((bibretrieve-bibfile-list nil))
(condition-case nil
(setq bibretrieve-bibfile-list (reftex-get-bibfile-list))
(error (ignore-errors
(setq bibretrieve-bibfile-list (reftex-default-bibliography))))
)
(if bibretrieve-bibfile-list
(car bibretrieve-bibfile-list) "")
)
)
(defun bibretrieve-find-default-bibliography-file ()
"Find a default bibliography file to write entries in.
Try with a \bibliography in the current buffer
or if the current buffer is a bib buffer,
else return nil."
(or (bibretrieve-find-bibliography-file)
(if buffer-file-name
(and (string-match ".*\\.bib$" buffer-file-name)
(buffer-file-name)))))
;; Copied from RefTeX
;; Limit FOUND-LIST with more regular expressions
;; Returns a string with all matching bibliography items
(defun bibretrieve-extract-bib-items (all &optional marked complement)
(setq all (delq nil
(mapcar
(lambda (x)
(if marked
(if (or (and (assoc x marked) (not complement))
(and (not (assoc x marked)) complement))
(cdr (assoc "&entry" x))
nil)
(cdr (assoc "&entry" x))))
all)))
(mapconcat 'identity all "\n\n")
)
(defun bibretrieve-write-bib-items-bibliography (all bibfile marked complement)
"Append item to file.
From ALL, append to a promped file (BIBFILE is the default one) MARKED entries (or unmarked, if COMPLEMENT is t)."
(let ((file (read-file-name (if bibfile (concat "Bibfile: [" bibfile "] ") "Bibfile: ") default-directory bibfile)))
(if (find-file-other-window file)
(save-excursion
(goto-char (point-max))
(insert "\n")
(insert (bibretrieve-extract-bib-items all marked complement))
(insert "\n")
(save-buffer)
file
)
(error "Invalid file"))))
;; Callback function to be called from the bibliography selection, in
;; order to display context.
(defun bibretrieve-selection-callback (data ignore no-revisit)
(let ((win (selected-window))
; (key (reftex-get-bib-field "&key" data))
; bibfile-list item bibtype)
(origin (buffer-name)))
(pop-to-buffer "*BibRetrieve Record*")
(setq buffer-read-only nil)
(erase-buffer)
(bibtex-mode)
(goto-char (point-min))
(insert (reftex-get-bib-field "&entry" data))
;; (shrink-window-if-larger-than-buffer) ; FIXME: this needs to be recalibrated for each record
(goto-char (point-min))
(setq buffer-read-only t)
(pop-to-buffer origin)
)
)
;; Modified version of reftex-extract-bib-entries
;; It does not ask for a REGEXP, but it selects all
(defun bibretrieve-extract-bib-entries (buffers)
"Extract bib entries which match regexps from BUFFERS.
BUFFERS is a list of buffers or file names.
Return list with entries.\""
(let* ( (buffer-list (if (listp buffers) buffers (list buffers)))
found-list entry buffer1 buffer alist
key-point start-point end-point default)
(save-excursion
(save-window-excursion
;; Walk through all bibtex files
(while buffer-list
(setq buffer (car buffer-list)
buffer-list (cdr buffer-list))
(if (and (bufferp buffer)
(buffer-live-p buffer))
(setq buffer1 buffer)
(setq buffer1 (reftex-get-file-buffer-force
buffer (not reftex-keep-temporary-buffers))))
(if (not buffer1)
(message "No such BibTeX file %s (ignored)" buffer)
(message "Scanning bibliography database %s" buffer1)
(unless (verify-visited-file-modtime buffer1)
(when (y-or-n-p
(format "File %s changed on disk. Reread from disk? "
(file-name-nondirectory
(buffer-file-name buffer1))))
(with-current-buffer buffer1 (revert-buffer t t)))))
(set-buffer buffer1)
(reftex-with-special-syntax-for-bib
(save-excursion
(goto-char (point-min))
(while (re-search-forward "=" nil t)
(catch 'search-again
(setq key-point (point))
(unless (re-search-backward "\\(\\`\\|[\n\r]\\)[ \t]*\
@\\(\\(?:\\w\\|\\s_\\)+\\)[ \t\n\r]*[{(]" nil t)
(throw 'search-again nil))
(setq start-point (point))
(goto-char (match-end 0))
(condition-case nil
(up-list 1)
(error (goto-char key-point)
(throw 'search-again nil)))
(setq end-point (point))
;; Ignore @string, @comment and @c entries or things
;; outside entries
(when (or (string= (downcase (match-string 2)) "string")
(string= (downcase (match-string 2)) "comment")
(string= (downcase (match-string 2)) "c")
(< (point) key-point)) ; this means match not in {}
(goto-char key-point)
(throw 'search-again nil))
;; Well, we have got a match
;;(setq entry (concat
;; (buffer-substring start-point (point)) "\n"))
(setq entry (buffer-substring start-point (point)))
(setq alist (reftex-parse-bibtex-entry
nil start-point end-point))
(push (cons "&entry" entry) alist)
;; check for crossref entries
(if (assoc "crossref" alist)
(setq alist
(append
alist (reftex-get-crossref-alist alist))))
;; format the entry
(push (cons "&formatted" (reftex-format-bib-entry alist))
alist)
;; make key the first element
(push (reftex-get-bib-field "&key" alist) alist)
;; add it to the list
(push alist found-list)))))
(reftex-kill-temporary-buffers))))
(setq found-list (nreverse found-list))
;; Sorting
(cond
((eq 'author reftex-sort-bibtex-matches)
(sort found-list 'reftex-bib-sort-author))
((eq 'year reftex-sort-bibtex-matches)
(sort found-list 'reftex-bib-sort-year))
((eq 'reverse-year reftex-sort-bibtex-matches)
(sort found-list 'reftex-bib-sort-year-reverse))
(t found-list))))
;; Modified version of reftex-offer-bib-menu
(defun bibretrieve-offer-bib-menu (&optional arg)
"Offer bib menu and return list of selected items.
ARG is the optional argument."
(let ((bibfile (bibretrieve-find-default-bibliography-file))
found-list rtn key data selected-entries)
(while
(not
(catch 'done
;; Retrieve and scan entries
(let ((buffers (bibretrieve-prompt-and-retrieve arg)) buffer-list buffer)
(setq found-list (bibretrieve-extract-bib-entries buffers))
(setq buffer-list (if (listp buffers) buffers (list buffers)))
(while buffer-list
(setq buffer (car buffer-list)
buffer-list (cdr buffer-list))
(kill-buffer buffer)
)
)
(unless found-list
(error "Sorry, no matches found"))
;; Remember where we came from
(setq reftex-call-back-to-this-buffer (current-buffer))
(set-marker reftex-select-return-marker (point))
;; Offer selection
(save-window-excursion
(delete-other-windows)
(let ((major-mode 'reftex-select-bib-mode))
(reftex-kill-buffer "*RefTeX Select*")
(switch-to-buffer-other-window "*RefTeX Select*")
(unless (eq major-mode 'reftex-select-bib-mode)
(reftex-select-bib-mode))
(let ((buffer-read-only nil))
(erase-buffer)
(reftex-insert-bib-matches found-list)))
(setq buffer-read-only t)
(if (= 0 (buffer-size))
(error "No matches found"))
(setq truncate-lines t)
(goto-char 1)
(while t
(setq rtn
(reftex-select-item
bibretrieve-select-prompt
bibretrieve-select-help
reftex-select-bib-mode-map
nil
'bibretrieve-selection-callback nil))
(setq key (car rtn)
data (nth 1 rtn))
(unless key (throw 'done t))
(cond
((eq key ?g)
;; Start over
(throw 'done nil))
((eq key ?r)
;; Restrict with new regular expression
(setq found-list (reftex-restrict-bib-matches found-list))
(let ((buffer-read-only nil))
(erase-buffer)
(reftex-insert-bib-matches found-list))
(goto-char 1))
((eq key ?A)
;; Take all
(setq selected-entries found-list)
(throw 'done t))
((eq key ?a)
;; Take all marked
;; If nothing is marked, then mark current selection
(if (not reftex-select-marked)
(reftex-select-mark))
(setq selected-entries (mapcar 'car (nreverse reftex-select-marked)))
(throw 'done t))
((eq key ?e)
;; Take all marked and append them
(let ((file (bibretrieve-write-bib-items-bibliography found-list bibfile reftex-select-marked nil)))
(when file
(setq selected-entries
(concat "BibTeX entries appended to " file))
(throw 'done t)))
(message "File not found, nothing done"))
((eq key ?E)
;; Take all unmarked and append them
(let ((file (bibretrieve-write-bib-items-bibliography found-list bibfile reftex-select-marked 'complement)))
(when file
(setq selected-entries
(concat "BibTeX entries appended to " file))
(throw 'done t)))
(message "File not found, nothing done"))
((or (eq key ?\C-m)
(eq key 'return))
;; Take selected
;; If nothing is marked, then mark current selection
(let ((marked reftex-select-marked))
(unless marked (reftex-select-mark))
(let ((file (bibretrieve-write-bib-items-bibliography found-list bibfile reftex-select-marked nil)))
(when file
(setq selected-entries (concat "BibTeX entries appended to " file))
(throw 'done t)))
(unless marked (reftex-select-unmark)))
(message "File not found, nothing done. Press q to exit."))
((stringp key)
;; Got this one with completion
(setq selected-entries key)
(throw 'done t))
(t
(ding))))))))
selected-entries))
;; Get records from the web and insert them in the bibliography
;; Adapted from RefTeX
;;;###autoload
(defun bibretrieve ()
"Search the web for bibliography entries.
After prompting for author and title, searches on the web, using the
backends specified by the customization variable
`bibretrieve-backends'. A selection process (using RefTeX Selection)
allows to select entries to add to the current buffer or to a
bibliography file.
When called with a `C-u' prefix, permits to select the backend and the
timeout for the search."
(interactive)
;; check for recursive edit
(reftex-check-recursive-edit)
;; This function may also be called outside reftex-mode.
;; Thus look for the scanning info only if in reftex-mode.
(when reftex-mode
(reftex-access-scan-info nil))
;; Call bibretrieve-do-retrieve, but protected
(unwind-protect
(bibretrieve-do-retrieve current-prefix-arg)
(progn
(reftex-kill-temporary-buffers)
(reftex-kill-buffer "*BibRetrieve Record*")
(reftex-kill-buffer "*RefTeX Select*"))))
;; Adapted from RefTeX
(defun bibretrieve-do-retrieve (&optional arg)
"This really does the work of bibretrieve.
ARG is the optional argument."
(let ((selected-entries (bibretrieve-offer-bib-menu arg)))
(set-marker reftex-select-return-marker nil)
;; (when (stringp selected-entries)
;; (message selected-entries))
;; (unless selected-entries (message "Quit"))
;; (insert (bibretrieve-extract-bib-items selected-entries))
;; (message "fin qui ok")
(if (stringp selected-entries)
(message selected-entries)
(if (not selected-entries)
(message "Quit")
(insert (bibretrieve-extract-bib-items selected-entries))
)
)
))
;; Return the citation key
;; (mapcar 'car selected-entries)))
(provide 'bibretrieve-base)
;;; bibretrieve-base.el ends here