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,gmane.emacs.erc.general Subject: Re: Indentation with spaces Date: Sat, 11 Jun 2022 10:31:32 +0300 Message-ID: <837d5nzmej.fsf@gnu.org> References: <87fskezg7s.fsf@dataswamp.org> <87zgimm0f8.fsf@yahoo.com> <87edzwlt69.fsf@dataswamp.org> <87zgiklpid.fsf@yahoo.com> <87czfgunrl.fsf@dataswamp.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6007"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org, emacs-erc@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 11 09:33:10 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 1nzvcL-0001M5-Fa for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 09:33:09 +0200 Original-Received: from localhost ([::1]:38816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzvcK-0002rG-5y for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 03:33:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51534) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzvas-0002p0-1Z; Sat, 11 Jun 2022 03:31:38 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50836) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzvar-00063s-Oo; Sat, 11 Jun 2022 03:31:37 -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=xxLcd59Ighx8z+UBqmiKre+KJI8V9NOwTAdClHNjRm8=; b=q6KxrM2S3DhP rsiSNLGKlwGpssVZcI2j8fHaKxayhz17dBfgmNuwIiNHnw7Fb972EVRwO9vLzlmPjcz7qFBZoIuaX OVcwzk6h4MayjZlSknk5qKKsmGjprhnHqyPL07XRNwkui/p60a/rtXDKxPyJg+tvKDcwzCAEsrOdK IlsPz1rTmUBkMJ4qwPPX5/tVW+kkFj3C3MH+UWi85iQDnaDR+kfpq6GXVGTg74LOwvidHbtzZVrsZ mQow9gMNu6nrHkXvPkNUfe7NEBcx13RX4hNiSbpGRkbyhSDyO1lqgXQ1vi90CQui5kTRLhfmy395H 7TXVAAS5cpaqUxAljpcioQ==; Original-Received: from [87.69.77.57] (port=2495 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 1nzvap-00080A-GK; Sat, 11 Jun 2022 03:31:37 -0400 In-Reply-To: (message from goncholden on Sat, 11 Jun 2022 00:00:47 +0000) 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:137669 gmane.emacs.erc.general:1853 Archived-At: > Date: Sat, 11 Jun 2022 00:00:47 +0000 > From: goncholden > Cc: help-gnu-emacs@gnu.org, emacs-erc@gnu.org > > Yes, but emacs should allow a number of possibilities rather than being prescriptive on its use. For instance, it does not allow multiple tabs at start of line, which happens with legacy codes (e.g. in fortran). Of course, it does. You just didn't study the documentation of the Fortran mode or the built-in documentation of Fortran-related commands to discover those facilities which do allow what you want. See my other message in this thread. > I suggest a rethinking and the introduction of a set of function that help the setting up of space and tab functionality. I suggest that you first study what is already available, before you even consider the remote possibility of the need to rethink it. I submit that you don't know enough about this to make such suggestions. > whitespace-mode should also be extended to allow users to set colour hex codes for the various highlighting regions. It already does, please see the documentation of that mode. If you do, you will see that whitespace-mode provides you with no less than 13 customizable faces, through which you can control every aspect of its display. > For instance, whilst the highlighting of trailing spaces in vibrant, the one used for tabs suffers from a very low contrast ratio. Contrast is to a large degree subjective, and in addition depends on the background color you use, which cannot be known precisely enough in advance. If the color of some face is not to your liking, you can customize it by providing colors that suit you better. > Efforts should be directed towards applying accessibility measures for which there are actual standards (e.g. WCAG). One can also use > a colour wheel with equally seperated colours in terms of contrast ratio for increased vibrancy, which is another good measure. We (the Emacs developers) know all about that, and apply that as much as possible for setting the defaults. Still, given unrelated user customizations and the particulars of the system where Emacs is run, customizations to change the default values are sometimes needed, and Emacs provides you with infinite ways of doing that. Where customizations can easily solve such problems, complaints about the defaults mean just one thing: that the person who complains didn't bother to look for those customizable options and use them, and instead prefers to accuse Emacs of incompetency, while the real incompetency is elsewhere.