GNU bug report logs - #44976
28.0.50; bibtex.el does not consider biblatex field name aliases

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: leonard@HIDDEN; dated Tue, 1 Dec 2020 00:54:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 44976) by debbugs.gnu.org; 2 Dec 2020 20:44:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 02 15:44:28 2020
Received: from localhost ([127.0.0.1]:37516 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kkYzE-0001JM-GH
	for submit <at> debbugs.gnu.org; Wed, 02 Dec 2020 15:44:28 -0500
Received: from eggs.gnu.org ([209.51.188.92]:33032)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <winkler@HIDDEN>) id 1kkYzC-0001J6-KF
 for 44976 <at> debbugs.gnu.org; Wed, 02 Dec 2020 15:44:27 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:56995)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <winkler@HIDDEN>)
 id 1kkYz5-0000mo-V2; Wed, 02 Dec 2020 15:44:19 -0500
Received: from [2602:30a:2e52:d720:65b7:1416:12e7:8bfb] (port=45502
 helo=regnitz)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <winkler@HIDDEN>)
 id 1kkYz5-0004w7-Ec; Wed, 02 Dec 2020 15:44:19 -0500
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <64653.37608.888121.24519@HIDDEN>
Date: Wed, 2 Dec 2020 14:43:57 -0600
From: "Roland Winkler" <winkler@HIDDEN>
To: "Basil L. Contovounesios" <contovob@HIDDEN>
Subject: Re: bug#44976: 28.0.50; bibtex.el does not consider biblatex field
 name aliases
In-Reply-To: <87v9dlscql.fsf@HIDDEN>
References: <e5e5999e690432586c880a214f9f055c@HIDDEN>
 <87v9dlscql.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 44976
Cc: leonard@HIDDEN, 44976 <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 Tue Dec 1 2020 Basil L. Contovounesios wrote:
> > bibtex.el does not consider biblatex aliases correctly. The biblatex package
> > documentation specifies in Section 2.2.5 beginning on page 32 a series of
> > Field Aliases.
> >
> > These include for example the alias "journal" for "journaltitle" which helps
> > biblatex to preserve backwards compatibility with bibtex. This causes bibtex.el
> > to throw error messages of the style "Mandatory field `%s' is missing" despite
> > the alias field being present.
> 
> I, for one, would be in favour of supporting these aliases.
> 
> Roland, are there any reasons not to?

Years ago, I added biblatex support to bibtex.el.  However, I myself
only use old-fashioned BibTeX, so I am not an expert of how biblatex
is supposed to work, and it can well be that the current code can be
improved in one or the other way.

Do I understand correctly that, from biblatex's perspective,
"journal" and "journaltitle" are alternatives similar to "year" and
"date"?  The code in bibtex.el already includes the machinery to
support such alternatives.  So all that's needed for this is to
replace in bibtex-biblatex-entry-alist the elements

  ("journaltitle")

with

  ("journaltitle" nil nil 17) ("journal" nil nil 17)

with 17 replaced by the lowest unused number for the alternatives of
this entry type, see "ALTERNATIVES" in the docstring of
bibtex-BibTeX-entry-alist.

Or am I missing something?

When bibtex-entry inserts a template for a new entry, this includes
the different alternatives with prefix "ALT".  It could be useful to
distingiush between alternatives that are listed in bibtex-entry's
templates and "hidden" alternatives that are only silently accepted
in the background because of biblatex's backward compatibility with
the BibTeX format.  For example, the ALTERNATIVE number could be
positive or negative.  Then, only if this number is positive, all
alternatives are all included in the entry template with the ALT prefix.
Otherwise, only the first alternative in bibtex-biblatex-entry-alist
is printed without the prefix.  Such a feature could also make sense
for "year" and "date".




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44976; Package emacs. Full text available.
Severity set to 'wishlist' from 'normal' Request was from "Basil L. Contovounesios" <contovob@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 44976) by debbugs.gnu.org; 1 Dec 2020 16:38:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 01 11:38:42 2020
Received: from localhost ([127.0.0.1]:33169 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kk8fp-0001iW-QD
	for submit <at> debbugs.gnu.org; Tue, 01 Dec 2020 11:38:42 -0500
Received: from mail-wr1-f41.google.com ([209.85.221.41]:34786)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <contovob@HIDDEN>) id 1kk8fi-0001i1-Br
 for 44976 <at> debbugs.gnu.org; Tue, 01 Dec 2020 11:38:37 -0500
