From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Newsgroups: gmane.emacs.bugs Subject: bug#39597: 27.0.60: M-x occur adds fontification to fundamental-mode Date: Thu, 20 Feb 2020 23:27:41 +0100 Message-ID: <87sgj4sxlu.fsf@gmail.com> References: <87imk960qb.fsf@gmail.com> <8736b8eosv.fsf@mail.linkov.net> <874kvna4uv.fsf@mail.linkov.net> <83zhddjomi.fsf@gnu.org> <871rqpt6qm.fsf@gmail.com> <83wo8hjajp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="77587"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: 39597@debbugs.gnu.org Cancel-Lock: sha1:wv7v0TKUDsaWEE7Q/cbG3vdXz58= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 20 23:28:11 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 1j4uIl-000K4t-B2 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Feb 2020 23:28:11 +0100 Original-Received: from localhost ([::1]:49956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4uIk-0002pR-DI for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Feb 2020 17:28:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53396) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4uIc-0002pG-P0 for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2020 17:28:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j4uIb-0002m8-QB for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2020 17:28:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40078) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j4uIb-0002lx-NG for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2020 17:28:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j4uIb-0002Z7-Jc for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2020 17:28:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87imk960qb.fsf@gmail.com> Resent-From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Feb 2020 22:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39597 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15822376749849 (code B ref -1); Thu, 20 Feb 2020 22:28:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Feb 2020 22:27:54 +0000 Original-Received: from localhost ([127.0.0.1]:46051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j4uIT-0002Ym-OO for submit@debbugs.gnu.org; Thu, 20 Feb 2020 17:27:53 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:40744) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j4uIS-0002Ye-Do for submit@debbugs.gnu.org; Thu, 20 Feb 2020 17:27:52 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53361) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4uIR-0002XE-DH for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2020 17:27:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j4uIQ-0002fa-GX for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2020 17:27:51 -0500 Original-Received: from ciao.gmane.io ([159.69.161.202]:43808) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j4uIQ-0002eX-A6 for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2020 17:27:50 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1j4uIO-000JUB-Ir for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2020 23:27:48 +0100 X-Injected-Via-Gmane: http://gmane.org/ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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:176318 Archived-At: Eli Zaretskii writes: > Can you show what commit introduced that? Yup; quoting Juri above: >> I think commit fb16313025 (2018-12-18T23:10:09Z!juri linkov.net) had an >> unintended side-effect on fundamental-mode. From emacs -Q: > > This commit contains this change: > > diff --git a/lisp/replace.el b/lisp/replace.el > index dcae12e9b7..b8f231eb55 100644 > --- a/lisp/replace.el > +++ b/lisp/replace.el > @@ -1907,10 +1907,8 @@ occur-engine > global-matches))) > > (defun occur-engine-line (beg end &optional keep-props) > - (if (and keep-props (if (boundp 'jit-lock-mode) jit-lock-mode) > - (text-property-not-all beg end 'fontified t)) > - (if (fboundp 'jit-lock-fontify-now) > - (jit-lock-fontify-now beg end))) > + (if (and keep-props font-lock-mode) > + (font-lock-ensure beg end)) > (if (and keep-props (not (eq occur-excluded-properties t))) > (let ((str (buffer-substring beg end))) > (remove-list-of-text-properties $ git branch --remote --contains fb16313025 | grep origin/emacs- origin/emacs-27