GNU bug report logs - #64972
bibtex-autokey-get-year does not recognize biblatex date ranges

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Gustavo Barros <gusbrs.2016@HIDDEN>; dated Mon, 31 Jul 2023 12:55:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 64972 <at> debbugs.gnu.org:


Received: (at 64972) by debbugs.gnu.org; 23 Aug 2023 11:30:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 23 07:30:04 2023
Received: from localhost ([127.0.0.1]:33020 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qYm3n-00065L-OY
	for submit <at> debbugs.gnu.org; Wed, 23 Aug 2023 07:30:04 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:41776)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1qYm3m-000639-6w
 for 64972 <at> debbugs.gnu.org; Wed, 23 Aug 2023 07:30:02 -0400
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 <eliz@HIDDEN>)
 id 1qYm3Z-0006YM-01; Wed, 23 Aug 2023 07:29:52 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=jzCoYEbaTMZ7ma1I19i329yuxtnOnyJy+Xk58MvwMhg=; b=iEdxGHe4mKb+0rpbtaP+
 ce8YoohxapmiQPVKWTLiXBnvH0RDKbzx+D/5mWyOW6djnzkfs0xp3uzTsYaj5j8ewIqANYtMpiQyR
 HkZmI46NUatDWkvYoII0fBzWToWiBJTVvPTR0JCxa3cT3veEhjIim8OEQDewhPCxISEA2lzitDnwQ
 vc62k6i7b/zJ7uekp3j6ktup4aSQ/pkdCFx9oh5nROScxKd5+Oyx9XgRiTF0CAUATFLYGDcZVX8PQ
 PItSnF+h6cIKgFq3YzP4hErHPTA1fnOFYy/aizl0SmDy6Y+YrQ1wThz8LXpEPYx8uYv0eEFWhnvVO
 EL7kOfdtF5rAvA==;
Date: Wed, 23 Aug 2023 14:30:07 +0300
Message-Id: <83il96ro74.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Roland Winkler <winkler@HIDDEN>, Paul Eggert <eggert@HIDDEN>
In-Reply-To: <87lee2ty9w.fsf@HIDDEN> (message from Roland Winkler on Tue, 22
 Aug 2023 19:09:31 -0500)
Subject: Re: bug#64972: bibtex-autokey-get-year does not recognize biblatex
 date ranges
References: <CAM9ALR_jAtd+vM6Gvb6Qw0NBBJaF52hPbgXFUqMNSfKrwkmyXg@HIDDEN>
 <837cq9u9e0.fsf@HIDDEN> <87lee2ty9w.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 64972
Cc: gusbrs.2016@HIDDEN, 64972 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Roland Winkler <winkler@HIDDEN>
> Cc: Gustavo Barros <gusbrs.2016@HIDDEN>,  64972 <at> debbugs.gnu.org
> Date: Tue, 22 Aug 2023 19:09:31 -0500
> 
> On Sat, Aug 05 2023, Eli Zaretskii wrote:
> >>       date         = {2020-10/2020-12},
> >> 
> >> Results in user-error "Year or date field ‘2020-10/2020-12’ invalid".
> >> 
> >> The "date" field, however, is valid `biblatex' syntax for a date
> >> range, according to the section "2.3.8 Date and Time Specifications"
> >> of `biblatex's manual.
> >
> > Roland, any comments?
> 
> biblatex permits dates and date ranges according to ISO 8601.
> 
> The problem in bibtex-autokey-get-year arises because iso8601-valid-p
> believes that the string "2020-10/2020-12" is not valid according to
> ISO 8601, though iso8601-parse-interval parses that string correctly.
> 
> So it seems to me that this problem requires, first of all, some changes
> in iso8601.el.  Who is familiar with this code and can possibly make
> suggestions?

I hope Paul (CC'ed) will.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64972; Package emacs. Full text available.

Message received at 64972 <at> debbugs.gnu.org:


Received: (at 64972) by debbugs.gnu.org; 23 Aug 2023 00:09:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 22 20:09:44 2023
Received: from localhost ([127.0.0.1]:60633 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qYbRQ-0007kV-K0
	for submit <at> debbugs.gnu.org; Tue, 22 Aug 2023 20:09:44 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:33118)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <winkler@HIDDEN>) id 1qYbRN-0007kF-PN
 for 64972 <at> debbugs.gnu.org; Tue, 22 Aug 2023 20:09:43 -0400
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 <winkler@HIDDEN>)
 id 1qYbRF-0004cJ-BP; Tue, 22 Aug 2023 20:09:33 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=CZu77S9DP+vUOZ2IslpO1JL/lqvQENjx2usTaiLaXv8=; b=mrOwD3CP7UsrW+BfewWo
 n0DyE5Tql1T4FRgsh80whENr03fJx8xNB8th4d8NywRK0iVtPQaqqu+6fWX3aWM8i34mgcUBm6BXN
 Jocy2/LYlKn33zFnlrFjeyckkauLwLCpqizjFQJDsjbPe+bCaTPepL4TFg4W9H3LSgFcSWPFtAqiW
 ipCqg86DGZOpu5OHG5ekXL7qO8xVNwWgqknoKk69A5WBM5YF4J0Dja9f12BEMP+AI6AKkyE5iU4x7
 xJ+dMzoYlxj0fpwkDqBG7vA+GfSiM7e2wtCsHUXZw+GLL3R8bAt174bKcu/80MC0CS5z8UKaKbYMQ
 nS4YW7+a4D46ww==;
