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: Spaces rather than tabs by a major mode hook Date: Sat, 11 Jun 2022 10:35:41 +0300 Message-ID: <835yl7zm7m.fsf@gnu.org> References: <871qvwumzc.fsf@dataswamp.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26427"; 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 09:37:18 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 1nzvgM-0006lA-12 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 09:37:18 +0200 Original-Received: from localhost ([::1]:40540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzvgK-0004Hw-Jh for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 03:37:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzver-0004GI-Pk for help-gnu-emacs@gnu.org; Sat, 11 Jun 2022 03:35:49 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50882) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzver-0006mC-HC for help-gnu-emacs@gnu.org; Sat, 11 Jun 2022 03:35:45 -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=KPolCu6Dk2uExPb8g+dfY7oXxRWrq78E5F7sYY8+EcY=; b=DLoelumaPFDB QPWSMHMqqd9bRCuKAEzu8htXTC1bhX7O2tzUfa6jCrr5EIv5Q2acZSpUWgr8/4SXQxXdWr/ALO36B U/Mx3hwLngpKt1ts4DSL3QP2HHX+ERBY+HsQlVXDy6nnfq1nugvWPUdIJUe59ZrEX0eqWaHAiEVW0 +MOTEEQxe8Mbyf7txKeYxR8epuCZASXWqmEZPL7v2cWsMzcgygmwx6mK2rlyAlxO2OEnw3xINqdOe BAfQvLLBH4r0loOLfOX233NfMAhWaXtZ0AyqGWWQ1Z6vrQb5myuzDzT6PmzFVzdqY3DigbWDHTwlq 3PVG4wTAedongfGQQj+KOA==; Original-Received: from [87.69.77.57] (port=2757 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 1nzver-0006dO-0R for help-gnu-emacs@gnu.org; Sat, 11 Jun 2022 03:35:45 -0400 In-Reply-To: (message from goncholden on Sat, 11 Jun 2022 00:05:25 +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:137670 Archived-At: > Date: Sat, 11 Jun 2022 00:05:25 +0000 > From: goncholden > Cc: help-gnu-emacs@gnu.org > > > Yuri Khan wrote: > > > > > Major modes where spaces or tabs are syntactically > > > significant, such as makefile-mode and python-mode, already > > > override indent-tabs-mode. > > Have found that fortran-mode suffers from problems for legacy code programming styles. Actually, what we found is that you personally didn't bother to look for and find the customization options which would allow Emacs to support such legacy code 100%. > > > Set indent-tabs-mode for your global preference. Deal with > > > exceptions on a case-by-case basis, when and if you > > > encounter them. > > That would require quite an effort for a user to set up. That setup should be done only once. When you complete doing it, and save the customized options, they will be used thereafter for the other files. There are also facilities to make those customizations effective only for files under a certain directory, in case changing them globally is not what you want. > It is better for Emacs to have the functionality available and let the user select them on or off. See my other message: this is already available. You just didn't bother using it or even reading about it.