From: Thorsten Jolitz <tjolitz@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: text-mode -> outline-mode -> outline-minor-mode: how does it work?
Date: Sat, 15 Mar 2014 00:02:54 +0100 [thread overview]
Message-ID: <87eh249ye9.fsf@gmail.com> (raw)
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
reply other threads:[~2014-03-14 23:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87eh249ye9.fsf@gmail.com \
--to=tjolitz@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.