From: Roland Winkler <winkler@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#64972: bibtex-autokey-get-year does not recognize biblatex
 date ranges
In-Reply-To: <837cq9u9e0.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 05 Aug
 2023 12:27:19 +0300")
References: <CAM9ALR_jAtd+vM6Gvb6Qw0NBBJaF52hPbgXFUqMNSfKrwkmyXg@HIDDEN>
 <837cq9u9e0.fsf@HIDDEN>
Date: Tue, 22 Aug 2023 19:09:31 -0500
Message-ID: <87lee2ty9w.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 64972
Cc: Gustavo Barros <gusbrs.2016@HIDDEN>, 64972 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

On Sat, Aug 05 2023, Eli Zaretskii wrote:
>>       date         =3D {2020-10/2020-12},
>>=20
>> Results in user-error "Year or date field =E2=80=982020-10/2020-12=E2=80=
=99 invalid".
>>=20
>> The "date" field, however, is valid `biblatex' syntax for a date
>> range, according to the section "2.3.8 Date and Time Specifications"
>> of `biblatex's manual.
>
> Roland, any comments?

biblatex permits dates and date ranges according to ISO 8601.

The problem in bibtex-autokey-get-year arises because iso8601-valid-p
believes that the string "2020-10/2020-12" is not valid according to
ISO 8601, though iso8601-parse-interval parses that string correctly.

So it seems to me that this problem requires, first of all, some changes
in iso8601.el.  Who is familiar with this code and can possibly make
suggestions?

Roland




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64972; Package emacs. Full text available.

Message received at 64972 <at> debbugs.gnu.org:


Received: (at 64972) by debbugs.gnu.org; 6 Aug 2023 16:09:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 06 12:09:38 2023
Received: from localhost ([127.0.0.1]:59942 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qSgK2-0006Ib-52
	for submit <at> debbugs.gnu.org; Sun, 06 Aug 2023 12:09:38 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:49386)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <winkler@HIDDEN>) id 1qSgJy-0006II-Hs
 for 64972 <at> debbugs.gnu.org; Sun, 06 Aug 2023 12:09:37 -0400
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 <winkler@HIDDEN>)
 id 1qSgJt-0005Ld-A2; Sun, 06 Aug 2023 12:09:29 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=/RUFgSPMBy3wB4tC5FcAkAopLkQaQO4dp21b8Ul0FcY=; b=avAqnGmvQMa5SJQNqvjZ
 PgIhfXTA8b81tPA3Nv7dL8lQ+g2qHwyfPxxrD5TqSipFnG/IerCr1cCrnPIHMezSgzbu6cgA+odSr
 X5/BmByfOkJIhuw6zsBbEDz/ucYU0Drt0gTGMccXQU6QgOEPU4JuJXYtZDd9bJs2E2/h43O7uO07p
 7D69HXmj8oRruXLWTAc4CmN3vfTitXpzxnVQDy4+GVk1i9AaR0hfyCuY9Bdtd07Q4Xr4UgmNY4KK5
 d1OOkvE9sDbbiUpnKD0xxPzHd6IRHyQH+5dpmkBMqm7EG6KBAAxRTK8nDbGSJPKI24KgtgrYsI+np
 yQiJLRnW4L4+Wg==;
From: Roland Winkler <winkler@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#64972: bibtex-autokey-get-year does not recognize biblatex
 date ranges
In-Reply-To: <837cq9u9e0.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 05 Aug
 2023 12:27:19 +0300")
References: <CAM9ALR_jAtd+vM6Gvb6Qw0NBBJaF52hPbgXFUqMNSfKrwkmyXg@HIDDEN>
 <837cq9u9e0.fsf@HIDDEN>
Date: Sun, 06 Aug 2023 11:09:21 -0500
Message-ID: <87sf8w9mq6.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 64972
Cc: Gustavo Barros <gusbrs.2016@HIDDEN>, 64972 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

