From unknown Mon Jun 16 23:47:28 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#48447 <48447@debbugs.gnu.org> To: bug#48447 <48447@debbugs.gnu.org> Subject: Status: 27.2.50; Font-lock error in temporary bibtex-mode buffer Reply-To: bug#48447 <48447@debbugs.gnu.org> Date: Tue, 17 Jun 2025 06:47:28 +0000 retitle 48447 27.2.50; Font-lock error in temporary bibtex-mode buffer reassign 48447 emacs submitter 48447 "Basil L. Contovounesios" severity 48447 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Sat May 15 13:11:48 2021 Received: (at submit) by debbugs.gnu.org; 15 May 2021 17:11:48 +0000 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 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 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 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 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) 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) From: "Basil L. Contovounesios" To: bug-gnu-emacs@gnu.org Subject: 27.2.50; Font-lock error in temporary bibtex-mode buffer X-Debbugs-Cc: "Roland Winkler" Date: Sat, 15 May 2021 18:11:31 +0100 Message-ID: <87mtsv3osc.fsf@tcd.ie> MIME-Version: 1.0 Content-Type: text/plain 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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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)) From debbugs-submit-bounces@debbugs.gnu.org Tue May 18 11:56:38 2021 Received: (at 48447) by debbugs.gnu.org; 18 May 2021 15:56:38 +0000 Received: from localhost ([127.0.0.1]:57012 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lj25F-0005nI-UT for submit@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 ) id 1lj25E-0005n2-Vt for 48447@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 ) 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 ) 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@gargle.gargle.HOWL> Date: Tue, 18 May 2021 10:56:29 -0500 From: "Roland Winkler" To: "Basil L. Contovounesios" Subject: Re: bug#48447: 27.2.50; Font-lock error in temporary bibtex-mode buffer In-Reply-To: <87mtsv3osc.fsf@tcd.ie> References: <87mtsv3osc.fsf@tcd.ie> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48447 Cc: 48447@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 13 07:24:28 2022 Received: (at 48447) by debbugs.gnu.org; 13 Jul 2022 11:24:28 +0000 Received: from localhost ([127.0.0.1]:44647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBaTk-0007l1-Du for submit@debbugs.gnu.org; Wed, 13 Jul 2022 07:24:28 -0400 Received: from quimby.gnus.org ([95.216.78.240]:50138) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBaTi-0007ko-Lt for 48447@debbugs.gnu.org; Wed, 13 Jul 2022 07:24:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=HZiqmh3LE2c6RU7mjg+ANX2YVe7UbUFiIf5b2yfxVIs=; b=JbmOtSwq18dtoBL6DiUqymbR4u aqC/9SCF8xEk/bEYkDWBTWxA0jEi9jzyz0PwlgG5NVgvwXc3p1Fb9IdEbqFWVNecMSN+vQZGhbPvJ VJTCeOO/ezSw+sm2+jP+VmbU2AS2q449qRO2FhaBCRt3MDJ86c2h3kIa2JHU8hm7zdxk=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oBaTX-0005KU-KK; Wed, 13 Jul 2022 13:24:19 +0200 From: Lars Ingebrigtsen To: "Basil L. Contovounesios" Subject: Re: bug#48447: 27.2.50; Font-lock error in temporary bibtex-mode buffer In-Reply-To: <87mtsv3osc.fsf@tcd.ie> (Basil L. Contovounesios's message of "Sat, 15 May 2021 18:11:31 +0100") References: <87mtsv3osc.fsf@tcd.ie> X-Now-Playing: Jay Glass Dubs vs Guerilla Toss's _Vs_: "TV Do Dub" Date: Wed, 13 Jul 2022 13:24:12 +0200 Message-ID: <87o7xts1b7.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: "Basil L. Contovounesios" writes: > 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") Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48447 Cc: 48447@debbugs.gnu.org, Roland Winkler X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) "Basil L. Contovounesios" writes: > 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've now fixed this in Emacs 29. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 13 07:24:31 2022 Received: (at control) by debbugs.gnu.org; 13 Jul 2022 11:24:31 +0000 Received: from localhost ([127.0.0.1]:44650 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBaTn-0007lG-KR for submit@debbugs.gnu.org; Wed, 13 Jul 2022 07:24:31 -0400 Received: from quimby.gnus.org ([95.216.78.240]:50152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBaTm-0007ks-7O for control@debbugs.gnu.org; Wed, 13 Jul 2022 07:24:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=DXZaiqnxK0FFdYP4IDFR5nd0/4zNTw+1fkLN02Et5Tw=; b=CAAYbeW0IC2TD82aKbz5pJRIHv d1lFFYSTo7PqVInKFAFm+KLd0Rp3g0INKp+5b2k/SjJOHyUEgNP0+/Mwc/fkph26anUVd5Czbs6Ms NWkAjywX3jZVN5WNmm9S9EaUBh9gM3Uh9PmCbE3YxCEH9eO2XqUUY2uYwthLtsofg4vw=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oBaTe-0005Kb-BA for control@debbugs.gnu.org; Wed, 13 Jul 2022 13:24:24 +0200 Date: Wed, 13 Jul 2022 13:24:21 +0200 Message-Id: <87mtdds1ay.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #48447 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 48447 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 48447 29.1 quit From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 13 08:32:16 2022 Received: (at 48447) by debbugs.gnu.org; 13 Jul 2022 12:32:16 +0000 Received: from localhost ([127.0.0.1]:44874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBbXM-0001Wi-Ly for submit@debbugs.gnu.org; Wed, 13 Jul 2022 08:32:16 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:24303) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBbXK-0001WT-66 for 48447@debbugs.gnu.org; Wed, 13 Jul 2022 08:32:15 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id AB5FC8064F; Wed, 13 Jul 2022 08:32:08 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 412C480019; Wed, 13 Jul 2022 08:32:07 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1657715527; bh=vSmZ0lZqTtBvJcc3FmSinioLrgLP9qT7J9l16nfR6l4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=crnX4nM0fMHc2fIZaR5xGD7mSSKhVfsIl8ihbvZ2hgcJqv2UV+21EYA7ANmHOHZLI T6tIA4df9zGhSj0peQ4oFZxZujNhBkG20aQ0bMkkPOEXvHi50zl52/XC6QnmuRWCd4 h/uHis4QYXlDRwoAYc7rtq2+07p4hhTTFTPLi//CVIjbWa2NrVjsqxl1okOnu4EFOQ i/u+E4VZHMY/bCXVeVUhRqr3UqGGtzUXSO2fLeKXifr3nIdOi/1rCME0e7TFkyBaSW UHoXH14INqjsTj5V+o3Tw97BCywNm7k8s6LtLzuLSMm80DMonz+grGt9z1/VjyHjXo FfKZkTTgEmErg== Received: from pastel (unknown [45.72.196.165]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 0D1171200A1; Wed, 13 Jul 2022 08:32:07 -0400 (EDT) From: Stefan Monnier To: Lars Ingebrigtsen Subject: Re: bug#48447: 27.2.50; Font-lock error in temporary bibtex-mode buffer In-Reply-To: <87o7xts1b7.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 13 Jul 2022 13:24:12 +0200") Message-ID: References: <87mtsv3osc.fsf@tcd.ie> <87o7xts1b7.fsf@gnus.org> Date: Wed, 13 Jul 2022 08:32:05 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.055 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48447 Cc: "Basil L. Contovounesios" , 48447@debbugs.gnu.org, Roland Winkler X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen [2022-07-13 13:24:12] wrote: > "Basil L. Contovounesios" writes: > >> 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've now fixed this in Emacs 29. [...] > @@ -3659,7 +3659,11 @@ if that value is non-nil. > ?\s))))) > (if (and buffer-file-name enable-local-variables) > (add-hook 'hack-local-variables-hook fun nil t) > - (funcall fun)))) > + (funcall fun))) > + ;; We may be using the mode programmatically to extract data, and we > + ;; then need this to be set up first so that sexp-based movement > + ;; commands don't bug out. > + (font-lock-set-defaults)) Hmm... this looks like a workaround rather than a fix of the core problem because I can't see any use of "font-lock internals" in bibtex.el which would justify such a need. I suspect that the problem is linked to `syntax-propertize-via-font-lock`, so I think the fix should go there. Stefan From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 13 08:37:35 2022 Received: (at 48447) by debbugs.gnu.org; 13 Jul 2022 12:37:35 +0000 Received: from localhost ([127.0.0.1]:44896 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBbcU-0001hA-Vf for submit@debbugs.gnu.org; Wed, 13 Jul 2022 08:37:35 -0400 Received: from quimby.gnus.org ([95.216.78.240]:51236) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBbcT-0001gy-16 for 48447@debbugs.gnu.org; Wed, 13 Jul 2022 08:37:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=95l5x2oNZjNCfoloK3eTCsvnagCv7NoOGBU36q7AKh8=; b=kdASVfm35RGbNna7SZahHL8+7y ct9lrG4jxyuyAWOYIwiMaT/tgE8wRXRR8qnImJwEhWHOvKdX6xH/DVGF3dNd9wg2iYMV3mDNLKHCJ K7yqzi6HJiMYloneNIwKwIt4BlG7HMQC03/HqffZQ5eJdFlmNNXgCPPDtAV4zAfk7jcI=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oBbcI-00060X-PM; Wed, 13 Jul 2022 14:37:25 +0200 From: Lars Ingebrigtsen To: Stefan Monnier Subject: Re: bug#48447: 27.2.50; Font-lock error in temporary bibtex-mode buffer In-Reply-To: (Stefan Monnier's message of "Wed, 13 Jul 2022 08:32:05 -0400") References: <87mtsv3osc.fsf@tcd.ie> <87o7xts1b7.fsf@gnus.org> X-Now-Playing: Black Midi's _The Black Midi Anthology Vol. 1: Tales of Suspense and Revenge_: "Out of Season by Ernest Hemingway" Date: Wed, 13 Jul 2022 14:37:21 +0200 Message-ID: <87mtddp4se.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Monnier writes: > Hmm... this looks like a workaround rather than a fix of the core > problem because I can't see any use of "font-lock internals" in > bibtex.el which would justify such a need. > > I suspect that th [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48447 Cc: "Basil L. Contovounesios" , 48447@debbugs.gnu.org, Roland Winkler X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Stefan Monnier writes: > Hmm... this looks like a workaround rather than a fix of the core > problem because I can't see any use of "font-lock internals" in > bibtex.el which would justify such a need. > > I suspect that the problem is linked to > `syntax-propertize-via-font-lock`, so I think the fix should go there. Possibly. The backtrace is Debugger entered--Lisp error: (error "Font-lock trying to use keywords before setting th...") signal(error ("Font-lock trying to use keywords before setting th...")) error("Font-lock trying to use keywords before setting th...") font-lock-compile-keywords((("^[ \11]*\\(@\\)Comment\\>" 1 '(11))) t) font-lock-fontify-syntactic-keywords-region(1 86) #f(compiled-function (start end) #)(1 86) syntax-propertize(86) internal--syntax-propertize(25) scan-sexps(24 1) forward-sexp(1) bibtex-parse-field-string() bibtex-parse-field-text() bibtex-parse-association(bibtex-parse-field-name bibtex-parse-field-text) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 13 15:32:22 2022 Received: (at 48447) by debbugs.gnu.org; 13 Jul 2022 19:32:23 +0000 Received: from localhost ([127.0.0.1]:47780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBi5u-0005oA-P1 for submit@debbugs.gnu.org; Wed, 13 Jul 2022 15:32:22 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39188) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBi5s-0005nt-N7 for 48447@debbugs.gnu.org; Wed, 13 Jul 2022 15:32:21 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56008) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBi5m-0006Uc-6I; Wed, 13 Jul 2022 15:32:14 -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=RZMcX9WP3qigxmaiq2/jhhz6UZNwDhqrMYgi7BSTlEY=; b=JsSqn4qh3NZ8TyJaJc/6 E10b/NiXJnCrwuAr+zScowkxvR5qlT8xscEx2XzgONdi5+jn/nh+cbn9xbj5E0pYJnRQBWQJQ6jko e0zo8fENT8OPrCoDep4kAgK6lWTqFGVyWrRtsfTmypUn895WlRxH643MNCh3VHgkjYj5R8kXf/gZp LGvhTeqcVAzI0DX6gw/t1VhZQQ2PMw/FC7NEme3a6eu7dqo4OAwvQt575W6h/8zM/cfn1M8kzQ7fW O1AUXc6YJc7oCqP6EvfjTwn+/mdvaD6cWObP51yO3k5jigkEWTDG4Hi4+7NEUgfspv6lbZ6b9KjAj adOtJ9oWfZJM5Q==; Received: from [2600:1700:5650:f790::42] (port=44916 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBi5l-0005AC-Tq; Wed, 13 Jul 2022 15:32:13 -0400 From: Roland Winkler To: Stefan Monnier Subject: Re: bug#48447: 27.2.50; Font-lock error in temporary bibtex-mode buffer References: <87mtsv3osc.fsf@tcd.ie> <87o7xts1b7.fsf@gnus.org> Date: Wed, 13 Jul 2022 14:32:13 -0500 In-Reply-To: (Stefan Monnier's message of "Wed, 13 Jul 2022 08:32:05 -0400") Message-ID: <87cze83j2a.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48447 Cc: "Basil L. Contovounesios" , Lars Ingebrigtsen , 48447@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On Wed, Jul 13 2022, Stefan Monnier wrote: > Hmm... this looks like a workaround rather than a fix of the core > problem because I can't see any use of "font-lock internals" in > bibtex.el which would justify such a need. > > I suspect that the problem is linked to > `syntax-propertize-via-font-lock`, so I think the fix should go there. I am not sure I can follow. Are you saying the proper solution to this bug likely needs to go outside bibtex.el but into something like syntax-propertize-via-font-lock? That would put this bug far beyond my emacs hacking skills. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 13 16:34:29 2022 Received: (at 48447) by debbugs.gnu.org; 13 Jul 2022 20:34:29 +0000 Received: from localhost ([127.0.0.1]:47834 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBj41-0007Uv-22 for submit@debbugs.gnu.org; Wed, 13 Jul 2022 16:34:29 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:52697) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBj3z-0007Ui-3z for 48447@debbugs.gnu.org; Wed, 13 Jul 2022 16:34:27 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 7081980740; Wed, 13 Jul 2022 16:34:21 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id E7C7480628; Wed, 13 Jul 2022 16:34:19 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1657744459; bh=NDds26IzIb1F2v/GFrtz5+qzDc0Kycc0yoScQQi/6XM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Da07ZsgelOfFm3mXN114emaqGh9K4xBBifszpeYMkOFowSWKES0krQfYNsaGn1VgB zSg7/JsbWTIm9GagV4aiNJ9WB2Fmtnl2ucmFXcldOzzGqtDN9NM+rycxda8oFHRFss YXhKXPxA8irNo3G49jTV4tFDhqbvol0+MIilwyUpIWIDNs1CiODhCyRJE27AgOGBHI 6QvDouVsoNdqdABvlDxwZkZIc6NLSp8aoxHrEmoJ6IlcwmGMnlCIieRh+34ebKNUeg C0B9wfmdqw6R7HFlJ9xjaQ8Nv+g5pmWPVi6dfrrYgia+tPLyh98cfdgnEZDrjSmN2/ ry5t2ZyGjKvdw== Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id CE097120679; Wed, 13 Jul 2022 16:34:19 -0400 (EDT) From: Stefan Monnier To: Roland Winkler Subject: Re: bug#48447: 27.2.50; Font-lock error in temporary bibtex-mode buffer In-Reply-To: <87cze83j2a.fsf@gnu.org> (Roland Winkler's message of "Wed, 13 Jul 2022 14:32:13 -0500") Message-ID: References: <87mtsv3osc.fsf@tcd.ie> <87o7xts1b7.fsf@gnus.org> <87cze83j2a.fsf@gnu.org> Date: Wed, 13 Jul 2022 16:34:17 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.199 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48447 Cc: "Basil L. Contovounesios" , Lars Ingebrigtsen , 48447@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Roland Winkler [2022-07-13 14:32:13] wrote: > On Wed, Jul 13 2022, Stefan Monnier wrote: >> Hmm... this looks like a workaround rather than a fix of the core >> problem because I can't see any use of "font-lock internals" in >> bibtex.el which would justify such a need. >> >> I suspect that the problem is linked to >> `syntax-propertize-via-font-lock`, so I think the fix should go there. > > I am not sure I can follow. Are you saying the proper solution to this > bug likely needs to go outside bibtex.el but into something like > syntax-propertize-via-font-lock? Yup. > That would put this bug far beyond my emacs hacking skills. The upside is that it's "not your problem" any more :-) Stefan From unknown Mon Jun 16 23:47:28 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 11 Aug 2022 11:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator