all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Philip Kaludercic <philipk@posteo.net>
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, 09 Mar 2021 08:19:41 +0100	[thread overview]
Message-ID: <87tupkhjzm.fsf@posteo.net> (raw)
In-Reply-To: <878s6xhqp6.fsf@mbork.pl> (Marcin Borkowski's message of "Tue, 09 Mar 2021 05:54:45 +0100")

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	other threads:[~2021-03-09  7:19 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 [this message]
2021-03-09 11:54 ` Dmitry Gutov
2021-03-09 21:20   ` Marcin Borkowski
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tupkhjzm.fsf@posteo.net \
    --to=philipk@posteo.net \
    --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.
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.