Subject: bug#56679: 28.1; [PATCH] whitespace-style cannot be configured for diff-mode via hook

From: Eli Zaretskii <[email-masked]>
Date: Mon, 25 Jul 2022 14:07:11 +0300

> From: Michael Heerdegen <[email-masked]>
> Cc: YE <[email-masked]>,  [email-masked]
> Date: Mon, 25 Jul 2022 04:38:18 +0200
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> > Can we delay loading whitespace.el until the user actually wants to
> > turn on whitespace-mode, or until he/she customizes this option?
> > AFAIU, whitespace-mode is not turned on unconditionally by diff-mode,
> > so this 'require' is not needed for users who don't turn that minor
> > mode in Diff buffers.
> 
> Principally correct - but how do we do this correctly for the
> (get 'whitespace-style 'custom-type) :type definition?

What are the problems with this that require us to load whitespace.el
up front?