GNU bug report logs - #52709
29.0.50; Font-lock trying to use keywords before setting them up

Previous Next

Package: emacs;

Reported by: martin rudalics <rudalics <at> gmx.at>

Date: Tue, 21 Dec 2021 18:00:01 UTC

Severity: normal

Merged with 52297

Found in version 29.0.50

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 52709 in the body.
You can then email your comments to 52709 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#52709; Package emacs. (Tue, 21 Dec 2021 18:00:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to martin rudalics <rudalics <at> gmx.at>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 21 Dec 2021 18:00:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Bug-Gnu-Emacs <bug-gnu-emacs <at> gnu.org>
Subject: 29.0.50; Font-lock trying to use keywords before setting them up
Date: Tue, 21 Dec 2021 18:59:30 +0100
When trying to ediff a C file or find occurrences in it on master I
frequently get this error.  A typical backtrace looks like


Debugger entered--Lisp error: (error "Font-lock trying to use keywords before setting them up")
  signal(error ("Font-lock trying to use keywords before setting them up"))
  error("Font-lock trying to use keywords before setting them up")
  font-lock-compile-keywords(nil)
  font-lock-fontify-keywords-region(1 112 nil)
  font-lock-default-fontify-region(1523 1532 nil)
  c-font-lock-fontify-region(1523 1532)
  c-force-redisplay(1523 1532)
  apply(c-force-redisplay (1523 1532))
  timer-event-handler([t 25023 28385 699506 nil c-force-redisplay (1523 1532) nil 18000 nil])


I don't know what C mode is trying to do here but I just want to turn
this timer off.  Apparently, this is not possible without substantial
surgery in the cc-files so for the moment I simply use the Emacs 28
version of these files.  Doing normal work with C files is currently
impossible with master here.

martin


In GNU Emacs 29.0.50 (build 6, x86_64-pc-linux-gnu, GTK+ Version 3.24.5, cairo version 1.16.0)
 of 2021-12-19 built on restno
Repository revision: 8f82a83caec9ad48a6d4abc4dc26bed67f0e89e3
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12004000
System Description: Debian GNU/Linux 10 (buster)

Configured using:
 'configure --with-gif=ifavailable --with-tiff=ifavailable
 --with-gnutls=no --without-pop 'CFLAGS=-O3 -no-pie''

Configured features:
CAIRO DBUS FREETYPE GIF GLIB GSETTINGS HARFBUZZ JPEG LIBSELINUX MODULES
NOTIFY INOTIFY PDUMPER PNG SECCOMP SOUND THREADS TOOLKIT_SCROLL_BARS X11
XDBE XIM XPM GTK3 ZLIB

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

Major mode: Text

Minor modes in effect:
  pop-up-mini-mode: t
  shell-dirtrack-mode: t
  scroll-restore-mode: t
  tooltip-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  context-menu-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  minibuffer-regexp-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  temp-buffer-resize-mode: t
  column-number-mode: t
  line-number-mode: t
  auto-fill-function: do-auto-fill
  indent-tabs-mode: t
  transient-mark-mode: t

Load-path shadows:
/home/martin/emacs-git/trunk/lisp/emacs-lisp/eieio-compat hides /home/martin/emacs-git/trunk/lisp/obsolete/eieio-compat

Features:
(shadow mail-extr warnings emacsbug message mailcap yank-media rmc puny
rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config
gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils time-date thingatpt speck pop-up-mini vc cc-mode
cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars
cc-defs vc-git vc-dispatcher bug-reference elp vc-hg diff-mode
ediff-vers ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help
ediff-init ediff-util local-tags info-look find-func elinfo-support
elinfo texinfo texinfo-loaddefs info shell pcomplete comint ansi-color
ring sidebar bookmark seq subr-x byte-opt bytecomp byte-compile cconv
text-property-search sort m&d scroll-restore regexp-lock time-stamp
eldoc-tooltip pcase easy-mmode find-dired dired dired-loaddefs cus-edit
pp cus-load wid-edit cl-loaddefs cl-lib jka-compr ls-lisp gv iso-transl
tooltip eldoc paren electric uniquify ediff-hook vc-hooks
lisp-float-type elisp-mode 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 lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock
font-lock syntax 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 emoji-zwj charscript
charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray
cl-preloaded nadvice button loaddefs faces cus-face macroexp files
window text-properties overlay sha1 md5 base64 format env code-pages
mule custom widget keymap hashtable-print-readable backquote threads
dbusbind inotify dynamic-setting system-font-setting font-render-setting
cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 335299 40229)
 (symbols 48 14392 3)
 (strings 32 42429 3606)
 (string-bytes 1 1468638)
 (vectors 16 22758)
 (vector-slots 8 305409 30979)
 (floats 8 115 273)
 (intervals 56 33754 1489)
 (buffers 992 40))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52709; Package emacs. (Tue, 21 Dec 2021 18:12:02 GMT) Full text and rfc822 format available.

