unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Gustavo Barros <gusbrs.2016@gmail.com>
To: 64972@debbugs.gnu.org
Subject: bug#64972: bibtex-autokey-get-year does not recognize biblatex date ranges
Date: Mon, 31 Jul 2023 09:53:41 -0300	[thread overview]
Message-ID: <CAM9ALR_jAtd+vM6Gvb6Qw0NBBJaF52hPbgXFUqMNSfKrwkmyXg@mail.gmail.com> (raw)

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.

Best regards,
Gustavo.





             reply	other threads:[~2023-07-31 12:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-31 12:53 Gustavo Barros [this message]
2023-08-05  9:27 ` bug#64972: bibtex-autokey-get-year does not recognize biblatex date ranges Eli Zaretskii
2023-08-06 16:09   ` Roland Winkler
2023-08-23  0:09   ` Roland Winkler
2023-08-23 11:30     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAM9ALR_jAtd+vM6Gvb6Qw0NBBJaF52hPbgXFUqMNSfKrwkmyXg@mail.gmail.com \
    --to=gusbrs.2016@gmail.com \
    --cc=64972@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).