all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Kévin Le Gouguec" <kevin.legouguec@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 39597@debbugs.gnu.org, Juri Linkov <juri@linkov.net>
Subject: bug#39597: 27.0.60: M-x occur adds fontification to fundamental-mode
Date: Wed, 19 Feb 2020 19:57:07 +0100	[thread overview]
Message-ID: <87k14iiews.fsf@gmail.com> (raw)
In-Reply-To: <jwvlfp0gg49.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Tue, 18 Feb 2020 08:51:37 -0500")

Stefan Monnier <monnier@iro.umontreal.ca> 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 guess.

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… 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…

IOW I have no idea where the check should be place either :/





      parent reply	other threads:[~2020-02-19 18:57 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-14  8:18 bug#39597: 27.0.60: M-x occur adds fontification to fundamental-mode Kévin Le Gouguec
2020-02-18  0:12 ` Juri Linkov
2020-02-18 13:51   ` Stefan Monnier
2020-02-18 22:49     ` Juri Linkov
2020-02-20 14:54       ` Eli Zaretskii
2020-02-20 19:10         ` Kévin Le Gouguec
2020-02-20 19:58           ` Eli Zaretskii
2020-02-20 22:27             ` Kévin Le Gouguec
2020-02-21  7:40               ` Eli Zaretskii
2020-02-21 19:09                 ` Kévin Le Gouguec
2020-02-23  0:24                   ` Juri Linkov
2020-02-25 20:45                     ` Kévin Le Gouguec
2020-02-23  0:37                 ` Juri Linkov
2020-02-21  0:04         ` Juri Linkov
2020-02-19 18:57     ` Kévin Le Gouguec [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k14iiews.fsf@gmail.com \
    --to=kevin.legouguec@gmail.com \
    --cc=39597@debbugs.gnu.org \
    --cc=juri@linkov.net \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.