emacs erlang broken: Error during redisplay: (jit-lock-function 504) signaled (void-function case)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
erlang (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Opening an Erlang source in emacs with erlang-mode renders the file with incomplete syntax highlighting. At the same time a error message is logged in emacs:
Error during redisplay: (jit-lock-function 504) signaled (void-function case)
A Lisp backtrace for this:
Debugger entered--Lisp error: (void-function case)
(case (nth 3 state) (34 font-lock-
(cond ((nth 3 state) (case (nth 3 state) (34 font-lock-
erlang-
font-
font-
font-
#f(compiled-
run-hook-
jit-lock-
jit-lock-
jit-lock-
window-
linum-
mapc(
linum-
linum-
set-window-
window-
display-
display-
pop-to-
pop-to-
find-
funcall-
call-
command-
The backtrace points to the erlang-
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: erlang-mode 1:24.1.
Uname: Linux 5.15.13-
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu75
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: XFCE
Date: Wed Jan 12 10:30:48 2022
Dependencies: emacsen-common 3.0.4
InstallationDate: Installed on 2017-09-26 (1568 days ago)
InstallationMedia: Ubuntu-Server 17.10 "Artful Aardvark" - Alpha amd64 (20170924)
PackageArchitec
SourcePackage: erlang
UpgradeStatus: Upgraded to jammy on 2021-12-30 (12 days ago)
In case anyone cares (and I looks like the maintainer does not), backing out debian/ patches/ atomsfontlock. patch from the source package fixes the problem.
Erlang syntax highlighting works as expected after that.