GNU bug report logs -
#40409
27.0.90; void variable n-reb
Previous Next
Reported by: Serghei Iakovlev <egrep <at> protonmail.ch>
Date: Fri, 3 Apr 2020 16:22:02 UTC
Severity: normal
Tags: fixed, patch
Found in version 27.0.90
Fixed in version 27.1
Done: Noam Postavsky <npostavs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 40409 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
tags 40409 + patch
quit
Serghei Iakovlev <egrep <at> protonmail.ch> writes:
> Hello,
>
> This is reproducible using 'emacs -Q':
>
> - Open Emacs
> - M-x re-builder RED
> - Take a look at *Messages* buffer:
>
> Error running timer ‘jit-lock--debug-fontify’: (void-variable n-reb)
The code causing this was added by [1: c1234ca9c3] (from Bug#6347), so
it's a regression since 26.3.
The problem seems to be that the initial binding of n-reb is missing,
and also that the code assumes dynamic binding (using symbol-value and
set on n-reb). I would suggest the following patch:
[0001-Fix-void-variable-n-reb-in-re-builder-Bug-40409.patch (text/plain, attachment)]
[Message part 3 (text/plain, inline)]
If that is too big for emacs-27, the absolute mimimum fix would be:
modified lisp/emacs-lisp/re-builder.el
@@ -779,7 +779,9 @@ reb-mark-non-matching-parenthesis
;; We have a small string, check the whole of it, but wait until
;; everything else is fontified.
(when (>= bound (point-max))
- (let (left-pars
+ (defvar n-reb)
+ (let ((n-reb 0)
+ left-pars
faces-here)
(goto-char (point-min))
(while (and (reb-while 100 'n-reb "mark-par")
[1: c1234ca9c3]: 2019-06-27 19:08:42 +0200
Add more fontification to regexp builder mode
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=c1234ca9c3703cd8bae3912f3e0a1948bae3aed1
This bug report was last modified 5 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.