GNU bug report logs - #5062
23.1.50; image-toggle-display overwrites nxml-mode local key map

Previous Next

Package: emacs;

Reported by: Brent Goodrick <bgoodr <at> gmail.com>

Date: Sat, 28 Nov 2009 00:50:04 UTC

Severity: normal

Done: Juri Linkov <juri <at> jurta.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> jurta.org>
To: Lennart Borgman <lennart.borgman <at> gmail.com>
Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>, 5062 <at> debbugs.gnu.org,
        Tassilo Horn <tassilo <at> member.fsf.org>,
        Brent Goodrick <bgoodr <at> gmail.com>
Subject: bug#5062: 23.1.50; image-toggle-display overwrites nxml-mode  local key map
Date: Mon, 30 Nov 2009 00:08:59 +0200
>> 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?

That's what I did in the previous patch where `image-mode-maybe' is
a combination of a non-image major mode (`normal-mode' with image-mode
entries removed from `auto-mode-alist') and `image-minor-mode'.

Or did you mean a joint mode like `c-mode-and-image-minor-mode',
`nxml-mode-and-image-minor-mode', `ps-mode-and-doc-view-minor-mode'?
Wouldn't this be too clumsy?

-- 
Juri Linkov
http://www.jurta.org/emacs/



This bug report was last modified 15 years and 150 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.