From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#39597: 27.0.60: M-x occur adds fontification to fundamental-mode Date: Wed, 19 Feb 2020 00:49:12 +0200 Organization: LINKOV.NET Message-ID: <874kvna4uv.fsf@mail.linkov.net> References: <87imk960qb.fsf@gmail.com> <8736b8eosv.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="10931"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 39597@debbugs.gnu.org, =?UTF-8?Q?K=C3=A9vin?= Le Gouguec To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 18 23:57:18 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 1j4Bnp-0002gX-Rd for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Feb 2020 23:57:18 +0100 Original-Received: from localhost ([::1]:42992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4Bno-0004hH-SL for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Feb 2020 17:57:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39575) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4Bnd-0004eB-7a for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2020 17:57:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j4Bnb-0005vy-1h for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2020 17:57:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35472) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j4Bna-0005uR-Sy for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2020 17:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j4Bna-0007F3-SY for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2020 17:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Feb 2020 22:57: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.158206658427769 (code B ref 39597); Tue, 18 Feb 2020 22:57:02 +0000 Original-Received: (at 39597) by debbugs.gnu.org; 18 Feb 2020 22:56:24 +0000 Original-Received: from localhost ([127.0.0.1]:41441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j4Bmy-0007Do-DX for submit@debbugs.gnu.org; Tue, 18 Feb 2020 17:56:24 -0500 Original-Received: from black.elm.relay.mailchannels.net ([23.83.212.19]:29346) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j4Bmw-0007Dg-Ec for 39597@debbugs.gnu.org; Tue, 18 Feb 2020 17:56:22 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 2CDAA5A1226; Tue, 18 Feb 2020 22:56:21 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a86.g.dreamhost.com (100-96-217-5.trex.outbound.svc.cluster.local [100.96.217.5]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id A55365A0D3C; Tue, 18 Feb 2020 22:56:20 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a86.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Tue, 18 Feb 2020 22:56:21 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Suffer-Wiry: 18b27665798528e9_1582066580920_3574130415 X-MC-Loop-Signature: 1582066580920:1878087919 X-MC-Ingress-Time: 1582066580920 Original-Received: from pdx1-sub0-mail-a86.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a86.g.dreamhost.com (Postfix) with ESMTP id 283827EF4D; Tue, 18 Feb 2020 14:56:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=linkov.net; bh=9xIuSc A/cX+xfWXhUUg9wH68Y9E=; b=ZjbiwchGRmD+V1oncDmAoiHdb1foPY0NNFfOGU 9+SR8tVtwBnuGPMJ5MLclSKABc2P8CDnEKxzJp/hls+EGi+Zjia9lC5xNLRvDOHB MDLznLix/kg3g7tC5WVjkAqAytwP6u5RyDlqH/oz87BvJ5WoW565tj+pJpYPIgGx UcryA= Original-Received: from localhost.linkov.net (m91-129-103-27.cust.tele2.ee [91.129.103.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a86.g.dreamhost.com (Postfix) with ESMTPSA id 7FA977EF56; Tue, 18 Feb 2020 14:56:12 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a86 In-Reply-To: (Stefan Monnier's message of "Tue, 18 Feb 2020 08:51:37 -0500") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrjeelgddtudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtgfesthekredttderudenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdefrddvjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehlohgtrghlhhhoshhtrdhlihhnkhhovhdrnhgvthdpihhnvghtpeeluddruddvledruddtfedrvdejpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepmhhonhhnihgvrhesihhrohdruhhmohhnthhrvggrlhdrtggr 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:176224 Archived-At: > Maybe something like the patch below? > I'm not sufficiently familiar with the design of `font-lock-specified-p= ` > to be completely sure where the check should be placed; this is my best= guess. > 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))))) > =20 > (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=E9vin, so maybe this should be installed to emacs-27.