From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: lua-mode: indentation of multi-line conditionals Date: Tue, 25 Jul 2023 15:02:56 +0300 Message-ID: <835y68qjv3.fsf@gnu.org> References: <20230725.065021.1043605172004320866.wl@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6558"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Werner LEMBERG Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 25 14:02:37 2023 Return-path: Envelope-to: ged-emacs-devel@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 1qOGkO-0001TL-RR for ged-emacs-devel@m.gmane-mx.org; Tue, 25 Jul 2023 14:02:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qOGk0-0003Wr-FA; Tue, 25 Jul 2023 08:02:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qOGjz-0003Vh-L5 for emacs-devel@gnu.org; Tue, 25 Jul 2023 08:02:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qOGjz-0004OT-5K; Tue, 25 Jul 2023 08:02:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=urs2w4ZcGkoxNe4nN8A8Qh2sPR2dhmlPmQ/CXMyaA2w=; b=XOhVOk40YPjO fakaN37npkVT3Lj0Zqgt2bpNi2hyPigKe0UVA01ZCRsSQGKcfNVjAV3ymeykcDHiQw+liFMfsCyjG 6o9dnFe1pfGnLaLX0Arz9YqljABOmOjoxzuiWnWN7y89LZbVijXdom7hbMRoqnKCMofE77tv8BiMG mXr0Q1IkVlx8KCBxgAweBQE2pYekBtB/rXWdbrvOrUzfyeGsNEzoWLWoqJ8nx5clsVpnuPyXryDW9 Fz9arHsdsH5R5zplbWOrCaAy0cNnzkD3o3ecnVD/3xItuwx54PDEGqyvV7VQVkeLHpW1FiMfmIB9V +LgXvgokui33fb1fMC+/7Q==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qOGjy-0004iM-0I; Tue, 25 Jul 2023 08:02:10 -0400 In-Reply-To: <20230725.065021.1043605172004320866.wl@gnu.org> (message from Werner LEMBERG on Tue, 25 Jul 2023 04:50:21 +0000 (UTC)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:308093 Archived-At: > Date: Tue, 25 Jul 2023 04:50:21 +0000 (UTC) > From: Werner LEMBERG > > > Looking at > > https://dev.minetest.net/Lua_code_style_guidelines > > I read the following about Lua source code: > > > Conditional expressions have continuation lines indented by two > > tabs.[*] > > For Emacs, replacing 'tabs' with 'indentation level', this would be > > ``` > if long_function_call(with, many, arguments) and > another_function_call() then > do_something() > end > ``` > > However, this is not what Emacs does by default in Lua mode; you > rather get Is this about lua-mode from Non-GNU ELPA? Or about some other package? Because Emacs doesn't include such a mode, AFAICT.