* bug#53949: Setting (font-lock-mode 0) in very large buffers will cause highlight-symbol-at-point to fail to highlight all matches
@ 2022-02-12 6:38 Dongli Si
2022-02-12 8:35 ` Lars Ingebrigtsen
0 siblings, 1 reply; 3+ messages in thread
From: Dongli Si @ 2022-02-12 6:38 UTC (permalink / raw)
To: 53949
[-- Attachment #1: Type: text/plain, Size: 320 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 742 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#53949: Setting (font-lock-mode 0) in very large buffers will cause highlight-symbol-at-point to fail to highlight all matches
2022-02-12 6:38 bug#53949: Setting (font-lock-mode 0) in very large buffers will cause highlight-symbol-at-point to fail to highlight all matches Dongli Si
@ 2022-02-12 8:35 ` Lars Ingebrigtsen
2022-02-12 17:01 ` Juri Linkov
0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2022-02-12 8:35 UTC (permalink / raw)
To: Dongli Si; +Cc: 53949
Dongli Si <kgdboc@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
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#53949: Setting (font-lock-mode 0) in very large buffers will cause highlight-symbol-at-point to fail to highlight all matches
2022-02-12 8:35 ` Lars Ingebrigtsen
@ 2022-02-12 17:01 ` Juri Linkov
0 siblings, 0 replies; 3+ messages in thread
From: Juri Linkov @ 2022-02-12 17:01 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: Dongli Si, 53949
>> 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-02-12 17:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-12 6:38 bug#53949: Setting (font-lock-mode 0) in very large buffers will cause highlight-symbol-at-point to fail to highlight all matches Dongli Si
2022-02-12 8:35 ` Lars Ingebrigtsen
2022-02-12 17:01 ` Juri Linkov
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).