From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: carlmarcos--- via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: [External] : Tab completion and electric-indent-mode Date: Sat, 18 Jun 2022 05:45:06 +0200 (CEST) Message-ID: References: <83zgibnw34.fsf@gnu.org> Reply-To: carlmarcos@tutanota.com 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="11076"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 18 05:45:46 2022 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 1o2PP7-0002fl-Jz for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 18 Jun 2022 05:45:45 +0200 Original-Received: from localhost ([::1]:60930 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o2PP6-0004wl-2D for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 17 Jun 2022 23:45:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33498) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2POZ-0004wW-8B for help-gnu-emacs@gnu.org; Fri, 17 Jun 2022 23:45:11 -0400 Original-Received: from w1.tutanota.de ([81.3.6.162]:34196) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2POX-0003LS-0M; Fri, 17 Jun 2022 23:45:10 -0400 Original-Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id AADEEFA032A; Sat, 18 Jun 2022 03:45:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1655523906; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=w92FPpO941slhN9HgfgAZiHeAr4MTZZpOa6sFKtUGjU=; b=TB7DZA+zmBP7WqLFCzsm1oM2eWiLolAaZ4uRY0SPMWYUXcu6rWOzapD4rG4dsoX2 g6EsCP/yyIRbx/iyxSP3XWXUnNvwq/kyNqUkULtow8PPz1d+qYMauCinCDVKIsUyvon CieEhovH2bqxdfNgHjhUlGtU6m9i+ey72l8Hu4HNkCxgU7PktQesv8BGW9fCpLJBQEH QjPOMinFPj1hj27GJ49H88Reh3wiTP+CY4iZtD15ciDAdXj5CRvg9aAoIy/3XB1f+Zz q3XQzxBDqZ1kEJtJKAmLiKU/85II/q/J3NcW6qZj878nIs8HkcWCR6+14a880KXAm8c Tehpj1AEBA== In-Reply-To: <83zgibnw34.fsf@gnu.org> Received-SPF: pass client-ip=81.3.6.162; envelope-from=carlmarcos@tutanota.com; helo=w1.tutanota.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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:137909 Archived-At: Jun 17, 2022, 15:33 by eliz@gnu.org: >> From: Drew Adams >> CC: "'Help-Gnu-Emacs (help-gnu-emacs@gnu.org)'" >> Date: Fri, 17 Jun 2022 14:10:00 +0000 >> >> > `electric-indent-mode` says that in does "On-the-fly >> > Reindentation".=C2=A0 What does that mean, and how is it >> > different to normal indentation? >> >> (What's "normal indentation"?) >> >> The doc string says that the mode does this, which >> is presumably what it means by hand-waving with >> "on-the-fly reindentation": >> >> this reindents whenever the hook `electric-indent-functions' >> returns non-nil, or if you insert a character from >> `electric-indent-chars'. >> >> The Emacs manual, node `Indent Convenience' says: >> >> Electric Indent mode is a global minor mode that >> automatically indents the line after every >> you type. >> >> If you feel that these explanations aren't clear >> enough then please consider filing an enhancement >> request to clarify further: `M-x report-emacs-bug'. >> > > But before you do, I suggest to check the latest code, because the > above quotations are obsolete. > Have looked /emacs/lisp/electric.el which now describes command loop for `e= lectric' modes. Still think there should be clear explanations on the level of indentations= emacs does. This is because reindentation typically refers to an indentation enhancemen= t compared to some basic indentation method.=C2=A0 "On-the-Fly Reindentation" also has di= fficulty of interpretation. Does there exist indentation that is "Not On-the-Fly"?=C2=A0 What would tha= t do? Have viewed the main repository define-minor-mode electric-indent-mode says When enabled, this reindents whenever the hook `electric-indent-functions' returns non-nil,=C2=A0 I do not find the comment informative regarding the = types of reindents.=C2=A0=20 electric-indent-functions states that it is a special hook run to decide wh= ether to auto-indent. Additionally, reindent means that an indentation scheme would have been app= lied already, supposedly composed of a simpler indent scheme. Can information be introduced on how indentation and re-indentation works a= nd the conditions by which indentation is applied? There needs to be clear explanations of what indentation and reindentation = do and under what=20 conditions as the current information is developer targeted but not user ta= rgeted. =20