GNU bug report logs - #21099
24.3; bibtex-clean-entry and date fields in biblatex

Previous Next

Package: emacs;

Reported by: Brian Zbriger <brian.zbr <at> gmail.com>

Date: Tue, 21 Jul 2015 03:17:02 UTC

Severity: normal

Tags: notabug

Found in version 24.3

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Gustavo Barros <gusbrs.2016 <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 21099 <at> debbugs.gnu.org, Brian Zbriger <brian.zbr <at> gmail.com>
Subject: bug#21099: 24.3; bibtex-clean-entry and date fields in biblatex
Date: Fri, 02 Aug 2019 10:30:58 -0300
Hi Lars,

On Fri, Aug 02 2019, Lars Ingebrigtsen wrote:

> Do you have an example bibtex file that demonstrates the error in
> `bibtex-clean-entry'?

Precisely, what I meant to say is that (currently at least) the problem 
does not seem to arise.

The default value of `bibtex-entry-format`, indeed makes 
`bibtex-clean-entry` strip braces of numerical fields.  But this 
behavior can be customized by removing `numerical-fields` from 
`bibtex-entry-format`.

So, with defaults, from an original entry like:

   @Article{Author2019c,
     author       = {Author},
     title        = {Title},
     journaltitle = {Journal title},
     date         = {2019},
   }

the result of `bibtex-clean-entry` is:

   @Article{Author2019c,
     author       = {Author},
     title        = {Title},
     journaltitle = {Journal title},
     date         = 2019,
   }

If we customize `bibtex-entry-format` by just removing 
`numerical-fields` from it with:

   (setq bibtex-entry-format
	  '(opts-or-alts required-fields))

We then get from `bibtex-clean-entry`:

   @Article{Author2019c,
     author       = {Author},
     title        = {Title},
     journaltitle = {Journal title},
     date         = {2019},
   }

Besides, to the best of my knowledge, the default of striping braces of 
numerical fields is also not problematic for biblatex or biber.  And I 
see no reason why latexmk would have any special implications on the 
case.


> `C-h f bibtex-mode RET' gives me a quite long doc string (in Emacs 27,
> at least).

I expressed myself poorly here.  Of course the docstring is built-in 
documentation.  What I meant to say is that there appears to be no info 
document for bibtex-mode.  And please compare the docstring with the 
link I provided.  The content of that link seems to have been the 
“manual” of bibtex-mode which, as far as I could search, is not (no 
longer?) shipped with Emacs.

In my experience with bibtex-mode, that “manual” was quite useful.  I 
have no idea if there was any good reason for it not being included with 
the package itself (or for it to be dropped).  But, if the only reason 
was that it got “lost in the way” it might be worth to try to recover 
it.

But I might well be drifting from the OP here.  From a strict 
perspective, the message is: I cannot (currently) reproduce the problem, 
it is likely just a customization issue, and even the default behavior 
of bibtex-mode should not make biblatex/biber choke.

Best regards,
Gustavo Barros.




This bug report was last modified 5 years and 292 days ago.

Previous Next


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