From: Dmitry Gutov <dgutov@yandex.ru>
To: Marcin Borkowski <mbork@mbork.pl>
Cc: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: What is a "superior mode"?
Date: Tue, 9 Mar 2021 23:37:46 +0200 [thread overview]
Message-ID: <4ea92031-44f2-49d4-ba88-4ce197e3a88c@yandex.ru> (raw)
In-Reply-To: <874khkyqgs.fsf@mbork.pl>
On 09.03.2021 23:20, Marcin Borkowski wrote:
> On 2021-03-09, at 12:54, Dmitry Gutov<dgutov@yandex.ru> wrote:
>
>> On 09.03.2021 06:54, Marcin Borkowski wrote:
>>> the Elisp reference says (in the "Mode-Specific Indent" node):
>>> -- Function: prog-first-column
>>> Call this function instead of using a literal value (usually, zero)
>>> of the column number for indenting top-level program constructs.
>>> The function’s value is the column number to use for top-level
>>> constructs. When no superior mode is in effect, this function
>>> returns zero.
>>> What is a "superior mode" (and a "sub-mode", for that matter)?
>> It refers to a "multiple major modes" situation. Like Python embedded
>> in HTML, that sort of thing. Or C inside Latex.
> Yeah, I know now. But: are "multiple modes" supported by core Emacs?
Not really. But there is a modicum of support for them.
And mmm-mode is in GNU ELPA.
next prev parent reply other threads:[~2021-03-09 21:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-09 4:54 What is a "superior mode"? Marcin Borkowski
2021-03-09 7:19 ` Philip Kaludercic
2021-03-09 11:54 ` Dmitry Gutov
2021-03-09 21:20 ` Marcin Borkowski
2021-03-09 21:37 ` Dmitry Gutov [this message]
2021-03-09 21:49 ` Stefan Monnier
2021-03-10 7:07 ` Marcin Borkowski
2021-03-10 3:26 ` Eli Zaretskii
2021-03-09 12:49 ` Eli Zaretskii
2021-03-09 21:19 ` Marcin Borkowski
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ea92031-44f2-49d4-ba88-4ce197e3a88c@yandex.ru \
--to=dgutov@yandex.ru \
--cc=help-gnu-emacs@gnu.org \
--cc=mbork@mbork.pl \
/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.
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).