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: Tue, 25 Feb 2020 21:45:29 +0100 Message-ID: <87imjue6qe.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> <87sgj4sxlu.fsf@gmail.com> <83tv3kjslp.fsf@gnu.org> <87a75biwp6.fsf@gmail.com> <871rqmnob4.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="129917"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 39597@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 25 21:46: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 1j6h5u-000Xhj-GK for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Feb 2020 21:46:18 +0100 Original-Received: from localhost ([::1]:34948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6h5t-0000mF-6U for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Feb 2020 15:46:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50576) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6h5f-0000m3-CE for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2020 15:46:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6h5e-0008QA-4T for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2020 15:46:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50205) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j6h5d-0008Pn-Sw for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2020 15:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j6h5d-00069y-Rf for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2020 15:46:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Feb 2020 20:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39597 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 39597-submit@debbugs.gnu.org id=B39597.158266354123651 (code B ref 39597); Tue, 25 Feb 2020 20:46:01 +0000 Original-Received: (at 39597) by debbugs.gnu.org; 25 Feb 2020 20:45:41 +0000 Original-Received: from localhost ([127.0.0.1]:56178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6h5J-00069P-6B for submit@debbugs.gnu.org; Tue, 25 Feb 2020 15:45:41 -0500 Original-Received: from mail-wr1-f51.google.com ([209.85.221.51]:46465) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6h5H-000697-HM for 39597@debbugs.gnu.org; Tue, 25 Feb 2020 15:45:39 -0500 Original-Received: by mail-wr1-f51.google.com with SMTP id j7so241395wrp.13 for <39597@debbugs.gnu.org>; Tue, 25 Feb 2020 12:45:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=SFkpEnI+3nTghn3UHt+AVKhU1dqWpCzZw3b3W6IbA60=; b=G2nyv4buzvHvBNiSNtQLftGsOjqE9lHpi/G7mMCOTOINclPFceZaXrWT41UeTTmQPj ExhJe4mcQtV9IijjhvGVEd1ABHhQwKwzdtWzS6GK+o2kQWQPBmhtFK35g+ugSn01n5G/ SVvAfWmSfXBg2wEzxQicTmXmelHONwCa4fXVr43TIshEJZCDV37gTmEdYh4Mp013Gdvq lhzYV/5FCIQfng9qIz/ZUT265mA+4mphHgeYLWe9eSe6ZUJQyGQPxMeNp+Lv3XQGRaQy NTInVQFtv82iI1HdkfrIYYpSa5xUXiEnbDQ4mZM9EsXhBTPQZul6UNC6/HYTkiu4P0UU J6ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=SFkpEnI+3nTghn3UHt+AVKhU1dqWpCzZw3b3W6IbA60=; b=TkQqoBBqbAwzVa3j7LNOBJisiunv4XL4BxFc0/jpwwL77tglh9KeZbSM3SZAjTe67m 4KzwRcSGYxZQXs4Mna14j1GYZ4c0AfmjLUP44QsGZ1Xrww/gLEV0v5QcKAUsjmWUGdhP LWzdGktfnuRbn/AcQ7nDvYltb1dp1Wh8BHCOdK2Sd/oO9tsoBLaop1r5/3/+c15c9qKR 1S5qBsMYQmlIQg3nORHs4r2TGn0tMC/4LEh9CapgnKo6IDwp469Fc6EdcraXzKNtB6IW jQZar2+JGE18sztNR5CW8wYGuwpUel0fUEv+KLC5EIwqW8XN9TDP7EhunnA+JaS06zHw FeDg== X-Gm-Message-State: APjAAAWXNfy0w4NqDe4m/CydUDTRL9tEPjF1uaMjOw80TuhBU54DlHV1 YNUH55+teTsurnNVlO2fRs88MQbt X-Google-Smtp-Source: APXvYqxKuUDu7O/7XzUroBcZNZuTAmhxfY+Z26fuOqPlwpFnIsMie3z4XkoNflNNyBlS2OqHMfM+sA== X-Received: by 2002:adf:df8f:: with SMTP id z15mr951109wrl.184.1582663533132; Tue, 25 Feb 2020 12:45:33 -0800 (PST) Original-Received: from hirondell (alyon-655-1-131-52.w90-14.abo.wanadoo.fr. [90.14.202.52]) by smtp.gmail.com with ESMTPSA id f127sm5724417wma.4.2020.02.25.12.45.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2020 12:45:32 -0800 (PST) In-Reply-To: <871rqmnob4.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 23 Feb 2020 02:24:15 +0200") 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:176476 Archived-At: Juri Linkov writes: >> [1] E.g. (I was about to report this as a distinct issue=E2=80=A6 someda= y=E2=80=A6) >> >> C-x b foo >> foo RET bar RET baz RET >> M-s h r a RET RET >> aaaa >> >> =E2=87=92 In all modes *but* fundamental-mode, hi-lock-mode dynamica= lly >> highlights new matches (e.g. the added "aaaa" string here). >> >> This bug is not strictly related to the current one, since the >> former has been with us since at least 26.3, but that does make me >> wonder whether both issues could be solved by turning some font-lock >> knob in fundamental-mode=E2=80=A6 > > Searching for "font-lock-specified-p" in hi-lock.el > shows these fragments of code. This first condition decides > whether to use font-lock for highlighting matches > that returns nil in fundamental-mode: > > (if (and font-lock-mode (font-lock-specified-p major-mode)) > > ;; FIXME: Calling `font-lock-remove-keywords' causes > ;; `font-lock-specified-p' to go from nil to non-nil (because it > ;; calls font-lock-set-defaults). This is yet-another bug in > ;; font-lock-add/remove-keywords, which we circumvent here by > ;; testing `font-lock-fontified' (bug#19796). Thanks, I'll look into this SomeDay=E2=84=A2 before I submit a bug report t= hen. And thank you for fixing the other bug on emacs-27 and master!