On Sat, Aug 05 2023, Eli Zaretskii wrote:
>>     @Article{,
>>       author       =3D {Author, J.},
>>       title        =3D {Title},
>>       journaltitle =3D {Journal},
>>       date         =3D {2020-10/2020-12},
>>     }
>>=20
>> Results in user-error "Year or date field =E2=80=982020-10/2020-12=E2=80=
=99 invalid".
>>=20
>> The "date" field, however, is valid `biblatex' syntax for a date
>> range, according to the section "2.3.8 Date and Time Specifications"
>> of `biblatex's manual.
>
> Roland, any comments?

Thanks, I'll look into this!




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64972; Package emacs. Full text available.

Message received at 64972 <at> debbugs.gnu.org:


Received: (at 64972) by debbugs.gnu.org; 5 Aug 2023 09:27:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 05 05:27:12 2023
Received: from localhost ([127.0.0.1]:55658 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qSDZ2-0008WE-Jl
	for submit <at> debbugs.gnu.org; Sat, 05 Aug 2023 05:27:12 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:55782)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1qSDZ0-0008Vx-PY
 for 64972 <at> debbugs.gnu.org; Sat, 05 Aug 2023 05:27:11 -0400
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 <eliz@HIDDEN>)
 id 1qSDYv-0005PF-JF; Sat, 05 Aug 2023 05:27:05 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=04ROkMX5YPH46aqRL+liyrbspivMRNRTAieHIu1Y3t4=; b=TifUjt715k1/oB9hj2jk
 Try45NwqHCSSMyvveuDME1gm7lt4vtI1ST8AMAblzeEGf5OsOtHH+8qey8h7Cc8E6Dd+NgYYyj0x5
 RrxiQlDKyIaMOj7zIJ71muc4UOo9InRpigwLL4ef9CQEc1qCIDtDjdgpy8C0VEBTeBE+uauxuD/WI
 2EVqsIronoNygusLmpu3VmUFw070Dbe+Fa7Wbd8egfIu8k3LqSG7UV9X36gUxCLPH7S353N9zWG82
 gFY9Jkv4ogxi+qudRMvJYblqBtC8WvbKSWm+ZbEcMEJyn3jF5Jam888YGKf1aGXCp8OORNNwJCuH/
 vkQSlddz0TV7eQ==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1qSDYv-0000NC-1O; Sat, 05 Aug 2023 05:27:05 -0400
Date: Sat, 05 Aug 2023 12:27:19 +0300
Message-Id: <837cq9u9e0.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Gustavo Barros <gusbrs.2016@HIDDEN>, Roland Winkler <winkler@HIDDEN>
In-Reply-To: <CAM9ALR_jAtd+vM6Gvb6Qw0NBBJaF52hPbgXFUqMNSfKrwkmyXg@HIDDEN>
 (message from Gustavo Barros on Mon, 31 Jul 2023 09:53:41 -0300)
Subject: Re: bug#64972: bibtex-autokey-get-year does not recognize biblatex
 date ranges
References: <CAM9ALR_jAtd+vM6Gvb6Qw0NBBJaF52hPbgXFUqMNSfKrwkmyXg@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 64972
Cc: 64972 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Gustavo Barros <gusbrs.2016@HIDDEN>
> Date: Mon, 31 Jul 2023 09:53:41 -0300
> 
> Hi All,
> 
> I think this counts more as a feature request than a bug report.  But,
> currently, `bibtex.el's `bibtex-autokey-get-year' cannot handle
> `biblatex' date ranges, and it would be nice if it did.
> 
> For example, calling `M-: (bibtex-autokey-get-year)' with point inside
> the entry:
> 
>     @Article{,
>       author       = {Author, J.},
>       title        = {Title},
>       journaltitle = {Journal},
>       date         = {2020-10/2020-12},
>     }
> 
> Results in user-error "Year or date field ‘2020-10/2020-12’ invalid".
> 
> The "date" field, however, is valid `biblatex' syntax for a date
> range, according to the section "2.3.8 Date and Time Specifications"
> of `biblatex's manual.

Roland, any comments?

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64972; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 31 Jul 2023 12:54:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 31 08:54:03 2023
Received: from localhost ([127.0.0.1]:51993 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qQSPT-0004gD-Gp
	for submit <at> debbugs.gnu.org; Mon, 31 Jul 2023 08:54:03 -0400
Received: from lists.gnu.org ([2001:470:142::17]:51982)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gtvbrs@HIDDEN>) id 1qQSPR-0004fh-EV
 for submit <at> debbugs.gnu.org; Mon, 31 Jul 2023 08:54:02 -0400
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 <gtvbrs@HIDDEN>) id 1qQSPM-0004Ma-7V
 for bug-gnu-emacs@HIDDEN; Mon, 31 Jul 2023 08:53:56 -0400
Received: from mail-io1-xd33.google.com ([2607:f8b0:4864:20::d33])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <gtvbrs@HIDDEN>) id 1qQSPK-0005AR-L9
 for bug-gnu-emacs@HIDDEN; Mon, 31 Jul 2023 08:53:55 -0400
