From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: indentation Date: Sun, 02 May 2021 09:20:14 +0200 Message-ID: <87h7jlvbkj.fsf@gnu.org> References: <20210427090348.67C9B5D0@centrum.cz> <20210427202932.DFDEF50D@centrum.cz> <20210428083227.FCFDA7C0@centrum.cz> <8635v86ber.fsf@protonmail.com> <87lf8zcxog.fsf@gnu.org> <86zgxe1sdu.fsf@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18693"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.12; emacs 28.0.50 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 02 09:29:17 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 1ld6XU-0004kJ-Su for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 02 May 2021 09:29:16 +0200 Original-Received: from localhost ([::1]:49520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ld6XT-0008Dp-WE for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 02 May 2021 03:29:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ld6X3-0008Dj-2I for help-gnu-emacs@gnu.org; Sun, 02 May 2021 03:28:50 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57372) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ld6X2-0000JD-RA for help-gnu-emacs@gnu.org; Sun, 02 May 2021 03:28:48 -0400 Original-Received: from auth1-smtp.messagingengine.com ([66.111.4.227]:50087) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1ld6X1-0008Ln-L3 for help-gnu-emacs@gnu.org; Sun, 02 May 2021 03:28:48 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id 2F10827C0054 for ; Sun, 2 May 2021 03:28:47 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sun, 02 May 2021 03:28:47 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdefuddggedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpehffgfhvffuffgjkfggtgesthdtre dttdertdenucfhrhhomhepvfgrshhsihhlohcujfhorhhnuceothhsughhsehgnhhurdho rhhgqeenucggtffrrghtthgvrhhnpeevveeikeetkeeviefgfeffiedvteeguddvffeuue duveegtddthedvhfeuveffhfenucfkphepkeejrdduieefrdefuddrudehgeenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhnodhmvg hsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhedvleek qdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: from thinkpad-t440p (p57a31f9a.dip0.t-ipconnect.de [87.163.31.154]) by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 2 May 2021 03:28:46 -0400 (EDT) In-reply-to: <86zgxe1sdu.fsf@protonmail.com> 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:129312 Archived-At: Wayne Harris via Users list for the GNU Emacs text editor writes: Hey Wayne, >> FWIW, I'd write your example as >> >> \noindent {\em Notation.} As we often write polynomials in finite rings of >> characterisc 2, let's define >> \[ >> \poly(x) = ... >> \] >> in the same way that it was used in the introduction. >> >> which is indented according to how AUCTeX would do it or the builtin >> `latex-mode' if `latex-indent-within-escaped-parens' is t. > > Thank you. I had no idea what was going on there. Clearly the root > cause of the problem is not understanding what is going on. That's > life: Absolutely! > I took a while to begin using paredit-mode precisely for not being > able to minimially live with it, but it's been really worth it to try. > (I use it constantly now.) Maybe the same will happen with > electric-indent-mode. Possibly. If you want to, you might also want to try the `aggressive-indent' package (from MELPA; its minor-mode is `aggressive-indent-mode') which is essentially `electric-indent-mode' on steroids, i.e., it indents the current function according to the mode's rules on every edit which makes it completely impossible to fight against the mode's indentation rules. (Of course, aggressive-indent is mostly suited with programming modes; it works very well with lisp.) Bye, Tassilo