all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: Morgan Willcock <morgan@ice9.digital>
Cc: 68352@debbugs.gnu.org
Subject: bug#68352: 29.1; gnus-message-citation-mode removes values from font-lock-keywords
Date: Tue, 09 Jan 2024 13:44:10 -0800	[thread overview]
Message-ID: <87plyafahh.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <8734v62rc2.fsf@ice9.digital> (Morgan Willcock's message of "Tue,  09 Jan 2024 20:18:37 +0000")

Morgan Willcock <morgan@ice9.digital> writes:

> When Gnus enables gnus-message-citation-mode in message buffers, as it
> does by default, it calls the function `font-lock-set-defaults' and
> loses any additional font-lock rules which may have been added by global
> minor-modes.

Thanks for the report. I don't know font locking well enough to know
what the right solution is here. It looks calling `font-lock-flush' will
also end up calling `font-lock-set-defaults' as well, at least with
default values:

font-lock-flush-function ->
font-lock-after-change-function ->
font-lock-fontify-region ->
font-lock-set-defaults

Is the problem setting `font-lock-set-defaults' to nil? Is there
anything else you can recommend?

Thanks,
Eric





  reply	other threads:[~2024-01-09 21:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-09 20:18 bug#68352: 29.1; gnus-message-citation-mode removes values from font-lock-keywords Morgan Willcock
2024-01-09 21:44 ` Eric Abrahamsen [this message]
2024-01-09 22:21   ` Morgan Willcock
2024-01-10  5:25     ` Eric Abrahamsen
2024-01-10 15:21       ` Eric Abrahamsen
2024-01-10 18:51         ` Eric Abrahamsen
2024-01-10 19:20           ` Morgan Willcock
2024-01-10 22:16       ` Morgan Willcock
2024-01-11 11:57         ` Morgan Willcock
2024-02-11  8:48           ` Eli Zaretskii
2024-02-11 14:49             ` Eric Abrahamsen

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=87plyafahh.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=68352@debbugs.gnu.org \
    --cc=morgan@ice9.digital \
    /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.