all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* text-mode -> outline-mode -> outline-minor-mode: how does it work?
@ 2014-03-14 23:02 Thorsten Jolitz
  0 siblings, 0 replies; only message in thread
From: Thorsten Jolitz @ 2014-03-14 23:02 UTC (permalink / raw)
  To: help-gnu-emacs


Hi List, 

the strange title (somehow) says it all: 

Major mode outline-mode is derived from text-mode, but not very useful
in itself. outline-minor-mode is defined in outline.el and does not do
much more than defining a prefix for the outline mode map and a few
settings. 

Now imagine (text-mode) would do a lot of stuff when it is called. I think
that calling (outline-mode) would call (text-mode) first and trigger all
its initial actions, and then do its own thing. 

But what about outline-minor-mode? Does activating such a minor-mode
trigger calls to its 'twin-major-mode' (outline-mode) and its
parent-mode (text-mode) functions? If text-mode would set some buffer
local variables - would they be available in an emacs-lisp-mode buffer
with outline-minor-mode enabled?

I'm not so much interested in the details of text-mode/outline-mode but
rather in the best way to let a minor-mode inherit the functionality and
settings of a major-mode without causing a clash with the buffer's real
major-mode. 

-- 
cheers,
Thorsten





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-03-14 23:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-14 23:02 text-mode -> outline-mode -> outline-minor-mode: how does it work? Thorsten Jolitz

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.