GNU bug report logs - #48447
27.2.50; Font-lock error in temporary bibtex-mode buffer

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: minor; Reported by: "Basil L. Contovounesios" <contovob@HIDDEN>; dated Sat, 15 May 2021 17:12:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 48447) by debbugs.gnu.org; 18 May 2021 15:56:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 18 11:56:38 2021
Received: from localhost ([127.0.0.1]:57012 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lj25F-0005nI-UT
	for submit <at> debbugs.gnu.org; Tue, 18 May 2021 11:56:38 -0400
Received: from eggs.gnu.org ([209.51.188.92]:50326)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <winkler@HIDDEN>) id 1lj25E-0005n2-Vt
 for 48447 <at> debbugs.gnu.org; Tue, 18 May 2021 11:56:37 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:41276)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <winkler@HIDDEN>)
 id 1lj259-00066b-AX; Tue, 18 May 2021 11:56:31 -0400
Received: from [2600:1700:5650:f790::49] (port=57342 helo=regnitz)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <winkler@HIDDEN>)
 id 1lj258-0004TA-Ln; Tue, 18 May 2021 11:56:30 -0400
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <58285.54607.999029.24739@HIDDEN>
Date: Tue, 18 May 2021 10:56:29 -0500
From: "Roland Winkler" <winkler@HIDDEN>
To: "Basil L. Contovounesios" <contovob@HIDDEN>
Subject: Re: bug#48447: 27.2.50;
 Font-lock error in temporary bibtex-mode buffer
In-Reply-To: <87mtsv3osc.fsf@HIDDEN>
References: <87mtsv3osc.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 48447
Cc: 48447 <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 Sat May 15 2021 Basil L. Contovounesios wrote:
> Severity: minor
[snip] 
> I can't reproduce this in Emacs versions 24.5.1, 25.3.1, or 26.3.

Thanks, I'll take a look into this.  It may be that the code is
getting a little rusty.




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

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


Received: (at submit) by debbugs.gnu.org; 15 May 2021 17:11:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 15 13:11:48 2021
Received: from localhost ([127.0.0.1]:49143 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lhxpL-00062V-N0
	for submit <at> debbugs.gnu.org; Sat, 15 May 2021 13:11:48 -0400
Received: from lists.gnu.org ([209.51.188.17]:35346)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <contovob@HIDDEN>) id 1lhxpK-00062N-1k
 for submit <at> debbugs.gnu.org; Sat, 15 May 2021 13:11:46 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:43038)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <contovob@HIDDEN>) id 1lhxpJ-0007VM-BY
 for bug-gnu-emacs@HIDDEN; Sat, 15 May 2021 13:11:45 -0400
Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:34393)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <contovob@HIDDEN>) id 1lhxpC-0006hc-22
 for bug-gnu-emacs@HIDDEN; Sat, 15 May 2021 13:11:44 -0400
Received: by mail-wr1-x431.google.com with SMTP id r12so2187760wrp.1
 for <bug-gnu-emacs@HIDDEN>; Sat, 15 May 2021 10:11:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21;
 h=from:to:subject:date:message-id:mime-version;
 bh=8Or650k1KWNu5VWroN9ahEnggifaFQg2obhX3qhiOVk=;
 b=BGJB7hbSRJvAzv0dCfEcE6WOTBN572L+vUGNCu4bmCY3M+mCTec7tYo0ZgybQhdUoL
 FzYU722VVFxSeZJxn00qiStB72Gy2+unz9vUWrM9IxAgdNYYFvfRLwQcgtl8ggGjV0D5
 AL7qTk2wf8X2xbV7ehLun8npJSO8txRRfxzBi+xDIAKfeiemsn9sf2+tZxJwlRwOdaUr
 YP6iyfhbnI7ftukrwjWs6wlfLd9Xodbb/57SovlcfGlLEsTOialABsyGQb96CMDAsG1p
 wkgdhhFArxF7gfj7a4ppsuldeV8s1HPf1+RMGNJCpSM3/7i2u8NO19qpsspixXfpFINx
 yR3Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:date:message-id:mime-version;
 bh=8Or650k1KWNu5VWroN9ahEnggifaFQg2obhX3qhiOVk=;
 b=VHFUyCNga6tfjvfjcpe2hN5koXXR/HToCmYfnAuuJJWihald69zVQ6WPeCmK4ezrmE
 erC5oWpgx3mr9nOGAzV0NJtsSSMhNU4vfWf3b6vDlXWsz1L30sH1SEWMDq0fbo/UD8/8
 qFj+chBstajLjhC6wkGzbpOpu9Nh7CjudVf0CpPAGUTtivWiBYV8ChyC5hRytsBhsgtZ
 b+Z4DouciGYdA6lmUMerdtf2md19mxpJfuzjzS3lPs9X1fpV4DF9wESVh9ibsXAv/Wi4
 /2EuVPaLNylEsoIq9akuwcWhTZ7M+jV7coH4wg9785cpQmVfBCefRFYz5eM8fAxgmtnQ
 0HWA==
