From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Roland Winkler Newsgroups: gmane.emacs.bugs Subject: bug#56636: 28.1.90; bibtex-beginning-of-entry does not always move point the the actual beginning Date: Sat, 23 Jul 2022 21:37:05 -0500 Message-ID: <87wnc36xta.fsf@gnu.org> References: <878rophlaa.fsf@localhost> <874jz82rft.fsf@gnus.org> <87edycuucy.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40587"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 56636@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 24 04:38:11 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oFRVT-000AQE-CW for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Jul 2022 04:38:11 +0200 Original-Received: from localhost ([::1]:41078 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFRVR-0003Qj-Uc for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 22:38:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52544) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFRVK-0003QV-NN for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 22:38:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56883) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFRVK-0000UB-E0 for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 22:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oFRVK-0004b7-7T for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 22:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Roland Winkler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Jul 2022 02:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56636 X-GNU-PR-Package: emacs Original-Received: via spool by 56636-submit@debbugs.gnu.org id=B56636.165863023617608 (code B ref 56636); Sun, 24 Jul 2022 02:38:02 +0000 Original-Received: (at 56636) by debbugs.gnu.org; 24 Jul 2022 02:37:16 +0000 Original-Received: from localhost ([127.0.0.1]:46632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFRUZ-0004Zv-NM for submit@debbugs.gnu.org; Sat, 23 Jul 2022 22:37:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39570) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFRUW-0004Zg-KK for 56636@debbugs.gnu.org; Sat, 23 Jul 2022 22:37:14 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50588) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFRUR-0000Ln-8f; Sat, 23 Jul 2022 22:37:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=dRY0AhE+J9y0E8TyPui8o+tyxAznFntIjJKrDl4Z83c=; b=SmCmrPHDjmtapwTydYiM QrfizdmV7aA87KJ12ydbkCwddJcT39Kq5stb2RMk22mF7lZrs2YszhPjLwicdbK1UmqlNijIzzIb4 sBhHNHHA4c/9nd9qITHd8f0UKwL9ve6Cv1Eag6vaGUm42dYWM3sIkfErzvK3xN9RW1vh+lSQpOCbQ XJ8XIThVYJEGvdeqh0o2pewXp1RVjJsjYRh/0QJmwB8p5zXUqWWkvcrFijTgoROI08WaFCf5T0U1c FxBQXgKzWaMvsGEvIn/0qnoJIMF089ep2Rxv6H0z5/z9BL5+DtPQFMWj6bEgYdwlKtEXy4NJX7ftA p6pI44j5pTYKUg==; Original-Received: from [2600:1700:5650:f790::42] (port=51450 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFRUR-0007Vr-0S; Sat, 23 Jul 2022 22:37:07 -0400 In-Reply-To: <87edycuucy.fsf@localhost> (Ihor Radchenko's message of "Sat, 23 Jul 2022 16:05:33 +0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:237795 Archived-At: On Sat, Jul 23 2022, Ihor Radchenko wrote: > Lars Ingebrigtsen writes: > >>> Observed: Point moves to the @ ~/.emacs.d line. >>> Expected: Point moves to @misc >> >> I guess the problem is with the @ in the title entry? > > Yes, bibtex-beginning-of-entry is doing > (re-search-backward "^[ \t]*@" nil 'move) which does not match the right > thing in this particular case. This old part of the code should use bibtex-entry-maybe-empty-head. Looking at the code, it frequently performs a strange dance where a call of bibtex-beginnig-of-entry is followed by (looking-at bibtex-entry-maybe-empty-head). That doesn't make sense, it works around the above bug instead of doing it right in the first place. I'll look for a better solution for this.