Received: by mail-io1-xd33.google.com with SMTP id
 ca18e2360f4ac-78360f61ba0so214112039f.1
 for <bug-gnu-emacs@HIDDEN>; Mon, 31 Jul 2023 05:53:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1690808033; x=1691412833;
 h=content-transfer-encoding:to:subject:message-id:date:from
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=NPCSI8n0/cWjmajWuiWLF1Ipz7yKWTjt6M95SETWU6E=;
 b=mqP/2BYHR22jM3Z1tqh5k94qCXv3BF1tPf4M5x21buRqU3fyWrLAms5uew1Vv/3Cbx
 cwUPWtL0/lhbTf53Y0JPTHs7JbemUZfznJCn/hwrko23hZ3mS3J5DR8sQTYFSpWLMzzE
 Znt0RQWrFl2gc+d/slU04TSv9H79ZKcXYDKRMHyA/RQc5PfF45Lr+gyjjLflJCYON69R
 H0GgQMRYs/dBUZyvZkU0d89Sm9HVubVbn1IvzVqpjH/PIRlg4/Mzuwf50zGWL6p086tk
 oBP+AMO4hZ1YIbFSCybTRwx8BbeGkgna6kwnV4NOiEPPED201kl8BR5y+/lLgepRuMgC
 8I2g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1690808033; x=1691412833;
 h=content-transfer-encoding:to:subject:message-id:date:from
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=NPCSI8n0/cWjmajWuiWLF1Ipz7yKWTjt6M95SETWU6E=;
 b=Pm16bXoMI6dohFziE9c6Joe1tr8LltMABAiLc50zEN3W5sUjRaEvOAOTjBzIIEWVfx
 bVHxCvkPDlw1NwpvCwuzXdKkXIRa5kwE6CrKul9dm20/4Ew0iEL+6lWdxfLYPjvBbWAm
 ciLCgRCXWpJr5OjU2hh7SYQK4CPwGix+9WmaOWVid9pVuwG1wl/I/r9E8o3DTg9MxWS/
 UVanNm7iPQSRUJGSyB4nZBpEjbiamm/5QqKjYz8R7cvSflCeQ3z7p2AvP2txNLfv2xYi
 ezsPqNz3c8eHzFkQj+HrX41E2BL28eLR5QRtTsP4d4Oai+VAZw9IWQezX6QbMPCavEIG
 6zeA==
X-Gm-Message-State: ABy/qLYxpTNUuWtZi5mdXYiInClCFTyC4IVN7bcf2sc0/gHfJwWmvhKP
 gAW5QAmk7xKLVs9F+xGYg6HsSnFoJwzwsVhFjVEcVpTjIk6omA==
X-Google-Smtp-Source: APBJJlHuXxQp7POXcPmVv3jRwq0uQL1nXe67m+PkYz/IFRUXq8ASKNaOpSo3rmp2KEkhX++VRy8lbUDLalT7/ZAqnFI=
X-Received: by 2002:a05:6e02:dd1:b0:348:999b:2c44 with SMTP id
 l17-20020a056e020dd100b00348999b2c44mr8535437ilj.26.1690808033053; Mon, 31
 Jul 2023 05:53:53 -0700 (PDT)
MIME-Version: 1.0
From: Gustavo Barros <gusbrs.2016@HIDDEN>
Date: Mon, 31 Jul 2023 09:53:41 -0300
Message-ID: <CAM9ALR_jAtd+vM6Gvb6Qw0NBBJaF52hPbgXFUqMNSfKrwkmyXg@HIDDEN>
Subject: bibtex-autokey-get-year does not recognize biblatex date ranges
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2607:f8b0:4864:20::d33;
 envelope-from=gtvbrs@HIDDEN; helo=mail-io1-xd33.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 HK_RANDOM_ENVFROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Hi All,

I think this counts more as a feature request than a bug report.  But,
currently, `bibtex.el's `bibtex-autokey-get-year' cannot handle
`biblatex' date ranges, and it would be nice if it did.

For example, calling `M-: (bibtex-autokey-get-year)' with point inside
the entry:

    @Article{,
      author       =3D {Author, J.},
      title        =3D {Title},
      journaltitle =3D {Journal},
      date         =3D {2020-10/2020-12},
    }

Results in user-error "Year or date field =E2=80=982020-10/2020-12=E2=80=99=
 invalid".

The "date" field, however, is valid `biblatex' syntax for a date
range, according to the section "2.3.8 Date and Time Specifications"
of `biblatex's manual.

Best regards,
Gustavo.




Acknowledgement sent to Gustavo Barros <gusbrs.2016@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#64972; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 11 Sep 2023 15:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.