help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is a "superior mode"?


From: Dmitry Gutov
Subject: Re: What is a "superior mode"?
Date: Tue, 9 Mar 2021 23:37:46 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]