unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Gustavo Barros <gusbrs.2016@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Brian Zbriger <brian.zbr@gmail.com>, 21099@debbugs.gnu.org
Subject: bug#21099: 24.3; bibtex-clean-entry and date fields in biblatex
Date: Fri, 02 Aug 2019 10:30:58 -0300	[thread overview]
Message-ID: <87sgqjhey5.fsf@gmail.com> (raw)
In-Reply-To: <87wofv95h1.fsf@mouse.gnus.org>


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.





  reply	other threads:[~2019-08-02 13:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-21  3:16 bug#21099: 24.3; bibtex-clean-entry and date fields in biblatex Brian Zbriger
2019-08-01 20:23 ` Lars Ingebrigtsen
2019-08-01 21:02   ` Gustavo Barros
2019-08-02 11:22     ` Lars Ingebrigtsen
2019-08-02 13:30       ` Gustavo Barros [this message]
2019-08-02 18:10         ` Lars Ingebrigtsen
2019-08-02 19:18           ` Gustavo Barros
2019-08-02 20:52             ` Gustavo Barros
2019-08-03 12:18             ` Lars Ingebrigtsen
2019-08-04 19:48           ` Roland Winkler

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=87sgqjhey5.fsf@gmail.com \
    --to=gusbrs.2016@gmail.com \
    --cc=21099@debbugs.gnu.org \
    --cc=brian.zbr@gmail.com \
    --cc=larsi@gnus.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).