From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] BibTeX-mode: add eprint field as potential source for entry's URL Date: Sun, 01 Dec 2024 21:49:22 +0200 Message-ID: <86o71v420t.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20414"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Leo Stein , Roland Winkler Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 01 20:50:21 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tHpxU-0005Ah-DP for ged-emacs-devel@m.gmane-mx.org; Sun, 01 Dec 2024 20:50:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tHpws-0001Lk-GO; Sun, 01 Dec 2024 14:49:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tHpwr-0001LR-14 for emacs-devel@gnu.org; Sun, 01 Dec 2024 14:49:41 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tHpwq-0000eb-Ng; Sun, 01 Dec 2024 14:49:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=YtXxo1hYkb2BWHELGm4l2f+RrhPhW2Lz9hfSIt4egtM=; b=dqlyxyJKCGau IswbnYs8P2GxT2XUIsq71VANFjF9CVvNU0hnhu0O3k/CZ3LEZMyALf8uwffFkwQvwuamW7FeprT2a mLjbH4HLdKk2Fh0FLiaRz7VIoyVPllRP1vCf2wP2zYw9bmMftXHubPn4JVWPgZKdPb2Q9Op8F8hzV +9Zwy6ylLzyAJl7axAXXYNT28f+qqaHuS4ZE3Id62Xsm1fxNpYvvDPpdWpKbo6RazUMtLYZnG7BcT onibli3WmfhbMkvrGTN6wRJZ46fbtlGQ3xFyB3iDP8L7yGBqI40kWNqQGqEDRI73B5ZMptpXiWzbp tGebNMl67F1jc1lxl5TCiQ==; In-Reply-To: (message from Leo Stein on Sun, 1 Dec 2024 13:05:33 -0600) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:325930 Archived-At: > From: Leo Stein > Date: Sun, 1 Dec 2024 13:05:33 -0600 > > This is a fairly trivial patch: the eprint field (like doi and url fields) is another field with (AFAIK) a universal > format that maps to a URL. This makes the contents of the eprint field automatically linked to the arXiv eprint > associated to the bibtex entry. > > Best, > Leo > > From 56ae41b168b75b7fc036a68e08802de3b2cb4cb2 Mon Sep 17 00:00:00 2001 > From: "Leo C. Stein" > Date: Sun, 1 Dec 2024 12:49:46 -0600 > Subject: [PATCH] BibTeX-mode: add eprint field as potential source for entry's > URL > > --- > lisp/textmodes/bibtex.el | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el > index 99a97c9bb8d..c77953489a7 100644 > --- a/lisp/textmodes/bibtex.el > +++ b/lisp/textmodes/bibtex.el > @@ -1443,6 +1443,9 @@ Used by `bibtex-complete-crossref-cleanup' and `bibtex-copy-summary-as-kill'." > > (defcustom bibtex-generate-url-list > '((("url" . ".*:.*")) > + (("eprint" . ".*") > + "https://arxiv.org/abs/%s" > + ("eprint" ".*" 0)) > (("doi" . "10\\.[0-9]+/.+") > "https://doi.org/%s" > ("doi" ".*" 0))) > -- > 2.47.0 > Roland, any comments?