unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Differencing a major mode from its derived modes
@ 2004-06-07 22:46 chem
  2004-06-08  6:36 ` Kai Grossjohann
  0 siblings, 1 reply; 6+ messages in thread
From: chem @ 2004-06-07 22:46 UTC (permalink / raw)


Hi, 
I would like to add allout mode only to text-mode.  That is, I don't
want allout mode to propagate to all the derived modes, like message
mode, etc.

I tried, using a:
 - if test on the major-mode, and it's not working
 - (if  (get major-mode 'derived-mode-parent)..., not working neither.

It seems that the major-mode on which the derived mode is based is
actually loaded.  Thus, all the hooks are made.  Only then, the
customization of the derived mode are done.  Then, I really don't know
how to isolated the parent from its children.  If someone has a
solution, it would be nice.

Thanks                            
                                       
-- 
Chemtov

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-06-12 13:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-07 22:46 Differencing a major mode from its derived modes chem
2004-06-08  6:36 ` Kai Grossjohann
2004-06-08  9:36   ` chem
2004-06-11 13:00     ` Kai Grossjohann
2004-06-11 17:34       ` chem
2004-06-12 13:36         ` Kai Grossjohann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).