X-Gm-Message-State: AOAM532bt7HgAUQ3kF6p2q10Tz5vazujqNqZ0qRTaeaj7RcE+qImM9eG
 OTUEEp5N/jyj791i2ZHrGbEjfg10XE9XQg==
X-Google-Smtp-Source: ABdhPJzdt6KuAmZRwMiuWx4n3l2+9rn9aMTyu705dN9mfe4vW3i6GMYpESQDwDYVDWFG8oSeitRYpA==
X-Received: by 2002:adf:f108:: with SMTP id r8mr8170867wro.290.1621098693854; 
 Sat, 15 May 2021 10:11:33 -0700 (PDT)
Received: from localhost ([2a02:8084:20e2:c380:d15:339e:aa10:60f1])
 by smtp.gmail.com with ESMTPSA id a21sm14855243wmj.34.2021.05.15.10.11.32
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 15 May 2021 10:11:33 -0700 (PDT)
From: "Basil L. Contovounesios" <contovob@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 27.2.50; Font-lock error in temporary bibtex-mode buffer
X-Debbugs-Cc: "Roland Winkler" <winkler@HIDDEN>
Date: Sat, 15 May 2021 18:11:31 +0100
Message-ID: <87mtsv3osc.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2a00:1450:4864:20::431;
 envelope-from=contovob@HIDDEN; helo=mail-wr1-x431.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.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: -2.3 (--)

Severity: minor

0. emacs -Q
1. C-h e
2. Insert:

(with-temp-buffer
  (insert "\
@article{key
  author={Author},
  title={Title},
  journal={Journal},
  year=2021
}\n")
  (goto-char (point-min))
  (bibtex-mode)
  (bibtex-set-dialect nil 'local)
  (bibtex-skip-to-valid-entry))

3. C-x C-e

This puts the following in *Messages*:

  Error during redisplay: (internal--syntax-propertize 25) signaled
  (error "Font-lock trying to use keywords before setting them up")

I can't reproduce this in Emacs versions 24.5.1, 25.3.1, or 26.3.

I can reproduce it on master with and without the call to
bibtex-set-dialect (in older versions omitting bibtex-set-dialect leads
to an error because bibtex-entry-head is nil instead of a string).

None of the commits touching bibtex.el between emacs-26..emacs-27 strike
me as obvious causes, so perhaps it follows a change in the font-lock
machinery?

Is this use of bibtex-skip-to-valid-entry wrong?  If so, why, and what
should be used instead?  Either way, is that error expected?

Thanks,

-- 
Basil

In GNU Emacs 27.2.50 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars)
 of 2021-05-09 built on tia
Repository revision: 4c3abb3dd105e075bf1cf55e3fe8b5ec2ac8e6cc
Repository branch: wt/emacs-27
Windowing system distributor 'The X.Org Foundation', version 11.0.12011000
System Description: Debian GNU/Linux bullseye/sid

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Mark set
Error during redisplay: (internal--syntax-propertize 25) signaled (error "Font-lock trying to use keywords before setting them up")
(1 . 85)
Configured using:
 'configure 'CC=ccache gcc' 'CFLAGS=-O0 -g3 -ggdb -gdwarf-4'
 --config-cache --prefix=/home/blc/.local --program-suffix=-27
 --enable-checking=yes,glyphs --enable-check-lisp-object-type
 --with-x-toolkit=lucid --with-file-notification=yes --with-x
 --with-cairo'

Configured features:
XAW3D XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB
NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT
LIBOTF ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS
LIBSYSTEMD JSON PDUMPER LCMS2 GMP

Important settings:
  value of $LANG: en_IE.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config
gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq
byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils bibtex
easymenu tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar
dnd fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core term/tty-colors frame minibuffer cl-generic
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote threads dbusbind
inotify lcms2 dynamic-setting system-font-setting font-render-setting
cairo x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 51935 9915)
 (symbols 48 6377 1)
 (strings 32 18852 1763)
 (string-bytes 1 575619)
 (vectors 16 9831)
 (vector-slots 8 131141 11094)
 (floats 8 26 46)
 (intervals 56 236 0)
 (buffers 1000 11))




Acknowledgement sent to "Basil L. Contovounesios" <contovob@HIDDEN>:
New bug report received and forwarded. Copy sent to winkler@HIDDEN, bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to winkler@HIDDEN, bug-gnu-emacs@HIDDEN:
bug#48447; 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: Tue, 18 May 2021 16:00:02 UTC

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