unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Marcin Borkowski <mbork@mbork.pl>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: What is a "superior mode"?
Date: Tue, 09 Mar 2021 22:20:03 +0100	[thread overview]
Message-ID: <874khkyqgs.fsf@mbork.pl> (raw)
In-Reply-To: <fb739c74-d046-db60-3137-ced2ce6c3c17@yandex.ru>


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?

Best,

-- 
Marcin Borkowski
http://mbork.pl



  reply	other threads:[~2021-03-09 21:20 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 [this message]
2021-03-09 21:37     ` Dmitry Gutov
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=874khkyqgs.fsf@mbork.pl \
    --to=mbork@mbork.pl \
    --cc=dgutov@yandex.ru \
    --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.
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).