From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.help Subject: Re: New line and trailing whitespaces Date: Sun, 21 Apr 2024 03:12:37 +0200 Message-ID: References: <86sezg87oh.fsf@gnu.org> <86o7a486gq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34934"; 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 Sun Apr 21 03:13:33 2024 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 1ryLlt-0008rS-5w for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 21 Apr 2024 03:13:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ryLlC-000590-Fu; Sat, 20 Apr 2024 21:12:50 -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 1ryLlA-00058p-NZ for help-gnu-emacs@gnu.org; Sat, 20 Apr 2024 21:12:48 -0400 Original-Received: from sonic305-3.consmr.mail.bf2.yahoo.com ([74.6.133.42]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ryLl8-0003Ws-OW for help-gnu-emacs@gnu.org; Sat, 20 Apr 2024 21:12:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1713661964; bh=N3802NTSuWYscw+izruHF3l5HBZE2TzpntpbOl/61nc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=ZOuQ8X9VBih+uV1VbOEz/wHTMEjscp0lU2Fu8xNgJIJfeBh5PGxLjbZmDDvwNIy54ntVOVyzq1cO5YrbGvrEWGby1YUQX6RMUyh16S7YOdtf8fzsjxG/YHca+XOYiUEsoLiYF+r53Qi/cGpT2913PbAk8SJ/4mEKDfz2fNTairSxZSSEiK+HQnrZ3nhLKOpfEMEU8fisuO/OJVeUj9XUG3j0o8moYkpu/MbBDBaZ6t4uuvw9jqlAqPfpv3ZkJeJCyG4oQofeuLg7WoYPd40h21/dQhpLIzvQH4leIFdkuPDcnoNvMWJoZlF1VsWLfTFzSltETZoguGRouQD1GAtL+g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1713661964; bh=D2rx7h4r2YKTMSPnpgfuD6HXvhHWQFhw2rdfKOMBzlD=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=F4K8/BxPoopYJWGv7dQCeqwB7VLDFw112rnjctsSjNo3GxxV/qPjFOosvPNa+jaYstDignZH9+rFT03mUeClSZWbyyX+Idklz95Uv/2v0P4fhTTir2Gkbn8HRheye/Nk+yNo0lZ3ZEq60Xx16G5LdUByY8X2/m0dcDeYRVyXuoC6HzpdS6218P3x12xmx+BAYeTPClxW7T9d55RJncW4LJ/h8K2h+0KLK4scQnZWALBGaGqL6H132B/mu/IYDzHHkppc7bfqUVeQu5+7sIdeRwdJ/EY6o9n5GL55IgW+8prOFiVOQ8DDx4AMjmFeIq2e9ocdA6I8EMr5uz/0yV7QMw== X-YMail-OSG: uxV.NN0VM1lh1OvoDRlpIMj6LIfF._A_uIJgoSVNqTsLhTdbxorcm4ux0VYzJAW frP88Ys1oNkMBNFIynbpGK8GG4QVqZBybv9A8RpK8Zv.NtT1dZgwhZcsMg2hCGVeBmImoe_jeJHl rR9aJmZQe8l6tWiuN_3vw1PM3bcISJBU8T6GjFj2fUi88TaQ7oez8bU42o1p8wwh9XNE85SoWRmk W4M7_RHFzMeNEeTRyJ7BsXIsPM5JSxBNwkkc8P7OwZPMBw0BUDIiT2DU216OAQjahJ0zOs.TOt3X ojA3VngsqnD4Lk8VO_HIYF.ReB0mk5YnfVuN8wuvQGd5r2HxKKsw_Upzn5FPH1xoZ6a_xhxT7n_V 2rXCWzCWdKg8TRdouEo5id6aeXFgMD8uJCdn_Ra5yy9Kl7e4Ao4fyuO104KHNNnldaJfhPxKh11C 8riIZa_KBHAGoAxL70Oi5Ks3wtzKM6lAyaoPl5LxrGqSzBEVJoUxTYR1zm9Cu2AIEA_WfqyqfylK 1tinol_S3ocxo9Vw9iXEDx16Qr.wQiy9WNRqS9M5Y9J6fP3IkAT20pLdsR1aSc6yQSA5dByUPV2. w2MnQfUgvo.27iBF1K36Ci.cH3Kod2IQsgNsAu1jOsimzfytw5hu7lArZB5MXbBkRx6BPQPibgPr eB_lvIhoBYMd5PUaIctCIaCxTmoXJna96hK9MctpRCjepQlV32zeIncQ7ULGqjsi5XjqXX3pWBHo S6EtbY5zxTvZ84Au6WhUUapVcT4ng7QJAYKatb2jRI0QH1KH_n359EfWqk.htGg69nMuz0ISGO6R dikk3j5Pco7CaJcTWR_1UbYrP0WSO7iH3fL04RALeG X-Sonic-MF: X-Sonic-ID: 8ce41a09-4e30-465c-9fb4-c48c19b3f5c8 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.bf2.yahoo.com with HTTP; Sun, 21 Apr 2024 01:12:44 +0000 Original-Received: by hermes--production-ir2-7b99fc9bb6-8q2dm (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 1af7b81c41d0f1bc5a0ae55d791803a5; Sun, 21 Apr 2024 01:12:39 +0000 (UTC) Content-Disposition: inline In-Reply-To: <86o7a486gq.fsf@gnu.org> X-Mailer: WebService/1.1.22256 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.133.42; envelope-from=spacibba@aol.com; helo=sonic305-3.consmr.mail.bf2.yahoo.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146411 Archived-At: On Sat, Apr 20, 2024 at 05:16:37PM GMT, Eli Zaretskii wrote: >> Date: Sat, 20 Apr 2024 16:50:22 +0300 >> From: Eli Zaretskii >> >> > Date: Sat, 20 Apr 2024 14:10:34 +0200 >> > From: Ergus >> > >> > When the cursor is in an empty line and I press enter, the cursor jumps >> > to the new line and indents (similar to what emacs does) but also >> > removes the trailing whitespaces in the previous/leaving line. >> >> Emacs does that since a long time ago (unless I misunderstand what you >> mean). > >Just to be more specific: it's the electric-indent-mode, which is ON >by default in Emacs since v24, that does this. So if you don't see >this when you press RET, just turning electric-indent-mode should be >all you need. > Hi Eli: This was it... very thanks. For me these two (indentation and cleanup) were unrelated features. Because I disabled the indentation but I would like to keep the cleanup... Any way I can live with it. A somehow unrelate question.. I don't find a face to change the tab-mark color in whitespace mode... Is it documented somewhere?