From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.help Subject: Re: What is a "superior mode"? Date: Tue, 9 Mar 2021 23:37:46 +0200 Message-ID: <4ea92031-44f2-49d4-ba88-4ce197e3a88c@yandex.ru> References: <878s6xhqp6.fsf@mbork.pl> <874khkyqgs.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24166"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 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 22:42:28 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 1lJk7W-00068Z-U6 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 09 Mar 2021 22:42:26 +0100 Original-Received: from localhost ([::1]:50786 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJk7V-0003pV-W4 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 09 Mar 2021 16:42:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35706) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJk36-0008CQ-RE for help-gnu-emacs@gnu.org; Tue, 09 Mar 2021 16:37:52 -0500 Original-Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]:45630) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJk34-0006jF-UD for help-gnu-emacs@gnu.org; Tue, 09 Mar 2021 16:37:52 -0500 Original-Received: by mail-ej1-x62a.google.com with SMTP id mm21so31924619ejb.12 for ; Tue, 09 Mar 2021 13:37:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=lsSvg5w9x8sYZL4Tw6u81OS1l3iv2PXwHyu1+qD3SpU=; b=pLOryZfFslaJkU5xjmEZL6KNkVoJP1X0aeH1rPIXuxUK9rweL3iGN+7b2rP+6V72g2 pfmfOLrvSdM/Hm2XSWcsetwsfZ9PNSkI+cIekMU4LoTF+M5gRGHCuUFdwghDWi35DjqL gjigahLdoVLop7bgqdoheAjzYE4wES7u5Wxco8WwIrblxBuEUTeVPb3HvZmpzyTjvTnt By6R34Um0NaVIHBsM764p2NVKti40x/L8DtF15iXPV8Cu9COUOHbre83BNFSXbOE7Uro pNAfAUKMmrRV/LNY1NqL0karW5nYNdU3jbWfTp8bNdgwWc1cOcNwqgevSa9V9IUqM+Gp HRAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=lsSvg5w9x8sYZL4Tw6u81OS1l3iv2PXwHyu1+qD3SpU=; b=VRipuVDqrBpUH0r4kqfw9aIncBdiRJGaSXoiSo9in01kYmZ1vGihQjP/jkFA8w29Qr DukWlh8REX06jctfz3iNrHYFFG5yg/GevSU6u27JVHnIu4RY8sM8C9Diu6h9S8ChB0Jq izbSUWTFbFu048gKBFAB9CAQgDyAyR8G0muxNwHkz115fv8h4U9VtKtsrv6Jbo+j+Zp1 K0EXdLtH7kRHfdGZ3gHxYiAcP62Mxe5L/p90Wp6lRWIAIpWwqXlSShs/2hh3QPBE5zDw Rz333Dj+hp4+z7p7JSCkSoXYMQbnEN4Pt+YcQ56VYlBsp9iYuoEUdT4AnTjjTa9N/mZT J/qg== X-Gm-Message-State: AOAM533iHqqdLyj/DU5JtZnpcniyKqtMbBkwlJtYKadTm7GfQ3WiJwz3 xzI9wOtUz3W3wUFkjAUW7J5pkgwWyNg= X-Google-Smtp-Source: ABdhPJy2kkD9EAc2/I6Ci8gKFeGGurhGFfeK1gaANpPuI//jQFpxz5dN1wdMHlZ+4aYjvFz3RcczPw== X-Received: by 2002:a17:906:fc1c:: with SMTP id ov28mr119247ejb.342.1615325869650; Tue, 09 Mar 2021 13:37:49 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id v1sm8746907ejd.3.2021.03.09.13.37.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Mar 2021 13:37:48 -0800 (PST) In-Reply-To: <874khkyqgs.fsf@mbork.pl> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::62a; envelope-from=raaahh@gmail.com; helo=mail-ej1-x62a.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:128379 Archived-At: On 09.03.2021 23:20, Marcin Borkowski wrote: > On 2021-03-09, at 12:54, Dmitry Gutov 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.