Subject: bug#57502: 29.0.50; Issue with `or' clause of buffer-match-p

From: Augusto Stoffel <[email-masked]>
Date: Wed, 31 Aug 2022 18:22:15 +0200

On Wed, 31 Aug 2022 at 12:50, Philip Kaludercic <[email-masked]> wrote:

> That might look something like this:
>
[...]
> +                      (`(derived-mode . ,mode)
> +                       (provided-mode-derived-p
> +                        (buffer-local-value 'major-mode buffer)
> +                        mode))

On a tangent, wouldn't it be nice to allow a list of modes?  That is,

> +                      (`(derived-mode . ,modes)
> +                       (apply #'provided-mode-derived-p
> +                        (buffer-local-value 'major-mode buffer)
> +                        modes))

(with some extra care to keep backwards compatibility).