From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: 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 Organization: LINKOV.NET Message-ID: <8635ko3uud.fsf@mail.linkov.net> References: <87r18832jz.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22210"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: Dongli Si , 53949@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 12 18:16:45 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nIw0q-0005ay-Ee for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Feb 2022 18:16:44 +0100 Original-Received: from localhost ([::1]:33596 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nIw0p-0000Ul-0v for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Feb 2022 12:16:43 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37188) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIw0C-000843-0V for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2022 12:16:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41657) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nIw0B-0002WI-F2 for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2022 12:16:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nIw0B-0006sV-A7 for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2022 12:16:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Feb 2022 17:16:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53949 X-GNU-PR-Package: emacs Original-Received: via spool by 53949-submit@debbugs.gnu.org id=B53949.164468615126377 (code B ref 53949); Sat, 12 Feb 2022 17:16:03 +0000 Original-Received: (at 53949) by debbugs.gnu.org; 12 Feb 2022 17:15:51 +0000 Original-Received: from localhost ([127.0.0.1]:35546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIvzz-0006rM-3y for submit@debbugs.gnu.org; Sat, 12 Feb 2022 12:15:51 -0500 Original-Received: from relay10.mail.gandi.net ([217.70.178.230]:60223) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIvzw-0006r7-Te for 53949@debbugs.gnu.org; Sat, 12 Feb 2022 12:15:49 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 682A5240006; Sat, 12 Feb 2022 17:15:40 +0000 (UTC) In-Reply-To: <87r18832jz.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 12 Feb 2022 09:35:28 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:226736 Archived-At: >> 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.