Received: by mail-wr1-f41.google.com with SMTP id k14so3636899wrn.1
 for <44976 <at> debbugs.gnu.org>; Tue, 01 Dec 2020 08:38:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=tcd-ie.20150623.gappssmtp.com; s=20150623;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=hypwf5lVS8G4lB9ijSgPXmkpCFZSS4S5tlSwu5nO1N8=;
 b=LtxWEo0owOYU5CO8bZT6VMM895tPf7PbPpuQKreEgrrVwsDu8AgVu9ODTLYnp5VwJd
 hhh5WGDZ5SIYEBNVizLxdB43ay/l4F9EfoTXh1tVva7H6C7z4Un6UpB3EeaeRKTX2tXY
 fH1B12rM0BBpvTo20nZXzgOKqV13moFfFqVZ0wegGN6c/2SvSFjb5LPiX3DVFdCEEx5N
 ZX+10QObiAPVzIrcxO57x3rONOZzbFft9PuVy5YpJyVDvA4ne1NE8To8hA71QEY8ABd4
 lqt8r2HM0ySZgjMhSUj6PmgeMtd6xAP7v6eELK4ZS6F7nnxMSo73U4xT603GaTNVKGis
 vN7w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=hypwf5lVS8G4lB9ijSgPXmkpCFZSS4S5tlSwu5nO1N8=;
 b=PtEPoDx/a/Q2Sro4IiSUU2rRBRgAixxDLRBsEHN7PWfXaS3vcIFYRntOUOkMwvDHOP
 bQ6QkYEfjXX9atiXOwv68QPShaj1czAKVaNKxTzVbg7b84R8Vza4PydspmCRA6nIaAuy
 8+acFFCB5S3kouRX4vX5IErAxVoaXkzEOxCisL62o1urz/1HX4tCKmMeJEeO/qwhr4n9
 IWEmrUXJA51Ea5Me+9M1FSK9R6I8Tu9N57KMX4JymCIH9q3dtaeI9N4ZcfrXhsavlAi3
 X6HBK4FSoDsMRVtNOsDkIzR5GF4gkrmjCDnLV3DjCnOzaFCHjyt8rYYA4mIonSTExqNW
 UNtw==
X-Gm-Message-State: AOAM53225e1IdopniIWtN1y0Ui9U+6WK1vvGAen1crHUJkaTJVKUIQql
 X5Ylb3DBkCYgwu6hyItcrAKqhA==
X-Google-Smtp-Source: ABdhPJzI1UUw2MdZNMqvvlkYk2hYGe8idqmytgpb0/pZb4umd22cq/and8Qzs6Eae+hp2HM4dI9j9w==
X-Received: by 2002:adf:a451:: with SMTP id e17mr4833762wra.99.1606840708748; 
 Tue, 01 Dec 2020 08:38:28 -0800 (PST)
Received: from localhost ([2a02:8084:20e2:c380:92bd:1bfd:38fc:fae2])
 by smtp.gmail.com with ESMTPSA id x10sm192318wro.0.2020.12.01.08.38.27
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 01 Dec 2020 08:38:27 -0800 (PST)
From: "Basil L. Contovounesios" <contovob@HIDDEN>
To: Roland Winkler <winkler@HIDDEN>, leonard@HIDDEN
Subject: Re: bug#44976: 28.0.50; bibtex.el does not consider biblatex field
 name aliases
References: <e5e5999e690432586c880a214f9f055c@HIDDEN>
Date: Tue, 01 Dec 2020 16:38:26 +0000
In-Reply-To: <e5e5999e690432586c880a214f9f055c@HIDDEN> (leonard@HIDDEN's
 message of "Tue, 01 Dec 2020 00:53:21 +0000")
