[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/2] bibtex.el: Add support for DOI URLs.
From: |
Roland Winkler |
Subject: |
Re: [PATCH 2/2] bibtex.el: Add support for DOI URLs. |
Date: |
Thu, 13 Jun 2013 12:50:39 +1000 |
On Wed Jun 12 2013 Rüdiger Sonderfeld wrote:
> +(defcustom bibtex-doi-server-url (if (boundp 'org-doi-server-url)
> + org-doi-server-url
> + "http://dx.doi.org/")
> + "The URL of the DOI server."
> + :group 'bibtex
> + :version "24.4"
> + :type 'string)
> +
> (defcustom bibtex-generate-url-list
> - '((("url" . ".*:.*")))
> + '((("url" . ".*:.*"))
> + (("doi" . "10\\.[0-9]+/.+")
> + ("doi" ".*"
> + (lambda (text)
> + (concat bibtex-doi-server-url text)))))
Thanks. I believe this patch is a bit complicated. It depends on
whether org-mode is loaded before or after bibtex-mode. But this
can go straight into bibtex-generate-url-list (which the user can
customize if she doesn't like it; but I can only think of more
exotic reasons why this might be necessary).
Roland