all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.