Message-ID: <87v9dlscql.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 44976
Cc: 44976 <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: -1.0 (-)

severity 44976 wishlist
quit

leonard@HIDDEN writes:

> bibtex.el does not consider biblatex aliases correctly. The biblatex package
> documentation specifies in Section 2.2.5 beginning on page 32 a series of
> Field Aliases.
>
> These include for example the alias "journal" for "journaltitle" which helps
> biblatex to preserve backwards compatibility with bibtex. This causes bibtex.el
> to throw error messages of the style "Mandatory field `%s' is missing" despite
> the alias field being present.

I, for one, would be in favour of supporting these aliases.

Roland, are there any reasons not to?

Thanks,

-- 
Basil




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

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


Received: (at submit) by debbugs.gnu.org; 1 Dec 2020 00:53:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 30 19:53:38 2020
Received: from localhost ([127.0.0.1]:57176 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kjtvG-0006Md-8E
	for submit <at> debbugs.gnu.org; Mon, 30 Nov 2020 19:53:38 -0500
Received: from lists.gnu.org ([209.51.188.17]:39562)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <leonard@HIDDEN>) id 1kjtvE-0006MV-KG
 for submit <at> debbugs.gnu.org; Mon, 30 Nov 2020 19:53:37 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:45242)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <leonard@HIDDEN>) id 1kjtvE-00043p-CD
 for bug-gnu-emacs@HIDDEN; Mon, 30 Nov 2020 19:53:36 -0500
Received: from devico.uberspace.de ([185.26.156.185]:37650)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <leonard@HIDDEN>) id 1kjtvB-0000bv-Tz
 for bug-gnu-emacs@HIDDEN; Mon, 30 Nov 2020 19:53:36 -0500
Received: (qmail 13748 invoked from network); 1 Dec 2020 00:53:22 -0000
Received: from localhost (HELO localhost) (127.0.0.1)
 by devico.uberspace.de with SMTP; 1 Dec 2020 00:53:22 -0000
MIME-Version: 1.0
Date: Tue, 01 Dec 2020 00:53:21 +0000
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Mailer: RainLoop/1.14.0
From: leonard@HIDDEN
Message-ID: <e5e5999e690432586c880a214f9f055c@HIDDEN>
Subject: 28.0.50; bibtex.el does not consider biblatex field name aliases
To: bug-gnu-emacs@HIDDEN
Received-SPF: none client-ip=185.26.156.185; envelope-from=leonard@HIDDEN;
 helo=devico.uberspace.de
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001,
 SPF_NONE=0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -2.3 (--)
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: -3.3 (---)

bibtex.el does not consider biblatex aliases correctly. The biblatex pack=
age=0Adocumentation specifies in Section 2.2.5 beginning on page 32 a ser=
ies of=0AField Aliases.=0A=0AThese include for example the alias "journal=
" for "journaltitle" which helps=0Abiblatex to preserve backwards compati=
bility with bibtex. This causes bibtex.el=0Ato throw error messages of th=
e style "Mandatory field `%s' is missing" despite=0Athe alias field being=
 present.=0A=0ATo reproduce run `emacs -Q`. Then switch to `bibtex-mode` =
and set=0A`(bibtex-set-dialect 'biblatex t)`. Finally paste=0A=0A  @artic=
le{doe2020lorem,=0A    author =3D {John Doe},=0A    title =3D {Lorem Ipsu=
m},=0A    date =3D {2020},=0A    journal =3D {Communications of the ACM}=
=0A  }=0A=0Aand navigate the cursor into the @article entry. Then execute=
 `M-x=0Abibtex-clean-entry` and observe "Mandatory field =E2=80=98journal=
