From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#39597: 27.0.60: M-x occur adds fontification to fundamental-mode Date: Thu, 20 Feb 2020 16:54:13 +0200 Message-ID: <83zhddjomi.fsf@gnu.org> References: <87imk960qb.fsf@gmail.com> <8736b8eosv.fsf@mail.linkov.net> <874kvna4uv.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="64669"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39597@debbugs.gnu.org, monnier@iro.umontreal.ca, kevin.legouguec@gmail.com To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 20 15:56:58 2020 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 1j4nG6-000Ggz-89 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Feb 2020 15:56:58 +0100 Original-Received: from localhost ([::1]:43768 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4nG5-00029p-8r for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Feb 2020 09:56:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44567) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4nEF-0000E8-Jj for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2020 09:55:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j4nEE-0004hp-KD for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2020 09:55:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38203) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j4nEE-0004hj-H2 for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2020 09:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j4nEE-0006B9-GH for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2020 09:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Feb 2020 14:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39597 X-GNU-PR-Package: emacs Original-Received: via spool by 39597-submit@debbugs.gnu.org id=B39597.158221047823709 (code B ref 39597); Thu, 20 Feb 2020 14:55:02 +0000 Original-Received: (at 39597) by debbugs.gnu.org; 20 Feb 2020 14:54:38 +0000 Original-Received: from localhost ([127.0.0.1]:44170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j4nDq-0006AL-3T for submit@debbugs.gnu.org; Thu, 20 Feb 2020 09:54:38 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57608) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j4nDo-0006A8-H4 for 39597@debbugs.gnu.org; Thu, 20 Feb 2020 09:54:36 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j4nDi-0004Qx-MU; Thu, 20 Feb 2020 09:54:30 -0500 Original-Received: from [176.228.60.248] (port=2431 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j4nDh-0002NC-Sl; Thu, 20 Feb 2020 09:54:30 -0500 In-reply-to: <874kvna4uv.fsf@mail.linkov.net> (message from Juri Linkov on Wed, 19 Feb 2020 00:49:12 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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:176295 Archived-At: > From: Juri Linkov > Date: Wed, 19 Feb 2020 00:49:12 +0200 > Cc: 39597@debbugs.gnu.org, > Kévin Le Gouguec > > > diff --git a/lisp/font-lock.el b/lisp/font-lock.el > > index 438511b647..bf045d9d7e 100644 > > --- a/lisp/font-lock.el > > +++ b/lisp/font-lock.el > > @@ -1139,9 +1139,10 @@ font-lock-ensure > > "Make sure the region BEG...END has been fontified. > > If the region is not specified, it defaults to the entire accessible > > portion of the buffer." > > - (font-lock-set-defaults) > > - (funcall font-lock-ensure-function > > - (or beg (point-min)) (or end (point-max)))) > > + (when (font-lock-specified-p t) > > + (font-lock-set-defaults) > > + (funcall font-lock-ensure-function > > + (or beg (point-min)) (or end (point-max))))) > > > > (defun font-lock-default-fontify-buffer () > > "Fontify the whole buffer using `font-lock-fontify-region-function'." > > I confirm this fixes the problem reported by Kévin, > so maybe this should be installed to emacs-27. Doesn't sound serious enough to do this on the release branch. We've had this issue for quite some time, no?