Subject: bug#56636: closed (Re: bug#56636: 28.1.90; bibtex-beginning-of-entry does not always move point the the actual beginning)

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 30 Dec 2022 05:49:02 +0000

Your bug report

#56636: 28.1.90; bibtex-beginning-of-entry does not always move point the the actual beginning

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
56636: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=56636
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#56636: 28.1.90; bibtex-beginning-of-entry does not always move point the the actual beginning
From: Roland Winkler <[email-masked]>
To: Ihor Radchenko <[email-masked]>
Cc: Lars Ingebrigtsen <[email-masked]>, Ihor Radchenko <[email-masked]>, [email-masked]
Date: Thu, 29 Dec 2022 23:48:07 -0600
List-Id: <debbugs-submit.debbugs.gnu.org>

On Sun, Nov 27 2022, Ihor Radchenko wrote:
> Roland Winkler <[email-masked]> writes:
>
>>> Though it is probably not very high priority.
>>
>> I do have a ptach that I'll install shortly (my internet access is
>> limited right now).
>
> Thanks a lot!

commit 644c71d6788d268cb065bd9317efb8a16a8236e6

Subject: 28.1.90; bibtex-beginning-of-entry does not always move point the the actual beginning
From: Ihor Radchenko <[email-masked]>
To: [email-masked]
Date: Tue, 19 Jul 2022 10:46:21 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Consider the following BibTeX entry:

@misc{placeholder,
  author =	 {Mamoru Miura <[email-masked]>},
  created =	 {[2022-07-19 Tue 09:44]},
  howpublished = {ML:Org mode},
  link =
                  {notmuch:id:[email-masked]},
  note =	 {Online; accessed 19 July 2022},
  title =	 {Re: Bug: Appointments duration and effort sums in
                  agenda column view [9.3.7 (release_9.3.7-700-ga1e5be
                  @ ~/.emacs.d/straight/build/org/)]},
  typealt =	 {email},
  year =	 2022,
}

Put the point at the "year" field and run
M-: (bibtex-beginning-of-entry)

Observed: Point moves to the @ ~/.emacs.d line.
Expected: Point moves to @misc

The problem is not only with the direct call to
bibtex-beginning-of-entry, but also shows up in functions that make use
of this function. For example, (bibtex-generate-autokey) or
(bibtex-autokey-get-title) will treat "title" field as empty in the
above scenario.

Best,
Ihor

In GNU Emacs 28.1.90 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.16.0)
 of 2022-07-17 built on localhost
Repository revision: f5218385c064aa959650bfe49ca32795270851eb
Repository branch: emacs-28
Windowing system distributor 'The X.Org Foundation', version 11.0.12101004
System Description: Gentoo Linux