title=E2=80=99 is missing"=0Aerror message.=0A=0AIn GNU Emacs 28.0.50 (bu=
ild 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0)=
=0A of 2020-11-30 built locally=0ARepository revision: 21104e6808a4496afb=
8163d92c6fb4d59e3010b7=0ARepository branch: feature/native-comp=0AWindowi=
ng system distributor 'The X.Org Foundation', version 11.0.12008000=0ASys=
tem Description: Ubuntu 20.04.1 LTS=0A=0AConfigured using:=0A 'configure =
--with-cairo --with-modules --with-nativecomp'=0A=0AConfigured features:=
=0AXPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY=
=0AINOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOT=
F=0AZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES NATIVE_COMP THREAD=
S=0ALIBSYSTEMD PDUMPER LCMS2=0A=0AImportant settings:=0A  value of $LANG:=
 en_US.UTF-8=0A  value of $XMODIFIERS: @im=3Dibus=0A  locale-coding-syste=
m: utf-8-unix=0A=0AMajor mode: BibTeX=0A=0AMinor modes in effect:=0A  too=
ltip-mode: t=0A  global-eldoc-mode: t=0A  electric-indent-mode: t=0A  mou=
se-wheel-mode: t=0A  tool-bar-mode: t=0A  menu-bar-mode: t=0A  file-name-=
shadow-mode: t=0A  global-font-lock-mode: t=0A  font-lock-mode: t=0A  bli=
nk-cursor-mode: t=0A  auto-composition-mode: t=0A  auto-encryption-mode: =
t=0A  auto-compression-mode: t=0A  line-number-mode: t=0A  transient-mark=
-mode: t=0A=0ALoad-path shadows:=0ANone found.=0A=0AFeatures:=0A(shadow s=
ort mail-extr emacsbug message rmc puny dired dired-loaddefs=0Arfc822 mml=
 mml-sec epa derived epg epg-config gnus-util rmail=0Armail-loaddefs auth=
-source eieio eieio-core eieio-loaddefs=0Apassword-cache json map text-pr=
operty-search mm-decode mm-bodies=0Amm-encode mail-parse rfc2231 mailabbr=
ev gmm-utils mailheader sendmail=0Acomp comp-cstr warnings rx cl-seq cl-m=
acs cl-extra seq byte-opt gv=0Abytecomp byte-compile cconv rfc2047 rfc204=
5 ietf-drums mm-util=0Amail-prsvr mail-utils help-fns radix-tree cl-print=
 debug backtrace=0Ahelp-mode find-func bibtex easymenu time-date subr-x c=
l-loaddefs cl-lib=0Atooltip eldoc electric uniquify ediff-hook vc-hooks l=
isp-float-type=0Amwheel term/x-win x-win term/common-win x-dnd tool-bar d=
nd fontset image=0Aregexp-opt fringe tabulated-list replace newcomment te=
xt-mode elisp-mode=0Alisp-mode prog-mode register page tab-bar menu-bar r=
fn-eshadow isearch=0Atimer select scroll-bar mouse jit-lock font-lock syn=
tax facemenu=0Afont-core term/tty-colors frame minibuffer cl-generic cham=
 georgian=0Autf-8-lang misc-lang vietnamese tibetan thai tai-viet lao kor=
ean=0Ajapanese eucjp-ms cp51932 hebrew greek romanian slovak czech europe=
an=0Aethiopic indian cyrillic chinese composite charscript charprop=0Acas=
e-table epa-hook jka-cmpr-hook help simple abbrev obarray=0Acl-preloaded =
nadvice button loaddefs faces cus-face pcase macroexp files=0Awindow text=
-properties overlay sha1 md5 base64 format env code-pages=0Amule custom w=
idget hashtable-print-readable backquote threads dbusbind=0Ainotify lcms2=
 dynamic-setting system-font-setting font-render-setting=0Acairo move-too=
lbar gtk x-toolkit x multi-tty make-network-process=0Anativecomp emacs)=
=0A=0AMemory information:=0A((conses 16 123914 7697)=0A (symbols 48 8538 =
1)=0A (strings 32 27224 3373)=0A (string-bytes 1 883468)=0A (vectors 16 1=
6711)=0A (vector-slots 8 323004 11886)=0A (floats 8 29 34)=0A (intervals =
56 11155 0)=0A (buffers 984 14))




Acknowledgement sent to leonard@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#44976; 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: Wed, 2 Dec 2020 21:00:02 UTC

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