Message #8 received at 52709 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 52709 <at> debbugs.gnu.org
Subject: Re: bug#52709: 29.0.50;
 Font-lock trying to use keywords before setting them up
Date: Tue, 21 Dec 2021 20:11:37 +0200
> From: martin rudalics <rudalics <at> gmx.at>
> Date: Tue, 21 Dec 2021 18:59:30 +0100
> 
> When trying to ediff a C file or find occurrences in it on master I
> frequently get this error.  A typical backtrace looks like
> 
> 
> Debugger entered--Lisp error: (error "Font-lock trying to use keywords before setting them up")
>    signal(error ("Font-lock trying to use keywords before setting them up"))
>    error("Font-lock trying to use keywords before setting them up")
>    font-lock-compile-keywords(nil)
>    font-lock-fontify-keywords-region(1 112 nil)
>    font-lock-default-fontify-region(1523 1532 nil)
>    c-font-lock-fontify-region(1523 1532)
>    c-force-redisplay(1523 1532)
>    apply(c-force-redisplay (1523 1532))
>    timer-event-handler([t 25023 28385 699506 nil c-force-redisplay (1523 1532) nil 18000 nil])

I think this is bug#52297, which is still unsolved.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52709; Package emacs. (Tue, 21 Dec 2021 18:22:02 GMT) Full text and rfc822 format available.

Message #11 received at 52709 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 52709 <at> debbugs.gnu.org
Subject: Re: bug#52709: 29.0.50; Font-lock trying to use keywords before
 setting them up
Date: Tue, 21 Dec 2021 19:21:26 +0100
merge 52709 52297
quit

> I think this is bug#52297, which is still unsolved.

Thanks.  I confused this with that "other issue" Alan recently reverted.

martin




Merged 52297 52709. Request was from martin rudalics <rudalics <at> gmx.at> to control <at> debbugs.gnu.org. (Tue, 21 Dec 2021 18:22:02 GMT) Full text and rfc822 format available.

Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 09 Feb 2022 08:46:03 GMT) Full text and rfc822 format available.

Reply sent to Alan Mackenzie <acm <at> muc.de>:
You have taken responsibility. (Thu, 10 Feb 2022 17:16:02 GMT) Full text and rfc822 format available.

Notification sent to martin rudalics <rudalics <at> gmx.at>:
bug acknowledged by developer. (Thu, 10 Feb 2022 17:16:02 GMT) Full text and rfc822 format available.

Message #20 received at 52709-done <at> debbugs.gnu.org (full text, mbox):

From: Alan Mackenzie <acm <at> muc.de>
To: martin rudalics <rudalics <at> gmx.at>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, Eli Zaretskii <eliz <at> gnu.org>,
 52709-done <at> debbugs.gnu.org
Subject: Re: bug#52709 [ was: bug#52297: 29.0.50; Error in c-force-redisplay
 timer ]
Date: Thu, 10 Feb 2022 17:15:49 +0000
Hello, Martin.

On Thu, Feb 10, 2022 at 09:26:36 +0100, martin rudalics wrote:
>  > Would you try out the following patch, please, which fixes this bug.
>  > I'm optimistic it will have fixed the main bug.

> It fixes the problem here.  Please install.

Excellent, thanks!  I've installed it to master.

I'm closing the bug with this post (though it might have been closed
anyway).

> Thanks, martin

-- 
Alan Mackenzie (Nuremberg, Germany).




Reply sent to Alan Mackenzie <acm <at> muc.de>:
You have taken responsibility. (Thu, 10 Feb 2022 17:16:02 GMT) Full text and rfc822 format available.

Notification sent to Eli Zaretskii <eliz <at> gnu.org>:
bug acknowledged by developer. (Thu, 10 Feb 2022 17:16:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 11 Mar 2022 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 46 days ago.

Previous Next


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