aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorRoland Winkler2013-06-25 21:18:09 +1200
committerRoland Winkler2013-06-25 21:18:09 +1200
commitbceff1894c0ec2c7f47cd09bed4d94fbaa2a7ea6 (patch)
treeb00a0f43e3ffbac7ba3c814e1c0badd9a12ed98c /lisp/textmodes
parent45f431c60e02c7a290f8a11c9189b735781749b4 (diff)
downloademacs-bceff1894c0ec2c7f47cd09bed4d94fbaa2a7ea6.tar.gz
emacs-bceff1894c0ec2c7f47cd09bed4d94fbaa2a7ea6.zip
bibtex-generate-url-list): Add support for DOI URLs
Diffstat (limited to 'lisp/textmodes')
-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'."
1224 (function :tag "Personalized function"))) 1224 (function :tag "Personalized function")))
1225 1225
1226(defcustom bibtex-generate-url-list 1226(defcustom bibtex-generate-url-list
1227 '((("url" . ".*:.*"))) 1227 '((("url" . ".*:.*"))
1228 (("doi" . "10\\.[0-9]+/.+")
1229 "http://dx.doi.org/%s"
1230 ("doi" ".*" 0)))
1228 "List of schemes for generating the URL of a BibTeX entry. 1231 "List of schemes for generating the URL of a BibTeX entry.
1229These schemes are used by `bibtex-url'. 1232These schemes are used by `bibtex-url'.
1230 1233
@@ -1261,6 +1264,7 @@ The following is a complex example, see URL `http://link.aps.org/'.
1261 (\"volume\" \".*\" 0) 1264 (\"volume\" \".*\" 0)
1262 (\"pages\" \"\\`[A-Z]?[0-9]+\" 0)))" 1265 (\"pages\" \"\\`[A-Z]?[0-9]+\" 0)))"
1263 :group 'bibtex 1266 :group 'bibtex
1267 :version "24.4"
1264 :type '(repeat 1268 :type '(repeat
1265 (cons :tag "Scheme" 1269 (cons :tag "Scheme"
1266 (cons :tag "Matcher" :extra-offset 4 1270 (cons :tag "Matcher" :extra-offset 4