From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.help Subject: Re: What is a "superior mode"? Date: Tue, 09 Mar 2021 08:19:41 +0100 Message-ID: <87tupkhjzm.fsf@posteo.net> References: <878s6xhqp6.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34075"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: Help Gnu Emacs mailing list To: Marcin Borkowski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 09 08:20:11 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJWf4-0008k7-Ne for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 09 Mar 2021 08:20:10 +0100 Original-Received: from localhost ([::1]:35238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJWf3-0001mg-Lf for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 09 Mar 2021 02:20:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32810) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJWek-0001mY-3Y for help-gnu-emacs@gnu.org; Tue, 09 Mar 2021 02:19:50 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:44384) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJWeh-0002KO-Sj for help-gnu-emacs@gnu.org; Tue, 09 Mar 2021 02:19:49 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 1BD6416005C for ; Tue, 9 Mar 2021 08:19:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1615274383; bh=uKL0YYGq28BnmYGRoF5ko8k6ARfOdVzYeMVH6TzXY2w=; h=From:To:Cc:Subject:Date:From; b=op85sbopc4wqmtuWEknUNuQQMG8b0ZQtP3NIYWSMKXK45qKDOnJETi12mpL0x79AV rFyBioGyw583N0J2s7UHlW8utCn5HaQnwpu1GDivd56SsjZeyHCRZIqoxik34tCwqa vLsORBmPLe3dKqO9G70oEfxJLzDFQjmDais11Dv/fmEccbjoGZw+Wj4EoHxjcSk8Cn 7LvUyvLT5WzPjd6GDtntoGDgeoMauuxkiJ6dSQZkhn54ExbOlaZbmgOhSLxGfxCUxQ JpOk2PUsXMHsXjhf2mzSqBdUaad5H9RXDCO9He/84HFQKwVJize2hYyaEFgS5GJBHI lggyzIGNveHsQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Dvmmt36QQz6tmD; Tue, 9 Mar 2021 08:19:42 +0100 (CET) In-Reply-To: <878s6xhqp6.fsf@mbork.pl> (Marcin Borkowski's message of "Tue, 09 Mar 2021 05:54:45 +0100") Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:128372 Archived-At: Marcin Borkowski 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=E2=80=99s value is the column number to use for top-lev= el > 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, --=20 Philip K.