From bceff1894c0ec2c7f47cd09bed4d94fbaa2a7ea6 Mon Sep 17 00:00:00 2001 From: Roland Winkler Date: Tue, 25 Jun 2013 21:18:09 +1200 Subject: [PATCH] bibtex-generate-url-list): Add support for DOI URLs --- lisp/ChangeLog | 5 +++++ lisp/textmodes/bibtex.el | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9cd341bfcc..7376fc31af 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-06-25 Rüdiger Sonderfeld + + * lisp/textmodes/bibtex.el (bibtex-generate-url-list): Add support + for DOI URLs. + 2013-06-25 Rüdiger Sonderfeld * lisp/textmodes/bibtex.el (bibtex-mode, bibtex-set-dialect): diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el index 6280e19b63..171f373317 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 -- 2.20.1