summaryrefslogtreecommitdiff
path: root/lisp/textmodes/bibtex.el
diff options
context:
space:
mode:
authorRoland Winkler <winkler@gnu.org>2013-06-25 21:18:09 +1200
committerRoland Winkler <winkler@gnu.org>2013-06-25 21:18:09 +1200
commitbceff1894c0ec2c7f47cd09bed4d94fbaa2a7ea6 (patch)
treeb00a0f43e3ffbac7ba3c814e1c0badd9a12ed98c /lisp/textmodes/bibtex.el
parent45f431c60e02c7a290f8a11c9189b735781749b4 (diff)
downloademacs-bceff1894c0ec2c7f47cd09bed4d94fbaa2a7ea6.tar.gz
bibtex-generate-url-list): Add support for DOI URLs
Diffstat (limited to 'lisp/textmodes/bibtex.el')
-rw-r--r--lisp/textmodes/bibtex.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el
index 6280e19b637..171f373317a 100644
--- a/lisp/textmodes/bibtex.el
+++ b/lisp/textmodes/bibtex.el
@@ -1224,7 +1224,10 @@ Used by `bibtex-complete-crossref-cleanup' and `bibtex-copy-summary-as-kill'."
(function :tag "Personalized function")))
(defcustom bibtex-generate-url-list
- '((("url" . ".*:.*")))
+ '((("url" . ".*:.*"))
+ (("doi" . "10\\.[0-9]+/.+")
+ "http://dx.doi.org/%s"
+ ("doi" ".*" 0)))
"List of schemes for generating the URL of a BibTeX entry.
These schemes are used by `bibtex-url'.
@@ -1261,6 +1264,7 @@ The following is a complex example, see URL `http://link.aps.org/'.
(\"volume\" \".*\" 0)
(\"pages\" \"\\`[A-Z]?[0-9]+\" 0)))"
:group 'bibtex
+ :version "24.4"
:type '(repeat
(cons :tag "Scheme"
(cons :tag "Matcher" :extra-offset 4