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: Philip Kaludercic
Subject: Re: What is a "superior mode"?
Date: Tue, 09 Mar 2021 08:19:41 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Marcin Borkowski <mbork@mbork.pl> writes:

> Hi all,
>
> 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)?

I would guess a mode that you'd derive another mode from.  So prog-mode
is the superior mode, and c-mode would be a sub-mode.  Kind of like
super-class in OOP.

> TIA,

-- 
        Philip K.



reply via email to

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