GNU bug report logs - #53949
Setting (font-lock-mode 0) in very large buffers will cause highlight-symbol-at-point to fail to highlight all matches

Previous Next

Package: emacs;

Reported by: Dongli Si <kgdboc <at> gmail.com>

Date: Sat, 12 Feb 2022 08:25:01 UTC

Severity: normal

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

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 53949 in the body.
You can then email your comments to 53949 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#53949; Package emacs. (Sat, 12 Feb 2022 08:25:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dongli Si <kgdboc <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 12 Feb 2022 08:25:01 GMT) Full text and rfc822 format available.

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

From: Dongli Si <kgdboc <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Setting (font-lock-mode 0) in very large buffers will cause
 highlight-symbol-at-point to fail to highlight all matches
Date: Sat, 12 Feb 2022 14:38:04 +0800
[Message part 1 (text/plain, inline)]
emacs version is 27.2 (Installed using dnf on fedora 35 system)

test file: https://github.com/torvalds/linux/blob/v5.16/kernel/events/core.c

Step1: emacs -Q kernel/events/core.c
Step2: eval "(font-lock-mode 0)"
Step3: eval "(highlight-regexp "static")"

The "static" keyword at the end of the file is not highlighted.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#53949; Package emacs. (Sat, 12 Feb 2022 08:36:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Dongli Si <kgdboc <at> gmail.com>
Cc: 53949 <at> debbugs.gnu.org
Subject: Re: bug#53949: Setting (font-lock-mode 0) in very large buffers
 will cause highlight-symbol-at-point to fail to highlight all matches
Date: Sat, 12 Feb 2022 09:35:28 +0100
Dongli Si <kgdboc <at> gmail.com> writes:

> emacs version is 27.2 (Installed using dnf on fedora 35 system)
>
> test file: https://github.com/torvalds/linux/blob/v5.16/kernel/events/core.c

Better test URL:  https://raw.githubusercontent.com/torvalds/linux/v5.16/kernel/events/core.c

> Step1: emacs -Q kernel/events/core.c
> Step2: eval "(font-lock-mode 0)"
> Step3: eval "(highlight-regexp "static")"
>
> The "static" keyword at the end of the file is not highlighted.

I can reproduce this in Emacs 27.2, but not in Emacs 29, so I guess this
has been fixed now.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug marked as fixed in version 29.1, send any further explanations to 53949 <at> debbugs.gnu.org and Dongli Si <kgdboc <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 12 Feb 2022 08:36:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#53949; Package emacs. (Sat, 12 Feb 2022 17:16:03 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> linkov.net>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Dongli Si <kgdboc <at> gmail.com>, 53949 <at> debbugs.gnu.org
Subject: Re: bug#53949: Setting (font-lock-mode 0) in very large buffers
 will cause highlight-symbol-at-point to fail to highlight all matches
Date: Sat, 12 Feb 2022 19:01:42 +0200
>> emacs version is 27.2 (Installed using dnf on fedora 35 system)
>>
>> test file: https://github.com/torvalds/linux/blob/v5.16/kernel/events/core.c
>
> Better test URL:  https://raw.githubusercontent.com/torvalds/linux/v5.16/kernel/events/core.c
>
>> Step1: emacs -Q kernel/events/core.c
>> Step2: eval "(font-lock-mode 0)"
>> Step3: eval "(highlight-regexp "static")"
>>
>> The "static" keyword at the end of the file is not highlighted.
>
> I can reproduce this in Emacs 27.2, but not in Emacs 29, so I guess this
> has been fixed now.

In Emacs 28 the default value of `hi-lock-highlight-range'
was increased from 200000 to 2000000.




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

This bug report was last modified 3 years and 93 days ago.

Previous Next


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