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: Wed, 19 Feb 2020 19:57:07 +0100 Message-ID: <87k14iiews.fsf@gmail.com> References: <87imk960qb.fsf@gmail.com> <8736b8eosv.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="22802"; 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, Juri Linkov To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 19 19:58:10 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 1j4UXy-0005nO-Fq for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Feb 2020 19:58:10 +0100 Original-Received: from localhost ([::1]:58530 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4UXx-0002pH-Hb for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Feb 2020 13:58:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36328) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4UXq-0002mj-Vm for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2020 13:58:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j4UXp-0000pL-Vx for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2020 13:58:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37409) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j4UXp-0000pH-Sg for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2020 13:58:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j4UXp-0000lv-Rr for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2020 13:58: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: Wed, 19 Feb 2020 18:58:01 +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.15821386372920 (code B ref 39597); Wed, 19 Feb 2020 18:58:01 +0000 Original-Received: (at 39597) by debbugs.gnu.org; 19 Feb 2020 18:57:17 +0000 Original-Received: from localhost ([127.0.0.1]:43382 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j4UX7-0000l1-3L for submit@debbugs.gnu.org; Wed, 19 Feb 2020 13:57:17 -0500 Original-Received: from mail-wr1-f45.google.com ([209.85.221.45]:41856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j4UX5-0000ko-NS for 39597@debbugs.gnu.org; Wed, 19 Feb 2020 13:57:16 -0500 Original-Received: by mail-wr1-f45.google.com with SMTP id c9so1792560wrw.8 for <39597@debbugs.gnu.org>; Wed, 19 Feb 2020 10:57:15 -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=uVKeQDWlJKuEcTuQe1GHv03HAIWRt3hiF9nvrlW7rlw=; b=IOixkynoXEW8J+czzqz7IL4KoG7GgwhAE6liTX2NzKJP8wQE8F6IAecn3BlerfPJvy uA0D0JZdQTxkk8ehQptMpYnUC5BKXVZGt3dpp50l1z8kmzVK+MiHKTimQqHkcFA92Qf9 bQibd+4Nr+VRudo8/y+5xXpX5SkhqfcDRCuS7a9TMZvfIiYPdB+zbFbANiRxpmuwGSCL TSAgADuNlOGRrqkyF4I1TraJ5KTot+L4htgQYlheS+PqSXURbCBnvzu/afXJfE7I4Khp cXJIIDCKKixjeanbmX+36Wko3EgSeRUFPZdUIVAoW8eI2/54Ij9rzICoHE8s/dqmJo6E hx0Q== 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=uVKeQDWlJKuEcTuQe1GHv03HAIWRt3hiF9nvrlW7rlw=; b=QONCn5SYiCGfKp3Sp2jwKqL2puB3BleYFBZqW3LdqGHbxgX8El0Pt/ROX6N/glkEA4 SA63MJq2PL/JO86+8b6syvfLQvdzZDUn5flR2z3HKOsgeHCW4fCsP7AyWvy9VI4GcEwT 2YSHxoVezkNleZDLvGUrPVN92JkiaZ9e/2dFT2i7Ju6gKSMSuqZIVCKMh4dRsE29ezCW pC0VZSoVhS8Z/FPsyCNbVx8unERLz3cFONLrgccTlRNOrdv7XBtnzmO+jficGOOozGCQ 51me50WIxj50DaMMrppzkYfjKNXuBLft5YBW/97TEjeHnl8XrNUixG/CwMhp2wPoE2X/ fusg== X-Gm-Message-State: APjAAAWkw4oxwwiWjgFEtRFRIpdcAzDUB51fneme02xxYl9J+Qa+Xte9 I5NUCQLCT937LsMr6X332Ztzuq6i128= X-Google-Smtp-Source: APXvYqwz12y8jnXX1WGbtfbKDBNiOueCjWPAE4n+xnE3YVadNyWRlQVqIlvF84JokZ07RPEFAAOOUA== X-Received: by 2002:adf:facc:: with SMTP id a12mr9484352wrs.100.1582138629219; Wed, 19 Feb 2020 10:57:09 -0800 (PST) Original-Received: from my-little-tumbleweed (200.143.13.109.rev.sfr.net. [109.13.143.200]) by smtp.gmail.com with ESMTPSA id e17sm951082wrn.62.2020.02.19.10.57.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Feb 2020 10:57:08 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Tue, 18 Feb 2020 08:51:37 -0500") 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:176257 Archived-At: Stefan Monnier writes: > Maybe something like the patch below? I can confirm that this fixes the issue. > 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 g= uess. I tried to read as much as I could about font-lock in the Emacs and Elisp manuals, but I'm still overwhelmed by all the variables and functions involved, e.g. - font-lock-mode - font-lock-specified-p - font-lock-ensure - font-lock-set-defaults - font-lock-fontified - font-lock-defaults - font-lock-major-mode M-? and M-. make it trivial to say which function sets which variables, which predicate depends on which variables, which variable influences which functions=E2=80=A6 but I can't figure out what the overall design is, i.e. which symbols are font-lock plumbing, which ones are meant to be used by major modes, which ones should be used by minor modes=E2=80=A6 IOW I have no idea where the check should be place either :/