From unknown Fri Aug 15 03:37:44 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#36252 <36252@debbugs.gnu.org> To: bug#36252 <36252@debbugs.gnu.org> Subject: Status: 26.1; bibtex-generate-autokey does not use use date field Reply-To: bug#36252 <36252@debbugs.gnu.org> Date: Fri, 15 Aug 2025 10:37:44 +0000 retitle 36252 26.1; bibtex-generate-autokey does not use use date field reassign 36252 emacs submitter 36252 Ryan Kavanagh severity 36252 minor tag 36252 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 16 16:23:39 2019 Received: (at submit) by debbugs.gnu.org; 16 Jun 2019 20:23:39 +0000 Received: from localhost ([127.0.0.1]:41531 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcbgh-0003y0-9U for submit@debbugs.gnu.org; Sun, 16 Jun 2019 16:23:39 -0400 Received: from mail-qk1-f172.google.com ([209.85.222.172]:43951) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcbgf-0003xm-S0 for submit@debbugs.gnu.org; Sun, 16 Jun 2019 16:23:38 -0400 Received: by mail-qk1-f172.google.com with SMTP id m14so4986554qka.10 for ; Sun, 16 Jun 2019 13:23:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=xfyce6vaOyn4zkv304V9Td3y6Y1looGYJY8jAqUNv88=; b=HmlBXY4wftoidEkybwP0NoYWopCDZPidK9H2zdxkD6fu/IYuLvRhKlmf9YceDKygKq /3xnOX030q0nFqioYjMUF4f9JDca2qK42iCB591vZC2qNjJdyCoTCfWfzNZIZha8OZQo MGw2hYF8B0V2Dr3tic7m20sDQ8XIQS1JpK0wQGExWwIWVEG29qvU9eiZ+WzAuoaajZ/V zs7QSTqGoF+YJPL1douWBQ2hw3VnOeM6ZbIjYBUR4giMP2y7ObSTMfgmDcfuPe9nb4re DLvMefj6MdOFAfzKJT61cS70AxIdRoY+yN56Dv0nZeQRuZIxT+5+J++gLMshZoIC3cFP BUGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:subject:message-id :mime-version:content-disposition:user-agent; bh=xfyce6vaOyn4zkv304V9Td3y6Y1looGYJY8jAqUNv88=; b=AWr840BMWgFbxGyby+gjk3VpNVq+QFeT/mkaVg3QQ5B8io9AuVpBuJuj4bUnUI5CLL 7eEV89BAZ9aeCIdf18u5+BEBRDmmJunTHYtlHZbm4T5sNUIKm8JE0t+1ncL7Yfcd4zJ9 3VGVranIleACUnQ5vgy7m+fqXW0OjY1T4Ap0raPXRfQIsbVokccDpmn7cG+XM/+FGSeq /HB8/pbfam0PMTibeiC5zOuPN2xOLBqRoN2lm+09sBmtMlyFHUiVWs6jSCEwbUm8m3Pe s1t1QhOkKnVXGCsngxPUFV3udqMq7PGqASoU3yKQe9NahG/6cqEQH+Syo8Qwi1iyxqkZ d2rw== X-Gm-Message-State: APjAAAUcmAgspLI6KIO6JAyA9bepwL58nOcdCMxj1W2lJSC+oz0Juaai bt655OeRhNPg+cXb4xbn9U8OAnXN X-Google-Smtp-Source: APXvYqxzFbgAMPau1a29r9GiF7hevjWEcwz49DN/EJ5aFUGKvFx4l7ovz/Bb4CfwVqc5/S3Ddgfjmg== X-Received: by 2002:a05:620a:16b2:: with SMTP id s18mr79704968qkj.323.1560716611678; Sun, 16 Jun 2019 13:23:31 -0700 (PDT) Received: from zeta.rak.ac (c-98-239-128-52.hsd1.pa.comcast.net. [98.239.128.52]) by smtp.gmail.com with ESMTPSA id k55sm7886509qtf.68.2019.06.16.13.23.29 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 16 Jun 2019 13:23:30 -0700 (PDT) Date: Sun, 16 Jun 2019 16:23:30 -0400 From: Ryan Kavanagh To: submit@debbugs.gnu.org Subject: 26.1; bibtex-generate-autokey does not use use date field Message-ID: <20190616202330.immdadcg24qedysq@zeta.rak.ac> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="u4b4fqvhgdoo6zu3" Content-Disposition: inline X-message-flag: Please do NOT send HTML e-mail or MS Word attachments - use plain text instead X-GPG-ID: 0x8F7BF8FC4A11C97A X-GPG-Fingerprint: 4E46 9519 ED67 7734 268F BD95 8F7B F8FC 4A11 C97A User-Agent: NeoMutt/20180716 X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) --u4b4fqvhgdoo6zu3 Content-Type: multipart/mixed; boundary="ebm2gq44lagwdwfv" Content-Disposition: inline --ebm2gq44lagwdwfv Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Package: emacs Version: 26.1 Tags: patch The bibtex.el package will automatically generate a key for a BibTeX entry when required. To do so, it extracts the year from the 'year' field. Instead of the 'year' field, the biblatex dialect uses the 'date' field to record the publication date. The bibtex-generate-autokey function should fallback to the date field when the year field is absent. This requires a bit of care because the 'date' field can contain an arbitrary date satisfying the "ISO8601-2 Extended Format Specification Level 1". Fortunately, a relatively simple regex can extract the year from all of the examples listed in the biblatex manual[0]. Please see attached for a patch adding support for the 'date' field. [0] http://mirrors.ibiblio.org/CTAN/macros/latex/exptl/biblatex/doc/biblate= x.pdf --=20 |)|/ Ryan Kavanagh | GPG: 4E46 9519 ED67 7734 268F |\|\ https://rak.ac | BD95 8F7B F8FC 4A11 C97A --ebm2gq44lagwdwfv Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename="0001-Fallback-to-date-field-when-year-field-is-absent-in-.patch" Content-Transfer-Encoding: quoted-printable =46rom 80224ef879ba34d637ed9c538d813799321b6a3f Mon Sep 17 00:00:00 2001 =46rom: Ryan Kavanagh Date: Sun, 16 Jun 2019 16:20:26 -0400 Subject: [PATCH] Fallback to date field when year field is absent in bibtex files The bibtex.el package automatically generates a key for a BibTeX entry when required. To do so, it extracts the year from the 'year' field. Instead of the 'year' field, the biblatex dialect uses the 'date' field to record the publication date. The bibtex-generate-autokey function should fallback to the date field when the year field is absent. --- lisp/textmodes/bibtex.el | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el index a560c2b097..62482e3ae8 100644 --- a/lisp/textmodes/bibtex.el +++ b/lisp/textmodes/bibtex.el @@ -2707,10 +2707,24 @@ and `bibtex-autokey-names-stretch'." (bibtex-autokey-abbrev name bibtex-autokey-name-length)))) =20 (defun bibtex-autokey-get-year () - "Return year field contents as a string obeying `bibtex-autokey-year-len= gth'." - (let ((yearfield (bibtex-autokey-get-field "year"))) - (substring yearfield (max 0 (- (length yearfield) - bibtex-autokey-year-length))))) + "Return year field contents as a string obeying `bibtex-autokey-year-len= gth'. +If the year field is absent, extract the year from a valid ISO8601-2 +Extended Format date in the date field and return it as a string obeying +`bibtex-autokey-year-length'." + (let ((yearfield (bibtex-autokey-get-field "year")) + (datefield (bibtex-autokey-get-field "date")) + (shortener (lambda (year) + (substring year (max 0 (- (length year) + bibtex-autokey-year-length)))))) + (if (string=3D "" yearfield) + (cond ((string-match "[./]*\\(-?[[:digit:]]+X*\\)\\([-/.[:digit:]:T~?%X]*= \\)" + datefield) + ;; Matches ISO8601-2 Extended Format specification level 1 + ;; examples listed in tables 3, 4, and 5 on pp. 38-40 of the + ;; biblatex package manual, version 3.12 + (funcall shortener (match-string 1 datefield))) + (t (error "Date field `%s' is incorrectly formed" datefield))) + (funcall shortener yearfield)))) =20 (defun bibtex-autokey-get-title () "Get title field contents up to a terminator. @@ -2795,8 +2809,10 @@ The year part: 1. Build the year part of the key by truncating the content of the year field to the rightmost `bibtex-autokey-year-length' digits (useful values are 2 and 4). - 2. If the year field (or any other field required to generate the key) - is absent, but the entry has a valid crossref field and + 2. If the year field is absent, extract the year from the date field + and truncate in the same manner. + 3. If the both fields (or any other field required to generate the key) + are absent, but the entry has a valid crossref field and `bibtex-autokey-use-crossref' is non-nil, use the field of the crossreferenced entry instead. =20 --=20 2.20.1 --ebm2gq44lagwdwfv-- --u4b4fqvhgdoo6zu3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQUzBAABCgAdFiEETkaVGe1ndzQmj72Vj3v4/EoRyXoFAl0GpT4ACgkQj3v4/EoR yXqhuSf/b69vbjJncLjZ+jagQol2ukonfYKe7wgNQjcJe1EvixBi+N0nz/V7+CVm +2KUiRjD9TUhQmz8O3zsMNgbLHaUFadvQGuO20WM2OIfikIBoMr2Kfv4QXmYuCaz j4harHB7BXYOq03idSzPbqu1WkDakKphjlBRJIdzo2EGrLbPcOu/gToa+96+rzav FCcLnrcVjQbe3gjA5HOYtTGkwP8VH+yeCGr3tuRc22OY+V+MR6QqZ/4Xphz+GoeL wJFHDSK9aUvkU4PPJfEWDrGR246i9edFXNxh39YSOiZWRvo0C3fffyLgUWV5PI9I RZatznzzRkKncrvGAOUUDkl3wFPG3iorsLMG5pThh/Itd9tQRwIWVB7ZvjRsbni4 35dSsRuCiLTQuE/wj520tDCue84KW5xOXbbypRCD56jFekpZceImwcdVtFE9wiAZ lTd0VG8ycY+UYM9KWL3fkkNcGGDpDEBtXO02/zy5FGgLNa0U9UVfgQq1jTC5b+uq nMp8BN9QHA0UW9Dzi1YF9YxdrweDPWBYZhJYLMPHfw755Kgm4zCwLHAnUvIOg+xO LpmNYDPH7xQbLzTj7m1dpK02ZEKwB3oJBYccYGXsAmFGww35EggSXmLiuOE8D4UP GnyaFTKGWOP81MemriNiOyLFsbwFNmu81kalOl4Iikm9xTIfUHwOIpXX92yvqwOd wM1gwcc7amFVYHu9rnDYL8ryNy+SN1M4JOD3J2K+IJjAaWC6Ddl8NqvO4/pzO2Sa Z0Z0Shw4dUEOnufbXxBDXgNixLgUgPnPqE3DFfCkt6+a1G292Zn3OA2B5CqIUpwv PcYpZCZlW/rhckaHHXCqsCAfuEmiPS9Y/HyDCVeaq7A143g+SnMeIIJY9Tx4jAna 7jvokUOclGVmb19TDzY0sSqJL5U0xPnHqr60dAUSB0j2yTRnfm/885jcjteX3rh8 bdgGcZ/hFWO3UvpLcKAyMtk0ZSJeJrb6qJdOjXO/uwAwhUM6NBIP5/RZ/til/K41 uNr4N84M6rTxX1amaqcVcvg0pD/hW1Z93EQYzaR9fm57gBg7lOFnKpG4LXi55IPh tPGux3C/Ey+olC/EQc+pZKWF2p5aF64pWlBvEyp9J8A2y+ZmFZUUVpF6KvCn5MKD Q+2nGjgJyuEWd0kPBWqjWq7N1lIKuLK8rX+Tu38tQ5pQLbYVRyMeuINYogbpWIPh XxysswkdrrVEjy5bSIzHR0tJJIS2UnkLbIyTM3DjRTK1Tu22cKzS9A0AzzanwdRo qbVKIaxKfJMLWiEJb6i65/gYZKt0+Wf1+wDHqztNwtYk5KkMEEVAwApeAMBZIq4b muTswiCoH5+qthLKzVHqZ4T1HbK0FMnyoztFY8jBDm9ekVRZLue4dIspR3fhBXMa rxursE6HqbX5UKr2VtB7Wp3H7tQOEh0zgzhZH3WT/HeksFVCBxOo6Fl6vu8mN2Xq BiQKS1LEY0bR+pha7AM8Ia3Q5lNxvli4PFvn/O1V7O1cNIzAwWpTqGW8TgTbKtZH Touk+rdvA/eBbgzARs0JHtPT5A8ovwC+VCe4Ow1II8Po5jwHSc1RKH+JjsOk7Z4k bUAqWyq6zTXXShTjdxOZ4AmpwDI25P0gsj6VcRjqe0/76wrgJgyXrTreK+PeRPKY tivh6DVBFno+Ot9VPlyUKmnOMrwFHApDuXI6xRclokT0JiWLYNw= =zhGU -----END PGP SIGNATURE----- --u4b4fqvhgdoo6zu3-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 06 10:52:12 2019 Received: (at 36252) by debbugs.gnu.org; 6 Jul 2019 14:52:12 +0000 Received: from localhost ([127.0.0.1]:55741 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hjm2u-00057k-8e for submit@debbugs.gnu.org; Sat, 06 Jul 2019 10:52:12 -0400 Received: from quimby.gnus.org ([80.91.231.51]:53828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hjm2t-00057c-1n for 36252@debbugs.gnu.org; Sat, 06 Jul 2019 10:52:11 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hjm2p-0005Uf-S1; Sat, 06 Jul 2019 16:52:10 +0200 From: Lars Ingebrigtsen To: Ryan Kavanagh Subject: Re: bug#36252: 26.1; bibtex-generate-autokey does not use use date field References: <20190616202330.immdadcg24qedysq@zeta.rak.ac> Date: Sat, 06 Jul 2019 16:52:07 +0200 In-Reply-To: <20190616202330.immdadcg24qedysq@zeta.rak.ac> (Ryan Kavanagh's message of "Sun, 16 Jun 2019 16:23:30 -0400") Message-ID: <874l3zdxm0.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Ryan Kavanagh writes: > The bibtex.el package will automatically generate a key for a BibTeX > entry when required. To do so, it extracts the year from the 'year' > field. Instead of the 'year' field, the biblatex dialect [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36252 Cc: 36252@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ryan Kavanagh writes: > The bibtex.el package will automatically generate a key for a BibTeX > entry when required. To do so, it extracts the year from the 'year' > field. Instead of the 'year' field, the biblatex dialect uses the 'date' > field to record the publication date. The bibtex-generate-autokey > function should fallback to the date field when the year field is > absent. This makes sense to me, but I'm not a bibtex user. Anybody else that can take a look at this patch? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 06 10:55:54 2019 Received: (at 36252) by debbugs.gnu.org; 6 Jul 2019 14:55:54 +0000 Received: from localhost ([127.0.0.1]:55745 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hjm6T-0005DV-Rs for submit@debbugs.gnu.org; Sat, 06 Jul 2019 10:55:54 -0400 Received: from quimby.gnus.org ([80.91.231.51]:53884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hjm6R-0005DM-OL for 36252@debbugs.gnu.org; Sat, 06 Jul 2019 10:55:52 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hjm6O-0005VQ-4j; Sat, 06 Jul 2019 16:55:50 +0200 From: Lars Ingebrigtsen To: Ryan Kavanagh Subject: Re: bug#36252: 26.1; bibtex-generate-autokey does not use use date field References: <20190616202330.immdadcg24qedysq@zeta.rak.ac> Date: Sat, 06 Jul 2019 16:55:47 +0200 In-Reply-To: <20190616202330.immdadcg24qedysq@zeta.rak.ac> (Ryan Kavanagh's message of "Sun, 16 Jun 2019 16:23:30 -0400") Message-ID: <871rz3dxfw.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Ryan Kavanagh writes: > This requires a bit of care because the 'date' field can contain > an arbitrary date satisfying the "ISO8601-2 Extended Format > Specification Level 1". Fortunately, a relatively simple regex can > [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36252 Cc: 36252@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ryan Kavanagh writes: > This requires a bit of care because the 'date' field can contain > an arbitrary date satisfying the "ISO8601-2 Extended Format > Specification Level 1". Fortunately, a relatively simple regex can > extract the year from all of the examples listed in the biblatex > manual[0]. (This reminds me -- Emacs should really have a parser that can parse all ISO8601 variants. There's parse-iso8601-time-string, but it only handles the simplest of the formats...) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 14 20:34:34 2019 Received: (at 36252) by debbugs.gnu.org; 15 Jul 2019 00:34:34 +0000 Received: from localhost ([127.0.0.1]:46201 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmows-0004w9-AS for submit@debbugs.gnu.org; Sun, 14 Jul 2019 20:34:34 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:34368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmown-0004vt-Tg for 36252@debbugs.gnu.org; Sun, 14 Jul 2019 20:34:32 -0400 Received: by mail-io1-f67.google.com with SMTP id k8so31533176iot.1 for <36252@debbugs.gnu.org>; Sun, 14 Jul 2019 17:34:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Cmk6UqBaZaQEzCU5uae8VAcsHzAiPYBCag3Ag1A8Bk8=; b=MlVz3BDt6NnX80eohloOkkqXprkVrXU+oqfLgErXOT6ZI293vQRs2Id5JuFyyvb9gb 9Msrb47sEakxIzfljNTFe/OCq7UbtxY+e7MTSkaoi32aQmc0+RN30hXiXrPtZW4Bwv4H iRRkVG//aX2eDXM1WauCB4gc//mCPNNLF3oIqB8/VWm+ZJKJ/Cz3h5Jf4JIKl0SPu+bn y6MDpwyHY4FNunpMxma1JidaYKuj5faI1PNw8Tl+tkELsmOQbx2tLw2iEbIF8Hc9J36v QPAxDWU+UPiI5TnhUCaqQvYYJtle5/MJPphWJ2Iyn7JdpxYV9RPafdX2NkIhrU/ZEyBj 9Smg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=Cmk6UqBaZaQEzCU5uae8VAcsHzAiPYBCag3Ag1A8Bk8=; b=TeuIP6WpS/kTBUrKbxprTKSGp3DRaIIWcZW2i2xW5TheRX1R1Y8VbseIdEPwq82+f5 MgdfBTf74YjBshjc/ike0ZtsvxLfdrOJ2aJUwu+Vo9rq6rRiECd9mTnkPxCkrBguNhL4 4wWSQ6DJB7PpC6QAB/tR6xsDNaXPFhrqUsOlJdX2M3y7/5N+EQDosNdGaL5AsAdUfiYY 5YDQovcn40Upb/sU4lxa3OWyJ+x8A2vcBCJ3IQCGWG2ONm6UOVCmxw/Mhd96nRMbJLjx FFXeqyqJB99hjNhjSk0P6EEZKgzU/cpHOCKcgfs26FAKo4qS+c4zPOHXtIwg3JGr1Het f47A== X-Gm-Message-State: APjAAAUP+MkuQXXDWFmVtu9EiNQxkWo9s/EtydXveIXG546Y0Wy2Xt2X /jcZi6iahugHQV9oXwyzYFs= X-Google-Smtp-Source: APXvYqwhLPDzuIfgB8gev9GONHoMlt4koVKRcm3WPpEBBMce2TLAbooRiwE/h3wb4ZpdgGr4M5i5tg== X-Received: by 2002:a02:5185:: with SMTP id s127mr24706003jaa.44.1563150863988; Sun, 14 Jul 2019 17:34:23 -0700 (PDT) Received: from zeta.rak.ac ([2001:1970:529b:8100:5ee0:c5ff:fe7d:532f]) by smtp.gmail.com with ESMTPSA id r24sm11953547ioc.76.2019.07.14.17.34.22 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 14 Jul 2019 17:34:22 -0700 (PDT) Date: Sun, 14 Jul 2019 20:34:21 -0400 From: Ryan Kavanagh To: Lars Ingebrigtsen Subject: Re: bug#36252: 26.1; bibtex-generate-autokey does not use use date field Message-ID: <20190715003421.qrb65bynacpxca2k@zeta.rak.ac> References: <20190616202330.immdadcg24qedysq@zeta.rak.ac> <871rz3dxfw.fsf@mouse.gnus.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dudazcj7omeqrkvf" Content-Disposition: inline In-Reply-To: <871rz3dxfw.fsf@mouse.gnus.org> X-message-flag: Please do NOT send HTML e-mail or MS Word attachments - use plain text instead X-GPG-ID: 0x8F7BF8FC4A11C97A X-GPG-Fingerprint: 4E46 9519 ED67 7734 268F BD95 8F7B F8FC 4A11 C97A User-Agent: NeoMutt/20180716 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 36252 Cc: 36252@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --dudazcj7omeqrkvf Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 06, 2019 at 04:55:47PM +0200, Lars Ingebrigtsen wrote: > (This reminds me -- Emacs should really have a parser that can parse > all ISO8601 variants. There's parse-iso8601-time-string, but it only > handles the simplest of the formats...) Perhaps that should be the first step, and then the committed fix to this bug can just use that. I've been using this patch since I submitted it and I've discovered a slight bug in how date parsing works for bibtex files with this patch. Please hold off on committing this patch until I've managed to narrow down the bug and figure out where it is. Thanks, Ryan --=20 |)|/ Ryan Kavanagh | GPG: 4E46 9519 ED67 7734 268F |\|\ https://rak.ac | BD95 8F7B F8FC 4A11 C97A --dudazcj7omeqrkvf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQUzBAABCgAdFiEETkaVGe1ndzQmj72Vj3v4/EoRyXoFAl0ryggACgkQj3v4/EoR yXrO+yf/YUu92hyzuae77plrRCPfU2EIbmQpo+f+nwvSelkKv0UPNz4ZyqPLhJKa WmS1+50pjaAU/w+UAIn0N5shDChOMAoyIm1dCteePAubjZYI7F5JO4xkxhqlwWm0 RdjgtO1L2EexvHLP0E1Fmwaq8Brskkqr5hU3vDVfLQQ/69ANel4lbl/Acoy/JIzR ji4A0rJlNxvJ2CijgnDdPjHGAb1BwHx+onnJKmov8JpwtS3j+m92o37Vuc3kqQKn mBAs4pKYzNd8fH8tU9upqc8vfIyIq7yF6CjE2b3DXmGOv+vMpQ+EgbxBwOLrUTu3 lTp1SrHgKxXxkn4gMrZp9C3lrcEaxTbhAmKsGXqhIJKB4EF/RYG5ByYiCSsD0hUK p1uMTvmEJNu+qPwf3UeVhk8v96/RF1L86mEF9VvJBWh8hXflHUDEukYgHXqP47qg CrCvT+LdekSqx8t3vPx7JsOrPW6+sV+X2WiMidv3FYARi+eqHMycz0rQTibXc/on RqS7Htr10xK8Gcu7mvuNAdMsPhUUlxLECgfq8OlCiKgcvIFdGwOr1Kb+MovVzXX5 w7GO24fNXP7oUZE/og7+qflyMzjzgMlBAZxDbaVGBcZyuTNwW9wotgrka02m4lJY TJSx+ia/zZOmqxH8cTYOxrtkkS9uTgCDgMI5SB2loSzbyXjraZoP3SlhIeImlYnc KHMNpZBicQ5IodpfaOSFvkpWN+sJnTJjpHbWVUiVDzCPSgN0Wa+uMIOZnl6LBpuS YKt1fwaiIpS+z8Cdp44vwXDTC5m4/Vip0eBCMMq6hAD0xEUM4ec96TMoslK0x9oN pu/tbR9BFMq8z1RV0x5pYIbkvv/WSddGShDe5oYqZC+TOZMdLeeyVFGjqFU8ra7W XV1Bd6ghYY2ShSikfpP+1XyFuxPRMaYlybJvP/r2O52vOgWe3qtL3tE4Kmmyt8ed UhkSiekx23GdQ987gcA8HV9EkxzwHu3oYM8eKIxisYQzC5C3Y6WG0AkoNI05hGVv A+eIgbPStHZo80Mi/ICzM6T+aXuZ6gTEdR1IJkIWC5yVKBvjuS2EU07JSQYrVSuI NLrocvRi1StQKf7VE7m30P6s02tvKfYXRycsA4K0k9aDZYAmJzWFajxWyAenXH+R AYRiLrmOqDUuGLKhL0SbvvivJnpTbkuHymYGYJq0DU2z+jTfVHWzmH/yZ824cHRZ Re19mCwatpoFplTOz0LOSd0RJa/EOFoZkje7qc9OZeqLGKu/8/2v+Ky7JDNH/yl7 yv6rQIVwsPA00f4cVFz1WZ+Wt5sewWspILO/8OZPNmF7zQyHnMC3h+I1mfBCsd5/ UsN8MpjkF8b7kQM1egeIkOUpHyKXJo6FjumAFwCmH/Z8o3JRFSrl3FpCepIrLiFU gVWgFBjHkE8myvs9EED5v1TMPyY0ayVgtgy3HZoJSHLAKiPCTqDAuwikz+v3Tvpv ikw0IB+Sov/43go9wkixJfUviXMVC7aAbfSejcENnym2rKgdMGpl1Ya4AfXwg9yj EvCU6GqMWEJS4DqxCwdTm1rNijyufRZMdh0zMHElI4ytYDImLzGjJ8i1rHrpEtYg VtP89KJFucQW3Hm8wB9/VyQNdkzHn8RX9aqH7YaClVW5Ts/Dwj+Jg4mBfEakA2kL bQr+GMU8PdUsQvj4qDSh7Xytt5KISzVX9U0wSGzvIoHqQ9W2cpo= =xjJY -----END PGP SIGNATURE----- --dudazcj7omeqrkvf-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 15 03:24:44 2019 Received: (at 36252) by debbugs.gnu.org; 15 Jul 2019 07:24:44 +0000 Received: from localhost ([127.0.0.1]:46288 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmvLn-0007MP-Tx for submit@debbugs.gnu.org; Mon, 15 Jul 2019 03:24:44 -0400 Received: from quimby.gnus.org ([80.91.231.51]:37444) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmvLm-0007MH-L5 for 36252@debbugs.gnu.org; Mon, 15 Jul 2019 03:24:43 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hmvLi-0004Fx-FA; Mon, 15 Jul 2019 09:24:40 +0200 From: Lars Ingebrigtsen To: Ryan Kavanagh Subject: Re: bug#36252: 26.1; bibtex-generate-autokey does not use use date field References: <20190616202330.immdadcg24qedysq@zeta.rak.ac> <871rz3dxfw.fsf@mouse.gnus.org> <20190715003421.qrb65bynacpxca2k@zeta.rak.ac> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEV1cnanpafW1NX+//xP TFD09PT+//r///6+vL7+/vz8/Pr+//v////p5+n+/v2QjpFaawQLAAABSUlEQVQ4jWPINktLS0u2 OV5ubJyWXHMGCIqNjWvOHGPYc+Z4DZh/5szxMwjwHCgBBm/OoAGGGnQRmAQOcdIljuOSOI1L4hgu iVO4JE6SbDkef7whRUcdVonjZ8rvnynHInHjpZzg2Y9YXNXYwD7h0KfDmPFxxdGnoEjmOCwGQeAc mDy1Lv3kuTkoEkigBiFxquc+yEn959hBVA9CotDpCo+AzlH/gzxXmBmCPBASR/nu8zi0n/l7nP3+ coE7fMfhrjrFFCjToHNc9oz4jeMf7vxA8sfx4zXAFFd+puZMTXkNerDHAuVrjoMMQZNQPHP1hFTA 9dhXV9HCSvGQy3veK+0uGv5oEgoR/i++Prjnf0kOzaiH9yROiZ7oU1yrQ3qcU0XHuTW4JMDkYZIt x+OqNTglqkKxS5xZtQqHBC6j5uCSwKkD6lN0cBwAFsxlF9+Rj/UAAAAASUVORK5CYII= Date: Mon, 15 Jul 2019 09:24:38 +0200 In-Reply-To: <20190715003421.qrb65bynacpxca2k@zeta.rak.ac> (Ryan Kavanagh's message of "Sun, 14 Jul 2019 20:34:21 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Ryan Kavanagh writes: > On Sat, Jul 06, 2019 at 04:55:47PM +0200, Lars Ingebrigtsen wrote: >> (This reminds me -- Emacs should really have a parser that can parse >> all ISO8601 variants. There's parse-iso8601-time-string, [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36252 Cc: 36252@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ryan Kavanagh writes: > On Sat, Jul 06, 2019 at 04:55:47PM +0200, Lars Ingebrigtsen wrote: >> (This reminds me -- Emacs should really have a parser that can parse >> all ISO8601 variants. There's parse-iso8601-time-string, but it only >> handles the simplest of the formats...) > > Perhaps that should be the first step, and then the committed fix to > this bug can just use that. I've implemented a proper iso8601 parser now, but hasn't merged with the Emacs trunk yet because I haven't done the entire test suite yet. It's on the scratch/iso8601 branch if you want to check it out. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 16 17:01:14 2019 Received: (at 36252) by debbugs.gnu.org; 16 Sep 2019 21:01:14 +0000 Received: from localhost ([127.0.0.1]:51176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9y7V-0002F4-Nr for submit@debbugs.gnu.org; Mon, 16 Sep 2019 17:01:13 -0400 Received: from quimby.gnus.org ([80.91.231.51]:39182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9y7Q-0002At-Ne for 36252@debbugs.gnu.org; Mon, 16 Sep 2019 17:01:11 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i9y7K-0006MY-V8; Mon, 16 Sep 2019 23:01:07 +0200 From: Lars Ingebrigtsen To: Ryan Kavanagh Subject: Re: bug#36252: 26.1; bibtex-generate-autokey does not use use date field References: <20190616202330.immdadcg24qedysq@zeta.rak.ac> <871rz3dxfw.fsf@mouse.gnus.org> <20190715003421.qrb65bynacpxca2k@zeta.rak.ac> Date: Mon, 16 Sep 2019 23:01:02 +0200 In-Reply-To: (Lars Ingebrigtsen's message of "Mon, 15 Jul 2019 09:24:38 +0200") Message-ID: <87k1a8q7ld.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > Ryan Kavanagh writes: > >> On Sat, Jul 06, 2019 at 04:55:47PM +0200, Lars Ingebrigtsen wrote: >>> (This reminds me -- Emacs should really have a parser that can parse >>> all ISO860 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36252 Cc: 36252@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > Ryan Kavanagh writes: > >> On Sat, Jul 06, 2019 at 04:55:47PM +0200, Lars Ingebrigtsen wrote: >>> (This reminds me -- Emacs should really have a parser that can parse >>> all ISO8601 variants. There's parse-iso8601-time-string, but it only >>> handles the simplest of the formats...) >> >> Perhaps that should be the first step, and then the committed fix to >> this bug can just use that. > > I've implemented a proper iso8601 parser now, but hasn't merged with the > Emacs trunk yet because I haven't done the entire test suite yet. It's > on the scratch/iso8601 branch if you want to check it out. The iso8601 parser is in the trunk now, so if you could rework your patch based on that, that'd be nice. The function to use is `iso8601-parse'. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 10 07:00:55 2020 Received: (at control) by debbugs.gnu.org; 10 Aug 2020 11:00:55 +0000 Received: from localhost ([127.0.0.1]:34612 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k55Xz-0008R5-5M for submit@debbugs.gnu.org; Mon, 10 Aug 2020 07:00:55 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46254) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k55Xw-0008Jd-IK for control@debbugs.gnu.org; Mon, 10 Aug 2020 07:00:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=9TaO5q/SM6q9/Oa452wdb/6tL0e3Qqpb2mvKXQSEtDY=; b=qGO7tONqbHhsK4Cq+AKgiXmO9h ajIbXEzu/0FKf9mQklh/Mho2HvXPpwxT/JHR2E1CzqdtgrIMjCEeY0zdMclSf86Fi2akyVtWP2RB5 H5ctCWPHej/YAyrF9LLeqd/Xzl3LjS7JB9zTzjOBVPTr5Pu4Oi+7phqYq8RVAL/ChDhs=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k55Xn-00036z-Tx for control@debbugs.gnu.org; Mon, 10 Aug 2020 13:00:46 +0200 Date: Mon, 10 Aug 2020 13:00:42 +0200 Message-Id: <87wo267okl.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #36252 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 36252 - patch quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 36252 - patch quit From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 10 07:01:47 2020 Received: (at 36252) by debbugs.gnu.org; 10 Aug 2020 11:01:47 +0000 Received: from localhost ([127.0.0.1]:34617 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k55Yp-0000hd-E5 for submit@debbugs.gnu.org; Mon, 10 Aug 2020 07:01:47 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46278) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k55Yn-0000bv-7H for 36252@debbugs.gnu.org; Mon, 10 Aug 2020 07:01:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=7TlsYtdlWIeAQlYEw138GKPI54IPf153KPqo87Jk9LE=; b=Ru6iVq7K9sREcM0FJ8Yr8axaIs ctmfuPY/vk6V+tLi/mAIl/rBlxufqqZUGev4UrJYoIzLdoQIT2hM5djvLhjuN4/Yjucu1GUu7uUTy ImC9ZYaIx9WRAGxVYZ8kQ0NrG3w6A9C5SMCcni7xQpCzAOVd0k3Hk33B4iE63449pcI4=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k55YY-00037K-Gk; Mon, 10 Aug 2020 13:01:39 +0200 From: Lars Ingebrigtsen To: Ryan Kavanagh Subject: Re: bug#36252: 26.1; bibtex-generate-autokey does not use use date field References: <20190616202330.immdadcg24qedysq@zeta.rak.ac> <871rz3dxfw.fsf@mouse.gnus.org> <20190715003421.qrb65bynacpxca2k@zeta.rak.ac> <87k1a8q7ld.fsf@gnus.org> Date: Mon, 10 Aug 2020 13:01:29 +0200 In-Reply-To: <87k1a8q7ld.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 16 Sep 2019 23:01:02 +0200") Message-ID: <87sgcu7oja.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > The iso8601 parser is in the trunk now, so if you could rework your > patch based on that, that'd be nice. The function to use is > `iso8601-parse'. Ryan, did you look into redoing this functionality with `iso8601-parse'? Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36252 Cc: 36252@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > The iso8601 parser is in the trunk now, so if you could rework your > patch based on that, that'd be nice. The function to use is > `iso8601-parse'. Ryan, did you look into redoing this functionality with `iso8601-parse'? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 10 07:01:52 2020 Received: (at control) by debbugs.gnu.org; 10 Aug 2020 11:01:52 +0000 Received: from localhost ([127.0.0.1]:34620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k55Yt-0000l3-OJ for submit@debbugs.gnu.org; Mon, 10 Aug 2020 07:01:52 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k55Ys-0000fv-M2 for control@debbugs.gnu.org; Mon, 10 Aug 2020 07:01:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=rKRkb3g8GjiA+Jb8ovNz6Aczny74mEPUTn1aI9JtkuQ=; b=blsowZvLXyhIIwf1+M6vMMMpbV vKZGIuDIiOU46v9Odl77WE05W2ElnIiBQpQjRkP0VDThRdW+Sm73f1zacQh9xNNHWaIgMA9bnSjGP a0wx1I9D/f9Q7iCjpO4DUYWmmGKSYM3i8Qb8iIQobpsDwYege01Ovq/OxL2URz4PPG94=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k55Yk-00037U-TD for control@debbugs.gnu.org; Mon, 10 Aug 2020 13:01:45 +0200 Date: Mon, 10 Aug 2020 13:01:41 +0200 Message-Id: <87r1se7oiy.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #36252 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 36252 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 36252 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 14 11:02:21 2020 Received: (at 36252) by debbugs.gnu.org; 14 Sep 2020 15:02:22 +0000 Received: from localhost ([127.0.0.1]:55803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHpzp-000222-LP for submit@debbugs.gnu.org; Mon, 14 Sep 2020 11:02:21 -0400 Received: from quimby.gnus.org ([95.216.78.240]:60282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHpzo-0001xF-Fe for 36252@debbugs.gnu.org; Mon, 14 Sep 2020 11:02:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZevIobSHpxsRqWiKwlwZ3bKht5hS9s6Qq83vGpNDLJY=; b=mXEhHPejyKXnqY15rAwvyjC3x6 pGqGdiRa3fa/eTtKJq3jWiaLAuvIPpNqfHO4aairnnOtJBX4h2+rid6tuLOMEdGhSD1AV9BoPtyc6 e9q2jWs3qcYFoOutfHax+OEUa8urL/EZZmGU60VDa90yDMxgn0QgX7L0kjqG4u0fs0xo=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kHpzY-0002mu-JF; Mon, 14 Sep 2020 17:02:14 +0200 From: Lars Ingebrigtsen To: Ryan Kavanagh Subject: Re: bug#36252: 26.1; bibtex-generate-autokey does not use use date field References: <20190616202330.immdadcg24qedysq@zeta.rak.ac> <871rz3dxfw.fsf@mouse.gnus.org> <20190715003421.qrb65bynacpxca2k@zeta.rak.ac> <87k1a8q7ld.fsf@gnus.org> <87sgcu7oja.fsf@gnus.org> X-Now-Playing: Drew Daniel, John Wiese's _Continuous Hole_: "Done It" Date: Mon, 14 Sep 2020 17:02:03 +0200 In-Reply-To: <87sgcu7oja.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 10 Aug 2020 13:01:29 +0200") Message-ID: <87pn6o766s.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > Lars Ingebrigtsen writes: > >> The iso8601 parser is in the trunk now, so if you could rework your >> patch based on that, that'd be nice. The function to use is >> `iso8601-parse'. [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36252 Cc: 36252@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > Lars Ingebrigtsen writes: > >> The iso8601 parser is in the trunk now, so if you could rework your >> patch based on that, that'd be nice. The function to use is >> `iso8601-parse'. > > Ryan, did you look into redoing this functionality with `iso8601-parse'? This was five weeks ago, and there was no response, so I'm closing this bug report. If progress can be made here, please respond to the debbugs mail address, and we'll reopen the bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 14 11:02:28 2020 Received: (at control) by debbugs.gnu.org; 14 Sep 2020 15:02:28 +0000 Received: from localhost ([127.0.0.1]:55806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHpzv-000274-Tg for submit@debbugs.gnu.org; Mon, 14 Sep 2020 11:02:28 -0400 Received: from quimby.gnus.org ([95.216.78.240]:60296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHpzu-00021I-2g for control@debbugs.gnu.org; Mon, 14 Sep 2020 11:02:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=yQPDMeqgPTF/d68WEl+1f0AYo9PiIazM8b65PhA77tk=; b=GbpDojkCsh4TCOhlrqWdWAlSjA 9RpInXXV/AxfLq8pvunoTdep9OBUuanrthG+D1AVGtibW6KwJzO/PI6UoxJHTri5VGw54REjcpVS3 swy/EKw3wVqKa9CEKXTzLXRCSrvDSuIbCKO0zfqWbhzH9ADix2PTBYCK95Mlzf+ZA37g=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kHpzm-0002n1-70 for control@debbugs.gnu.org; Mon, 14 Sep 2020 17:02:20 +0200 Date: Mon, 14 Sep 2020 17:02:17 +0200 Message-Id: <87o8m8766e.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #36252 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 36252 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 36252 quit From unknown Fri Aug 15 03:37:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 13 Oct 2020 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 29 04:07:12 2020 Received: (at control) by debbugs.gnu.org; 29 Nov 2020 09:07:12 +0000 Received: from localhost ([127.0.0.1]:49679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjIfl-0003Cl-LM for submit@debbugs.gnu.org; Sun, 29 Nov 2020 04:07:12 -0500 Received: from tocharian.pniedzielski.net ([138.197.203.133]:40388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjD76-0000Wj-Id for control@debbugs.gnu.org; Sat, 28 Nov 2020 22:11:00 -0500 Received: from localhost (c-71-233-244-237.hsd1.ma.comcast.net [71.233.244.237]) by tocharian.pniedzielski.net (Postfix) with ESMTPSA id CF7AA2052D for ; Sun, 29 Nov 2020 02:53:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pniedzielski.net; s=2019; t=1606618405; bh=9lp2BjI/J476GSCc70llgvpITQYh36FPguLJfG1dqZc=; h=From:To:Subject:Date:From; b=oOL/aJBVtEGfvr6PSfAn7EdZiRpAUdbwNPi8hZZUSItnGuyvRj9mcmR32fdmTLcH1 JqkUiuFu4fkD0il37F0ho7SGytgJIMHCC/Omydk7DDesLZMGslGdrfWx8Bd4Lx5URL nQpf1PSFuiVuJ4XZkusAEcmwxLbl8NXu+iaZUPp06bUzW6TN568VqY/jffzWo4aatL 3YLEZStAOtciUec73STpcGDInofbbQ2GnNUMqZnjhkkeuhA5YS+qbTa6fFEe6sf6Y1 ZnZv5vz6a0Ts0nZov5EpHamSFKFVXSAOzP1DHhBv0+S0yJx4q6RZbCJOg0hM0uDxH3 ylZOozg0bIiqw== From: "Patrick M. Niedzielski" To: control@debbugs.gnu.org Subject: Unarchive bug "bibtex-generate-autokey does not use use date field" Date: Sun, 29 Nov 2020 02:53:19 +0000 Message-ID: <87a6v0j2lc.fsf@pniedzielski.net> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-Mailman-Approved-At: Sun, 29 Nov 2020 04:07:08 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) unarchive 36252 thank you From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 05 13:33:51 2020 Received: (at 36252) by debbugs.gnu.org; 5 Dec 2020 18:33:51 +0000 Received: from localhost ([127.0.0.1]:48226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klcNS-0000q9-Ig for submit@debbugs.gnu.org; Sat, 05 Dec 2020 13:33:50 -0500 Received: from tocharian.pniedzielski.net ([138.197.203.133]:40680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klTkY-0007m0-Ai for 36252@debbugs.gnu.org; Sat, 05 Dec 2020 04:21:09 -0500 Received: from localhost (c-71-233-244-237.hsd1.ma.comcast.net [71.233.244.237]) by tocharian.pniedzielski.net (Postfix) with ESMTPSA id 4F9F02365D; Sat, 5 Dec 2020 09:21:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pniedzielski.net; s=2019; t=1607160060; bh=elN6g8f5xI/DV88MvOdLQ9czYE8lY7x8ociS28PyLqs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=k/YiSHpJmCW+H0r4hcCq9bvmCAXgc2lAKGZzFeprNH/DEDeh1pJ7Nn+DUm7nexjgx npU3KBSigc9HTYpccM6TTmZUfC3Y3oiuLfOcvegZ8RuZnsKqPCl3l7gRDgOBWSeSom wnThSQ4vadAiNQX/a3eirT4s2wzu7VhqKsJUkMDoYV/0vIx/EC/0Wjv8TBOsoAcmgB pjF1PYMuHORjnWoNgNPKT2qbDHJ15EM5u8I38rYDySBdKCMgF2o+o8zH/Gc7g50Iu8 d1adzxNh4BAQFs5x5m3tUpXkYqhS+eFwUy29Kv5Lx/ZeU+KAygo8lzt/9vSiHueMCu cHr1AUAY0Os4A== From: Patrick M. Niedzielski To: Lars Ingebrigtsen , Ryan Kavanagh Subject: Re: bug#36252: 26.1; bibtex-generate-autokey does not use use date field In-Reply-To: <87pn6o766s.fsf@gnus.org> References: <20190616202330.immdadcg24qedysq@zeta.rak.ac> <871rz3dxfw.fsf@mouse.gnus.org> <20190715003421.qrb65bynacpxca2k@zeta.rak.ac> <87k1a8q7ld.fsf@gnus.org> <87sgcu7oja.fsf@gnus.org> <87pn6o766s.fsf@gnus.org> Date: Sat, 05 Dec 2020 09:20:52 +0000 Message-ID: <87im9gpq17.fsf@pniedzielski.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36252 X-Mailman-Approved-At: Sat, 05 Dec 2020 13:33:49 -0500 Cc: 36252@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Lars Ingebrigtsen skribis: > Lars Ingebrigtsen writes:=20 >=20 > This was five weeks ago, and there was no response, so I'm=20 > closing this bug report. If progress can be made here, please=20 > respond to the debbugs mail address, and we'll reopen the bug=20 > report.=20 I=E2=80=99d like to reopen this bug, and submit the attached patch which I= =20 believe fixes the issue. This patch teaches=20 =E2=80=98bibtex-generate-autokey=E2=80=99 to prefer an ISO8601-formatted = =E2=80=98date=E2=80=99=20 field when present, and fall back to a =E2=80=98year=E2=80=99, and is imple= mented=20 using Lars=E2=80=99 ISO8601 parsing functions. Just some implementation notes: I don=E2=80=99t believe Ryan=E2=80=99s orig= inal=20 patch works as documented when =E2=80=98bibtex-autokey-use-crossref=E2=80= =99 is=20 non-nil. In this case, his patch would seem to prefer a=20 crossref=E2=80=99d entry=E2=80=99s =E2=80=98year=E2=80=99 field to a local = entry=E2=80=99s =E2=80=98date=E2=80=99 field.=20 More concretely, with the following BibLaTeX, @misc{doe1995some, title =3D {Some work}, author =3D {John Doe}, year =3D {1995}, date =3D {1995-01-01}, }=20 @misc{, title =3D {Another work}, author =3D {Anon Y. Mous}, date =3D {1990-03-12}, crossref =3D {entry1}, } When generating a key for entry2, the original patch would prefer=20 using the year 1995 to the year 1990, which is unintuitive. The=20 attached patch implements a different behavior instead, in which=20 an entry=E2=80=99s own =E2=80=98year/date=E2=80=99 field are prefered to th= e crossref=E2=80=99d=20 entry=E2=80=99s =E2=80=98year/date=E2=80=99 field. In the above case,=20 =E2=80=98bibtex-generate-autokey=E2=80=99 will generate a entry key with th= e year=20 1990 rather than 1995. Additionally, we prefer to use the =E2=80=98date=E2=80=99 field when presen= t over=20 the =E2=80=98year=E2=80=99 field. This behavior is probably more correct, s= ince=20 BibLaTeX deprecated the =E2=80=98year=E2=80=99 field in favor of its own = =E2=80=98date=E2=80=99=20 field, which only should occur in BibLaTeX-flavor files. Note that=20 this is a breaking change from the prior behavior, but only when=20 an entry has incompatible =E2=80=98date=E2=80=99 and =E2=80=98year=E2=80=99= fields. If a file is=20 meant to support both BibTeX and BibLaTeX, the =E2=80=98date=E2=80=99 and = =E2=80=98year=E2=80=99=20 fields should contain the same information. The attached patch implements the above behavior. Best, Patrick --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Prefer-date-field-to-year-field-in-BibTex-entry.patch >From 26cb162d42e7fd234506a5f847fbfb73adb68105 Mon Sep 17 00:00:00 2001 From: "Patrick M. Niedzielski" Date: Sun, 29 Nov 2020 02:09:47 +0000 Subject: [PATCH] Prefer date field to year field in BibTex entry The bibtex.el package contains functionality to automatically generate a key for a BibTeX entry using author/editor, year, and title information in the entry. The BibLaTeX dialect has deprecated the 'year' field (and 'month') in favor of an ISO8601-formatted 'date' field. This patch teaches the 'bibtex-generate-autokey' function to prefer a 'date' field when present, and fall back to a 'year' field for bibtex compatibility. --- lisp/textmodes/bibtex.el | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el index c9e21e58f6..fe468d261d 100644 --- a/lisp/textmodes/bibtex.el +++ b/lisp/textmodes/bibtex.el @@ -2751,10 +2751,16 @@ and `bibtex-autokey-names-stretch'." (bibtex-autokey-abbrev name bibtex-autokey-name-length)))) (defun bibtex-autokey-get-year () - "Return year field contents as a string obeying `bibtex-autokey-year-length'." - (let ((yearfield (bibtex-autokey-get-field "year"))) - (substring yearfield (max 0 (- (length yearfield) - bibtex-autokey-year-length))))) + "If date field exists, return year component of the ISO8601-formatted +date field contents as a string obeying `bibtex-autokey-year-length'. +Otherwise, return year field contents as a string obeying +`bibtex-autokey-year-length'." + (let* ((yearfield (bibtex-autokey-get-field "year\\|date")) + (dateyear (if (iso8601-valid-p yearfield) + (decoded-time-year (iso8601-parse yearfield)) + nil)) + (year (if dateyear (number-to-string dateyear) ""))) + (substring year (max 0 (- (length year) bibtex-autokey-year-length))))) (defun bibtex-autokey-get-title () "Get title field contents up to a terminator. @@ -2837,12 +2843,16 @@ The name part: The year part: 1. Build the year part of the key by truncating the content of the year - field to the rightmost `bibtex-autokey-year-length' digits (useful - values are 2 and 4). - 2. If the year field (or any other field required to generate the key) - is absent, but the entry has a valid crossref field and - `bibtex-autokey-use-crossref' is non-nil, use the field of the - crossreferenced entry instead. + component of the ISO8601-formatted date field to the rightmost + `bibtex-autokey-year-length' digits (useful values are 2 and 4). + 2. If the date field is absent, but the entry has a year field, build the + year part of the key by truncating the year field to the rightmost + `bibtex-autokey-year-length' digits. + 3. If both the year field and the date field (or any other field + required to generate the key) are absent, but the entry has a + valid crossref field and `bibtex-autokey-use-crossref' is + non-nil, use the date or year field of the crossreferenced entry + instead. The title part 1. Change the content of the title field according to -- 2.29.2 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 06 04:25:53 2020 Received: (at submit) by debbugs.gnu.org; 6 Dec 2020 09:25:53 +0000 Received: from localhost ([127.0.0.1]:48901 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klqIj-0007to-3X for submit@debbugs.gnu.org; Sun, 06 Dec 2020 04:25:53 -0500 Received: from lists.gnu.org ([209.51.188.17]:54770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klqIg-0007tg-Pa for submit@debbugs.gnu.org; Sun, 06 Dec 2020 04:25:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44276) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klqIg-0004Dl-Fp for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 04:25:50 -0500 Received: from static.214.254.202.116.clients.your-server.de ([116.202.254.214]:55118 helo=ciao.gmane.io) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klqIe-0001jY-PJ for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 04:25:50 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1klqIb-000999-Jr for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 10:25:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Colin Baxter Subject: Re: bug#36252: 26.1; bibtex-generate-autokey does not use use date field Date: Sun, 06 Dec 2020 09:25:38 +0000 Message-ID: <874kkzl20d.fsf@yandex.com> References: <20190616202330.immdadcg24qedysq@zeta.rak.ac> <871rz3dxfw.fsf@mouse.gnus.org> <20190715003421.qrb65bynacpxca2k@zeta.rak.ac> <87k1a8q7ld.fsf@gnus.org> <87sgcu7oja.fsf@gnus.org> <87pn6o766s.fsf@gnus.org> <87im9gpq17.fsf@pniedzielski.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:ChTj5MTyTZgmAB4G49npEZr9a1U= X-Face: BHjiJOg/Qmj'BQgsAKL@])L)e62P)C"Y=6T Face: iVBORw0KGgoAAAANSUhEUgAAAGQAAAAeBAMAAAAodabAAAAAB3RJTUUH1wQdAAY04/L8hgAA AAlwSFlzAAAewQAAHsEBw2lUUwAAAARnQU1BAACxjwv8YQUAAAASUExURc7OzpwAAAAAAP////8A AGNj/2aqqTQAAAA8SURBVHjaYzA2NnEBAmdj01D8wNgYpM7F2JiBgYFREAgEGJiU8AMGBpA6QaCG UVtGbRm1ZdSWUVsGjS0Aq20lJnMawnkAAAAASUVORK5CYII= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.9 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.9 (-) Hello, >>>>> Patrick M Niedzielski writes: > Lars Ingebrigtsen skribis: >> Lars Ingebrigtsen writes: This was five weeks >> ago, and there was no response, so I'm closing this bug report. >> If progress can be made here, please respond to the debbugs mail >> address, and we'll reopen the bug report. > I’d like to reopen this bug, and submit the attached patch which I > believe fixes the issue. This patch teaches > ‘bibtex-generate-autokey’ to prefer an ISO8601-formatted ‘date’ > field when present, and fall back to a ‘year’, and is implemented > using Lars’ ISO8601 parsing functions. > Just some implementation notes: I don’t believe Ryan’s original > patch works as documented when ‘bibtex-autokey-use-crossref’ is > non-nil. In this case, his patch would seem to prefer a > crossref’d entry’s ‘year’ field to a local entry’s ‘date’ > field. More concretely, with the following BibLaTeX, > @misc{doe1995some, title = {Some work}, author = {John Doe}, year > = {1995}, date = {1995-01-01}, } @misc{, title = {Another work}, > author = {Anon Y. Mous}, date = {1990-03-12}, crossref = {entry1}, > } > When generating a key for entry2, the original patch would prefer > using the year 1995 to the year 1990, which is unintuitive. The > attached patch implements a different behavior instead, in which > an entry’s own ‘year/date’ field are prefered to the crossref’d > entry’s ‘year/date’ field. In the above case, > ‘bibtex-generate-autokey’ will generate a entry key with the year > 1990 rather than 1995. > Additionally, we prefer to use the ‘date’ field when present over > the ‘year’ field. This behavior is probably more correct, since > BibLaTeX deprecated the ‘year’ field in favor of its own ‘date’ > field, which only should occur in BibLaTeX-flavor files. Note that > this is a breaking change from the prior behavior, but only when > an entry has incompatible ‘date’ and ‘year’ fields. If a file is > meant to support both BibTeX and BibLaTeX, the ‘date’ and ‘year’ > fields should contain the same information. I am a heavy user of bibtex, but I am puzzled over the 'date' field. Publications have a 'year' ok, sometimes a 'month', but never have I seen a 'day'. So how would a user enter (YYYY-MM-DD)? Is it perhaps the date of entry of the record in to the file? Sorry to butt in, but I am curious. Best wishes, Colin Baxter. From unknown Fri Aug 15 03:37:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: Did not alter fixed versions and reopened. Date: Sun, 06 Dec 2020 13:18:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # Did not alter fixed versions and reopened. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 06 08:19:41 2020 Received: (at 36252) by debbugs.gnu.org; 6 Dec 2020 13:19:41 +0000 Received: from localhost ([127.0.0.1]:49170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kltwy-0007Mo-Sk for submit@debbugs.gnu.org; Sun, 06 Dec 2020 08:19:41 -0500 Received: from quimby.gnus.org ([95.216.78.240]:52556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kltww-0007Mc-OY for 36252@debbugs.gnu.org; Sun, 06 Dec 2020 08:19:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=d1b/wwRWxeyX4ey+a23+m+OHO/2paSgbzYox1y7jO7A=; b=HlSvXI7fTNT/YzrruPMpK/rTvx 5UUe/8TFh+jvnNyXgZmjzzuOfYXo1vjFUUjvI1pRAl8JcMU2auchhLW9nrVASQIbgJChwathJWh4a wF9UyKXIBAaIW6X9aGGzoT+LvpB2bpc5jo3nbMIknVyHQvhoZTao2KzzQMNIcZ5moN18=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kltwk-0004Ud-Tc; Sun, 06 Dec 2020 14:19:32 +0100 From: Lars Ingebrigtsen To: Patrick M. Niedzielski Subject: Re: bug#36252: 26.1; bibtex-generate-autokey does not use use date field References: <20190616202330.immdadcg24qedysq@zeta.rak.ac> <871rz3dxfw.fsf@mouse.gnus.org> <20190715003421.qrb65bynacpxca2k@zeta.rak.ac> <87k1a8q7ld.fsf@gnus.org> <87sgcu7oja.fsf@gnus.org> <87pn6o766s.fsf@gnus.org> <87im9gpq17.fsf@pniedzielski.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEUOCQktDAtcEA/h HBTXRzjai3brvK7///9zpNO7AAAAAWJLR0QHFmGI6wAAAAd0SU1FB+QMBg0JMF5ZWV8AAAGvSURB VDjLjZNhktMwDIXdlgN0CQcIDQfYRsp/qOQegLV8AUjufwSelGyYZFsGTaZ29VnSs2ynlNKhIyYi xceUBdP+8AJ/OjJpGLGI3hyksI6EJdfCQgUzfgcHClMTFVbSDn/ODk75zT2cC5tqsW+gbWQys5Jt sJxtvE/ZrMp3zzQEyIOPVif/lR+eiUMQJCGP1umtRw0HHStSlFivANIvejnnglx8LwYBdaQrAIdY ZMCumSBXAVrXu+zicnn5jKFoycWBytn3TSEbI3atQm3DAY5LLR/Fu3nGzMEaMncGnfXYc/ob0s0A JcQiIpa2K3AVPAMPQT+XVMHXAyG6fZGFoDVzQITwWFa3apsWa2iwCODi4JZWu3z66e5cp60fBjE8 wcpaIL3XwXKY6uvGH2Xgl47aLegi1YhK1y2Af5jqb9ytfuPHseD0pl84sn5Xm2qFWBuFdgAV7iPj MmyrnwCq2jDtQYNuGJf8IQJPRI0UAoRed2Ao3q2PIF4V7phsd7icK8gzsO/Jv8HXZ+DaPQCCJ903 DwFu0/EBwPN4CNArgMMjEBez+39wnEHzDJxW8AeobKeu9nzLPgAAACV0RVh0ZGF0ZTpjcmVhdGUA MjAyMC0xMi0wNlQxMzowOTo0NyswMDowMNPjpKcAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjAtMTIt MDZUMTM6MDk6NDcrMDA6MDCivhwbAAAAAElFTkSuQmCC X-Now-Playing: Joan as Police Woman's _Cover Two_: "Under Control" Date: Sun, 06 Dec 2020 14:19:23 +0100 In-Reply-To: <87im9gpq17.fsf@pniedzielski.net> (Patrick M. Niedzielski's message of "Sat, 05 Dec 2020 09:20:52 +0000") Message-ID: <87360jdqck.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Patrick M. Niedzielski writes: > I’d like to reopen this bug, and submit the attached patch which I > believe fixes the issue. OK, reopened. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36252 Cc: Ryan Kavanagh , 36252@debbugs.gnu.org, Roland Winkler X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Patrick M. Niedzielski writes: > I=E2=80=99d like to reopen this bug, and submit the attached patch which I > believe fixes the issue. OK, reopened. > This patch teaches =E2=80=98bibtex-generate-autokey=E2=80=99 to prefer an > ISO8601-formatted =E2=80=98date=E2=80=99 field when present, and fall bac= k to a > =E2=80=98year=E2=80=99, and is implemented using Lars=E2=80=99 ISO8601 pa= rsing functions. Looks reasonable to me. I've added Roland to the Cc's; perhaps he has some comments. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 07 01:19:04 2020 Received: (at 36252) by debbugs.gnu.org; 7 Dec 2020 06:19:04 +0000 Received: from localhost ([127.0.0.1]:52109 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1km9rU-0008DN-32 for submit@debbugs.gnu.org; Mon, 07 Dec 2020 01:19:04 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51214) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1km9rS-0008Ct-HE for 36252@debbugs.gnu.org; Mon, 07 Dec 2020 01:19:03 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49765) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1km9rN-0000XQ-0q; Mon, 07 Dec 2020 01:18:57 -0500 Received: from [2602:30a:2e52:d720:65b7:1416:12e7:8bfb] (port=60794 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1km9rM-0007qR-KZ; Mon, 07 Dec 2020 01:18:56 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <51535.53516.186619.24525@gargle.gargle.HOWL> Date: Mon, 7 Dec 2020 00:18:55 -0600 From: "Roland Winkler" To: Colin Baxter Subject: Re: bug#36252: 26.1; bibtex-generate-autokey does not use use date field In-Reply-To: <874kkzl20d.fsf@yandex.com> References: <20190616202330.immdadcg24qedysq@zeta.rak.ac> <871rz3dxfw.fsf@mouse.gnus.org> <20190715003421.qrb65bynacpxca2k@zeta.rak.ac> <87k1a8q7ld.fsf@gnus.org> <87sgcu7oja.fsf@gnus.org> <87pn6o766s.fsf@gnus.org> <87im9gpq17.fsf@pniedzielski.net> <874kkzl20d.fsf@yandex.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36252 Cc: 36252@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On Sun Dec 6 2020 Colin Baxter wrote: > I am a heavy user of bibtex, but I am puzzled over the 'date' > field. Publications have a 'year' ok, sometimes a 'month', but never > have I seen a 'day'. So how would a user enter (YYYY-MM-DD)? Is it > perhaps the date of entry of the record in to the file? Sorry to butt > in, but I am curious. ISO8601 permits dates like YYYY, YYYY-MM, and YYYY-MM-DD. I agree, the last format is likely rare in the context of citations. This smells to me as if internally biblatex relies on a canned library handling iso8601 formats. From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 07 01:21:03 2020 Received: (at 36252) by debbugs.gnu.org; 7 Dec 2020 06:21:03 +0000 Received: from localhost ([127.0.0.1]:52113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1km9tP-0008Gr-Gv for submit@debbugs.gnu.org; Mon, 07 Dec 2020 01:21:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51408) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1km9tN-0008G0-VQ for 36252@debbugs.gnu.org; Mon, 07 Dec 2020 01:21:02 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49779) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1km9tI-0001VA-By; Mon, 07 Dec 2020 01:20:56 -0500 Received: from [2602:30a:2e52:d720:65b7:1416:12e7:8bfb] (port=60796 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1km9tH-0007zN-M5; Mon, 07 Dec 2020 01:20:55 -0500 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="LFrTWMSj+C" Content-Transfer-Encoding: 7bit Message-ID: <51654.98578.572978.24525@gargle.gargle.HOWL> Date: Mon, 7 Dec 2020 00:20:54 -0600 From: "Roland Winkler" To: Lars Ingebrigtsen Subject: Re: bug#36252: 26.1; bibtex-generate-autokey does not use use date field In-Reply-To: <87360jdqck.fsf@gnus.org> References: <20190616202330.immdadcg24qedysq@zeta.rak.ac> <871rz3dxfw.fsf@mouse.gnus.org> <20190715003421.qrb65bynacpxca2k@zeta.rak.ac> <87k1a8q7ld.fsf@gnus.org> <87sgcu7oja.fsf@gnus.org> <87pn6o766s.fsf@gnus.org> <87im9gpq17.fsf@pniedzielski.net> <87360jdqck.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36252 Cc: "Patrick M. Niedzielski" , Ryan Kavanagh , 36252@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --LFrTWMSj+C Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit On Sun Dec 6 2020 Lars Ingebrigtsen wrote: > Looks reasonable to me. I've added Roland to the Cc's; perhaps he > has some comments. [Thank you Lars, I haven't subscribed to the bug-gnu-emacs mailing list. Lately bug reports for bibtex.el seem to be popular. Can you please drop me a note if you see more bug reports for bibtex.el? Thanks!] A few days ago I installed in master a related patch that I had lying around for some time. I believe it addresses the question of searching the date and year field in a cleaner way by passing a list of field names to bibtex-text-in-field. But I didn't know the new iso8601 library. So that's the main purpose of the new patch attached below. (This patch is against the current version of bibtex.el in master.) Out of curiosity, I also checked Oren Patashnik's old documentation of the BibTeX year field. It says that "standard styles can handle any year whose last four nonpunctuation characters are numerals, such as '(about 1984)'." This must be very rare. But now this should be handled correctly, too. (I only use old-fashioned BibTeX. But I believe biblatex promises backward compatibility for the BibTeX year field.) Regarding the docstring of bibtex-generate-autokey: I am not sure this is the right place to elaborate on iso8601. bibtex.el assumes throughout that users are familiar with valid values for different fields. --LFrTWMSj+C Content-Type: application/octet-stream; name="bibtex-2.patch" Content-Disposition: attachment; filename="bibtex-2.patch" Content-Transfer-Encoding: base64 ZGlmZiAtdSBiaWJ0ZXguZWx+IGJpYnRleC5lbAotLS0gYmlidGV4LmVsfgkyMDIwLTEyLTA0IDEz OjU4OjMwLjQyMjAzNzgwOSAtMDYwMAorKysgYmlidGV4LmVsCTIwMjAtMTItMDYgMjM6MzE6MTQu NTE5MjQwNDY3IC0wNjAwCkBAIC00MCw2ICs0MCw4IEBACiAKIDs7OyBDb2RlOgogCisocmVxdWly ZSAnaXNvODYwMSkKKwogDAogOzsgVXNlciBPcHRpb25zOgogCkBAIC0yNzYxLDEyICsyNzYzLDE2 IEBACiAKIChkZWZ1biBiaWJ0ZXgtYXV0b2tleS1nZXQteWVhciAoKQogICAiUmV0dXJuIHllYXIg ZmllbGQgY29udGVudHMgYXMgYSBzdHJpbmcgb2JleWluZyBgYmlidGV4LWF1dG9rZXkteWVhci1s ZW5ndGgnLiIKLSAgKGxldCAoKHllYXJmaWVsZCAoYmlidGV4LWF1dG9rZXktZ2V0LWZpZWxkICco InllYXIiICJkYXRlIikpKSkKLSAgICA7OyBiaWJsYXRleCBkYXRlIGZpZWxkIGhhcyBmb3JtYXQg eXl5eS1tbS1kZAotICAgIChpZiAoPCA0IChsZW5ndGggeWVhcmZpZWxkKSkKLSAgICAgICAgKHNl dHEgeWVhcmZpZWxkIChzdWJzdHJpbmcgeWVhcmZpZWxkIDAgNCkpKQotICAgIChzdWJzdHJpbmcg eWVhcmZpZWxkIChtYXggMCAoLSAobGVuZ3RoIHllYXJmaWVsZCkKLSAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgYmlidGV4LWF1dG9rZXkteWVhci1sZW5ndGgpKSkpKQorICAobGV0 KiAoKHN0ciAoYmlidGV4LWF1dG9rZXktZ2V0LWZpZWxkICcoImRhdGUiICJ5ZWFyIikpKSA7IHBv c3NpYmx5ICIiCisgICAgICAgICAoeWVhciAob3IgKGFuZCAoaXNvODYwMS12YWxpZC1wIHN0cikK KyAgICAgICAgICAgICAgICAgICAgICAgIChsZXQgKCh5ZWFyIChkZWNvZGVkLXRpbWUteWVhciAo aXNvODYwMS1wYXJzZSBzdHIpKSkpCisgICAgICAgICAgICAgICAgICAgICAgICAgIChhbmQgeWVh ciAobnVtYmVyLXRvLXN0cmluZyB5ZWFyKSkpKQorICAgICAgICAgICAgICAgICAgIDs7IEJpYlRl WCBwZXJtaXRzIGEgeWVhciBmaWVsZCAiKGFib3V0IDE5ODQpIiwgd2hlcmUgb25seQorICAgICAg ICAgICAgICAgICAgIDs7IHRoZSBsYXN0IGZvdXIgbm9ucHVuY3R1YXRpb24gY2hhcmFjdGVycyBt dXN0IGJlIG51bWVyYWxzLgorICAgICAgICAgICAgICAgICAgIChhbmQgKHN0cmluZy1tYXRjaCAi XFwoWzAtOV1bMC05XVswLTldWzAtOV1cXClbXls6YWxudW06XV0qXFwnIiBzdHIpCisgICAgICAg ICAgICAgICAgICAgICAgICAobWF0Y2gtc3RyaW5nIDEgc3RyKSkKKyAgICAgICAgICAgICAgICAg ICAodXNlci1lcnJvciAiWWVhciBvciBkYXRlIGZpZWxkIGAlcycgaW52YWxpZCIgc3RyKSkpKQor ICAgIChzdWJzdHJpbmcgeWVhciAobWF4IDAgKC0gKGxlbmd0aCB5ZWFyKSBiaWJ0ZXgtYXV0b2tl eS15ZWFyLWxlbmd0aCkpKSkpCiAKIChkZWZ1biBiaWJ0ZXgtYXV0b2tleS1nZXQtdGl0bGUgKCkK ICAgIkdldCB0aXRsZSBmaWVsZCBjb250ZW50cyB1cCB0byBhIHRlcm1pbmF0b3IuCkBAIC0yODQ5 LDEyICsyODU1LDEyIEBACiAKIFRoZSB5ZWFyIHBhcnQ6CiAgMS4gQnVpbGQgdGhlIHllYXIgcGFy dCBvZiB0aGUga2V5IGJ5IHRydW5jYXRpbmcgdGhlIGNvbnRlbnQgb2YgdGhlIHllYXIKLSAgICBm aWVsZCB0byB0aGUgcmlnaHRtb3N0IGBiaWJ0ZXgtYXV0b2tleS15ZWFyLWxlbmd0aCcgZGlnaXRz ICh1c2VmdWwKLSAgICB2YWx1ZXMgYXJlIDIgYW5kIDQpLgotIDIuIElmIHRoZSB5ZWFyIGZpZWxk IChvciBhbnkgb3RoZXIgZmllbGQgcmVxdWlyZWQgdG8gZ2VuZXJhdGUgdGhlIGtleSkKLSAgICBp cyBhYnNlbnQsIGJ1dCB0aGUgZW50cnkgaGFzIGEgdmFsaWQgY3Jvc3NyZWYgZmllbGQgYW5kCi0g ICAgYGJpYnRleC1hdXRva2V5LXVzZS1jcm9zc3JlZicgaXMgbm9uLW5pbCwgdXNlIHRoZSBmaWVs ZCBvZiB0aGUKLSAgICBjcm9zc3JlZmVyZW5jZWQgZW50cnkgaW5zdGVhZC4KKyAgICBjb21wb25l bnQgb2YgdGhlIGRhdGUgb3IgeWVhciBmaWVsZCB0byB0aGUgcmlnaHRtb3N0CisgICAgYGJpYnRl eC1hdXRva2V5LXllYXItbGVuZ3RoJyBkaWdpdHMgKHVzZWZ1bCB2YWx1ZXMgYXJlIDIgYW5kIDQp LgorIDIuIElmIGJvdGggdGhlIHllYXIgYW5kIGRhdGUgZmllbGRzIGFyZSBhYnNlbnQsIGJ1dCB0 aGUgZW50cnkgaGFzIGEKKyAgICB2YWxpZCBjcm9zc3JlZiBmaWVsZCBhbmQgYGJpYnRleC1hdXRv a2V5LXVzZS1jcm9zc3JlZicgaXMKKyAgICBub24tbmlsLCB1c2UgdGhlIGRhdGUgb3IgeWVhciBm aWVsZCBvZiB0aGUgY3Jvc3NyZWZlcmVuY2VkIGVudHJ5CisgICAgaW5zdGVhZC4KIAogVGhlIHRp dGxlIHBhcnQKICAxLiBDaGFuZ2UgdGhlIGNvbnRlbnQgb2YgdGhlIHRpdGxlIGZpZWxkIGFjY29y ZGluZyB0bwo= --LFrTWMSj+C-- From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 07 10:14:56 2020 Received: (at 36252) by debbugs.gnu.org; 7 Dec 2020 15:14:56 +0000 Received: from localhost ([127.0.0.1]:54892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmIE3-0003WS-Gu for submit@debbugs.gnu.org; Mon, 07 Dec 2020 10:14:55 -0500 Received: from quimby.gnus.org ([95.216.78.240]:38142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmIE0-0003WE-WE for 36252@debbugs.gnu.org; Mon, 07 Dec 2020 10:14:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=b7manRsY6hjqJi9Z6UoKv+QQ/gX/MfdU1oKNokE1qR8=; b=dUwUr2cZEH5thex46DoEX7hnns Ppf1QU64Z2tCN1SaqqWHUs6jqZ3q1kQdRQm99v/RbN+oE4DRkDd8l8DNNJkPMmW4pOaBD4T9vuGUn Sah8rf3IPsgtKtiGwkaZ0O874YLmsfDbzATqv+PE37eoaNlIuOv9HhcAgHZW4PV2Kv6Q=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kmIDs-0006o1-Mh; Mon, 07 Dec 2020 16:14:47 +0100 From: Lars Ingebrigtsen To: "Roland Winkler" Subject: Re: bug#36252: 26.1; bibtex-generate-autokey does not use use date field References: <20190616202330.immdadcg24qedysq@zeta.rak.ac> <871rz3dxfw.fsf@mouse.gnus.org> <20190715003421.qrb65bynacpxca2k@zeta.rak.ac> <87k1a8q7ld.fsf@gnus.org> <87sgcu7oja.fsf@gnus.org> <87pn6o766s.fsf@gnus.org> <87im9gpq17.fsf@pniedzielski.net> <87360jdqck.fsf@gnus.org> <51654.98578.572978.24525@gargle.gargle.HOWL> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEWxiF2YckxJQiaI Yjv///9BI6RqAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+QMBw4vJD2n1zoAAAGmSURBVDjLfZQBcsQg CEW1uQDICSIXELn/3fpBk8222zKzM5onCB/cUpiZuGwjrpxWCvdlUz1s7zrdoHfvrvMNxDFfDj5z E6D2rj1+imjqc14AHvzLZnq8At/2L+AbTJWPwJmrX2fmKHwucAoxW9ugjdvDcN64/QqlDpVE1i36 Bgz5o0CFMoiYocSdxzR3m6ekstujYlnxuaBiS/U3iCUyHQGcYtcWkIgvUwwKpsTWJoDm5e5aR/QJ +ndtbWWl8eEsxaJrbuLtSjf89SAXiJGhnlqp1Gx5hnpTl2Tu1Q8wxD8DK/IJqJMJL58EsupAiURr DgLMy+OsoV3Z5BGKsMBgBJAnCB2hcYwy0dx3BDgL+QhZDzi1h8dZKRtRxQ97goEuVIDoJWcMW7Ij JYr3c6AUDATSteVRx4EVKAHkF76BlJhEcbENcqir4Rmas8eo8MTlHOnihVglOkRscI1xbCtUV45p q0hWoD3A3B4n+6gJGQ23pjfAaOBkFoFLvi4PJIJZR1RUkn8AttJFWtdji6HCcWzDY5u+vcIHWE/s Bbh/NC78h/0JvgH7fYPLB098OgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMC0xMi0wN1QxNDo0Nzoz NiswMDowMAJacvIAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjAtMTItMDdUMTQ6NDc6MzYrMDA6MDBz B8pOAAAAAElFTkSuQmCC X-Now-Playing: Shirley Collins's _Heart's Ease_: "Sweet Greens And Blues" Date: Mon, 07 Dec 2020 16:14:43 +0100 In-Reply-To: <51654.98578.572978.24525@gargle.gargle.HOWL> (Roland Winkler's message of "Mon, 7 Dec 2020 00:20:54 -0600") Message-ID: <87tusxhcm4.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: "Roland Winkler" writes: > On Sun Dec 6 2020 Lars Ingebrigtsen wrote: >> Looks reasonable to me. I've added Roland to the Cc's; perhaps he >> has some comments. > > [Thank you Lars, I haven't subscribed to the bug-gnu-emacs m [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36252 Cc: "Patrick M. Niedzielski" , Ryan Kavanagh , 36252@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "Roland Winkler" writes: > On Sun Dec 6 2020 Lars Ingebrigtsen wrote: >> Looks reasonable to me. I've added Roland to the Cc's; perhaps he >> has some comments. > > [Thank you Lars, I haven't subscribed to the bug-gnu-emacs mailing > list. Lately bug reports for bibtex.el seem to be popular. Can you > please drop me a note if you see more bug reports for bibtex.el? > Thanks!] Sure; I'm just slowly working my way through old bug reports, which is why you're seeing more of these now. :-) I'll keep Cc-ing you on the bibtex stuff. > A few days ago I installed in master a related patch that I had > lying around for some time. I believe it addresses the question of > searching the date and year field in a cleaner way by passing a list > of field names to bibtex-text-in-field. But I didn't know the new > iso8601 library. So that's the main purpose of the new patch > attached below. (This patch is against the current version of > bibtex.el in master.) Looks good to me. > Regarding the docstring of bibtex-generate-autokey: I am not sure > this is the right place to elaborate on iso8601. bibtex.el assumes > throughout that users are familiar with valid values for different > fields. Yup. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 11 10:04:34 2020 Received: (at 36252-done) by debbugs.gnu.org; 11 Dec 2020 15:04:34 +0000 Received: from localhost ([127.0.0.1]:42541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knjyE-0007Tt-6Q for submit@debbugs.gnu.org; Fri, 11 Dec 2020 10:04:34 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knjyB-0007Td-EF for 36252-done@debbugs.gnu.org; Fri, 11 Dec 2020 10:04:32 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47419) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knjy5-000730-Vg; Fri, 11 Dec 2020 10:04:25 -0500 Received: from [2602:30a:2e52:d720:65b7:1416:12e7:8bfb] (port=41338 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1knjy5-00042D-Go; Fri, 11 Dec 2020 10:04:25 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <35448.33476.514731.24531@gargle.gargle.HOWL> Date: Fri, 11 Dec 2020 09:04:24 -0600 From: "Roland Winkler" To: Lars Ingebrigtsen , Patrick M. Niedzielski , Ryan Kavanagh , 36252-done@debbugs.gnu.org Subject: Re: bug#36252: 26.1; bibtex-generate-autokey does not use use date field In-Reply-To: <51654.98578.572978.24525@gargle.gargle.HOWL> References: <20190616202330.immdadcg24qedysq@zeta.rak.ac> <871rz3dxfw.fsf@mouse.gnus.org> <20190715003421.qrb65bynacpxca2k@zeta.rak.ac> <87k1a8q7ld.fsf@gnus.org> <87sgcu7oja.fsf@gnus.org> <87pn6o766s.fsf@gnus.org> <87im9gpq17.fsf@pniedzielski.net> <87360jdqck.fsf@gnus.org> <51654.98578.572978.24525@gargle.gargle.HOWL> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36252-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On Mon Dec 7 2020 Roland Winkler wrote: > A few days ago I installed in master a related patch that I had > lying around for some time. I believe it addresses the question > of searching the date and year field in a cleaner way by passing a > list of field names to bibtex-text-in-field. But I didn't know > the new iso8601 library. So that's the main purpose of the new > patch attached below. Installed as commit 4a700a2f79d5cca64602b7cad30d6485cfe0e449. Closing. From unknown Fri Aug 15 03:37:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 09 Jan 2021 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator