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.help Subject: Re: whitespace-mode deactivated at end of line Date: Sat, 11 Jun 2022 11:15:53 +0300 Message-ID: <83y1y3y5s6.fsf@gnu.org> References: <2PI5UnjKu3Vi8Opqcglew9V3u1aV1d3boNyjJNYGDQZsDl6My_5-Sk9_0tbqEHkEHqipuVvpUSVmV3fxW0lKYJkVHGGvUc1Ll1tMoEhk0Es=@protonmail.com> <83ilp91vn8.fsf@gnu.org> <877d5nu60y.fsf@dataswamp.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38461"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 11 10:23:19 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 1nzwOs-0009mE-4L for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 10:23:18 +0200 Original-Received: from localhost ([::1]:53774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzwOr-0002Y0-4a for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 04:23:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56538) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzwHm-0005nS-Bv for help-gnu-emacs@gnu.org; Sat, 11 Jun 2022 04:16:01 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51632) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzwHm-00047n-2Q for help-gnu-emacs@gnu.org; Sat, 11 Jun 2022 04:15:58 -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=WzKlYOIVM8h7E2G/wOiWUeR7y6C7keO+Dj74WWL+P1U=; b=lgDJUxPSTAhZ AqwU81pgVDzpTCgXLJRzpf6PgskoOEbj6fM3b91hIdwSzuf/zeqx4+2mKF7cudmr19enhkr+wQxVk LDq20Ujy1FRgjkATnzbZqTNuY46ia28oUv7jA/vXBXYZRJG/LqT60bvCOX7nL/FZB4y7aVKWy+Fh6 xIGie+LZL5+9r8qV2pEBZ1P+OPeu+gFMdSF6uaSImqQgHZ3t3brM13Oe1LGvvjbSHE7c5KRHUpoKi htBWuL+tRfYo5Y0tmawOlZx6EBMAg0zqir86WQhKyjXN8nynrsXb1AUNnqUlcOPi5Lyy/VTzZswEt BuCi/P24CHszi9LuDNKvaA==; Original-Received: from [87.69.77.57] (port=1240 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 1nzwHl-00060N-Hy for help-gnu-emacs@gnu.org; Sat, 11 Jun 2022 04:15:57 -0400 In-Reply-To: <877d5nu60y.fsf@dataswamp.org> (message from Emanuel Berg on Sat, 11 Jun 2022 07:24:13 +0200) 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:137676 Archived-At: > From: Emanuel Berg > Date: Sat, 11 Jun 2022 07:24:13 +0200 > > Eli Zaretskii wrote: > > > The red background that highlights trailing whitespace > > Also why isn't that removed automatically on save? Because it isn't any business of Emacs to second-guess the user's intentions. The user could, for example, be saving a partially written file, or have any other valid reason for keeping the trailing whitespace. If you do want this automatic cleanup to be performed unconditionally, customize the option whitespace-cleanup to do that.