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: Mon, 02 Dec 2024 15:34:39 +0200 Message-ID: <865xo2439s.fsf@gnu.org> References: <86o71v420t.fsf@gnu.org> <87v7w2kzaz.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15118"; mail-complaints-to="usenet@ciao.gmane.io" Cc: leo.stein@gmail.com, emacs-devel@gnu.org To: Roland Winkler Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Dec 02 14:43:46 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 1tI6iG-0003l2-QM for ged-emacs-devel@m.gmane-mx.org; Mon, 02 Dec 2024 14:43:45 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tI6cG-00016T-Q7; Mon, 02 Dec 2024 08:37:32 -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 1tI6Za-0003xn-Kb for emacs-devel@gnu.org; Mon, 02 Dec 2024 08:34:47 -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 1tI6Za-0002qS-AA; Mon, 02 Dec 2024 08:34:46 -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=+J+VzMnJW9iT2nmgYBOpk9g7CHO6vliiwqDYn6vjUkw=; b=GoN/UkVQ/guM 73WeOn8MMXvqIIe6SKjCds3+GMYZ2L8xL4jjmI/vB9BhaSkhKSkHqPDpeve5X/xRh+AUePRFUD5yG E8lvutohIwWLsEpmXdKR0o2s44i72V+ILFV+DwIGxCP/R/IiFmff3xK1hk5Ty4+hTy++R2QeajYq7 LqIz0WAhzEYUCuMvKHOkTjeRvSYr0hOID180zEBaXDIEfrdh3PNWTwrkfE15yg3reHVFKtXRBqbJh /YwBruRXMS5f5QX/T9nnsaCtkaeNdbSvJycyBpSrpnrNO77aFD49N0eCfyDuFA+imgQZYI6jKFfeB ZVjDMU/549REMaZz9vBiHA==; In-Reply-To: <87v7w2kzaz.fsf@gnu.org> (message from Roland Winkler on Mon, 02 Dec 2024 07:08:20 -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:325947 Archived-At: > From: Roland Winkler > Cc: Leo Stein , emacs-devel@gnu.org > Date: Mon, 02 Dec 2024 07:08:20 -0600 > > On Sun, Dec 01 2024, Eli Zaretskii wrote: > >> 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))) > > > > Roland, any comments? > > The above patch is very arXiv-specific. All this goes beyond > old-fashioned BibTeX. But the documentation for biblatex (current: > version 3.20 from CTAN) says in Sec. 3.14.7 "Electronic Publishing > Information" how the field "eprint" should be used in combination with a > field "eprinttype" to identify an electronically published document. > Arxiv's usage is not compatible with this. Instead of "eprinttype" > arXiv uses a field "archivePrefix", and the field "primaryClass" used by > arXiv should probably be replaced by the optional field "eprintclass" > mentioned in the biblatex documentation. > > To the best of my knowledge, neither the arXiv approach nor the different > approach suggested by the biblatex documentation have found a widespread > use in real life. > > The user variable bibtex-generate-url-list can be configured to work > either way, as suggested by the OP or as suggested by the biblatex > documentation. Here it seems to me the best solution is to keep the > default of bibtex-generate-url-list as it is now and let users configure > this variable as desired / needed. I agree. Since this is a user option, too-specific changes in it should be the matter of the user, not of changing the default.