From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs Subject: bug#48447: 27.2.50; Font-lock error in temporary bibtex-mode buffer Date: Sat, 15 May 2021 18:11:31 +0100 Message-ID: <87mtsv3osc.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9026"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Roland Winkler To: 48447@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 15 19:12:38 2021 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 1lhxqA-00028T-5j for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 May 2021 19:12:38 +0200 Original-Received: from localhost ([::1]:33824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhxq9-0007b7-7g for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 May 2021 13:12:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43054) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhxpa-0007Xy-GP for bug-gnu-emacs@gnu.org; Sat, 15 May 2021 13:12:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37597) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhxpa-0006q6-90; Sat, 15 May 2021 13:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lhxpa-00062z-47; Sat, 15 May 2021 13:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: winkler@gnu.org, bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 May 2021 17:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48447 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: "Roland Winkler" Original-Received: via spool by submit@debbugs.gnu.org id=B.162109870823223 (code B ref -1); Sat, 15 May 2021 17:12:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 May 2021 17:11:48 +0000 Original-Received: from localhost ([127.0.0.1]:49143 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhxpL-00062V-N0 for submit@debbugs.gnu.org; Sat, 15 May 2021 13:11:48 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:35346) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhxpK-00062N-1k for submit@debbugs.gnu.org; Sat, 15 May 2021 13:11:46 -0400 Original-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 ) id 1lhxpJ-0007VM-BY for bug-gnu-emacs@gnu.org; Sat, 15 May 2021 13:11:45 -0400 Original-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 ) id 1lhxpC-0006hc-22 for bug-gnu-emacs@gnu.org; Sat, 15 May 2021 13:11:44 -0400 Original-Received: by mail-wr1-x431.google.com with SMTP id r12so2187760wrp.1 for ; 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) Original-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 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 May 2021 10:11:33 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=contovob@tcd.ie; 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-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:206612 Archived-At: 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))