Subject: Re: bug#5062: 23.1.50; image-toggle-display overwrites nxml-mode local key map

From: Lennart Borgman <[email-masked]>
Date: Sun, 29 Nov 2009 23:00:53 +0100

On Sun, Nov 29, 2009 at 7:33 PM, Stefan Monnier
<[email-masked]> wrote:
>
> IIRC auto-mode-alist can point to minor-modes (the auto-mode-alist entry
> needs to look something like ("regexp" minor-mode t)), but I don't think
> it can be used here (the constraints on how it can be used are very
> strict since it needs to "consume" a suffix and be called before the
> major-mode).  Maybe we could extend auto-mode-alist to allow things like
> ("regexp" (major-mode minor-mode-1 minor-mode-2 ...)).

Or just define a derived mode that does major-mode + minor-mode and
use that in auto-mode-alist?