diff options
| author | Roland Winkler | 2013-06-25 21:18:09 +1200 |
|---|---|---|
| committer | Roland Winkler | 2013-06-25 21:18:09 +1200 |
| commit | bceff1894c0ec2c7f47cd09bed4d94fbaa2a7ea6 (patch) | |
| tree | b00a0f43e3ffbac7ba3c814e1c0badd9a12ed98c | |
| parent | 45f431c60e02c7a290f8a11c9189b735781749b4 (diff) | |
| download | emacs-bceff1894c0ec2c7f47cd09bed4d94fbaa2a7ea6.tar.gz emacs-bceff1894c0ec2c7f47cd09bed4d94fbaa2a7ea6.zip | |
bibtex-generate-url-list): Add support for DOI URLs
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/textmodes/bibtex.el | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9cd341bfccf..7376fc31af4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2013-06-25 Rüdiger Sonderfeld <ruediger@c-plusplus.de> | 1 | 2013-06-25 Rüdiger Sonderfeld <ruediger@c-plusplus.de> |
| 2 | 2 | ||
| 3 | * lisp/textmodes/bibtex.el (bibtex-generate-url-list): Add support | ||
| 4 | for DOI URLs. | ||
| 5 | |||
| 6 | 2013-06-25 Rüdiger Sonderfeld <ruediger@c-plusplus.de> | ||
| 7 | |||
| 3 | * lisp/textmodes/bibtex.el (bibtex-mode, bibtex-set-dialect): | 8 | * lisp/textmodes/bibtex.el (bibtex-mode, bibtex-set-dialect): |
| 4 | Update imenu-support when dialect changes. | 9 | Update imenu-support when dialect changes. |
| 5 | 10 | ||
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. |
| 1229 | These schemes are used by `bibtex-url'. | 1232 | These 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 |