Subject: bug#60334: [PATCH] whitespace: Use `define-globalized-minor-mode' for global mode

From: Eli Zaretskii <[email-masked]>
Date: Sat, 31 Dec 2022 10:20:34 +0200

> Date: Mon, 26 Dec 2022 01:32:20 -0500
> From: Richard Hansen <[email-masked]>
> 
> Attached patch:
> 
>      whitespace: Use `define-globalized-minor-mode' for global mode
> 
>      * lisp/whitespace.el (global-whitespace-mode): Fix interoperability
>      between `whitespace-mode' and `global-whitespace-mode' by using
>      `define-globalized-minor-mode'.
>      * test/lisp/whitespace-tests.el (whitespace-tests--global): Add a
>      regression test.
> 
> It would be nice to install this on emacs-29, but I'm OK with this going 
> on master.

I tried to install this on master (it's too late for such changes on
the emacs-29 branch), but the patch failed to apply.  Could you please
rebase this on master and resubmit?

Thanks.