From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: goncholden Newsgroups: gmane.emacs.help Subject: Re: Spaces rather than tabs by a major mode hook Date: Sat, 11 Jun 2022 10:39:30 +0000 Message-ID: References: <83h74sz4kh.fsf@gnu.org> <83a6ajzmza.fsf@gnu.org> <83r13vy4nf.fsf@gnu.org> <83leu3y0hs.fsf@gnu.org> Reply-To: goncholden Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39244"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , help-gnu-emacs@gnu.org To: goncholden Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 11 13:43:17 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 1nzzWP-000A1H-Q1 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 13:43:17 +0200 Original-Received: from localhost ([::1]:46494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzzWO-0005uQ-RJ for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 07:43:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzyWv-0002uz-Bt for help-gnu-emacs@gnu.org; Sat, 11 Jun 2022 06:39:45 -0400 Original-Received: from mail-40140.protonmail.ch ([185.70.40.140]:10025) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzyWt-00073k-CX for help-gnu-emacs@gnu.org; Sat, 11 Jun 2022 06:39:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1654943981; x=1655203181; bh=0pkKbgvPfYbEzMZXvHVM8gP1hIisB8Af1dFyNVytvlQ=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=jbPiCdE7fojmwsgdmk8GboAGl3JEC/z7DdEUvinzCXnfFv3gsI43bckRdLCJww52b OuXjj1PeVEu9P5YmxwAk3P6VMqgXfWJOcvqghcmLzEICoBduFKDuQrT/M2myiqO2Hu 6J92DkiLM1R9RCHmJCx8uYzCQX7jWw+9fSl9JjAggHwb0oMHmP4XK35eL5nCo38+b2 bMzVBF1OBf5mVEzcmMdSpAt3IZbO5a8x90IJMwwpzj2ZVNyxgUDNvaet8LDgNrwhg/ 7WQ8UQ5jDA8AHS2LWDxjf9myqOVo6fb1qNWhLEsj8+yVl1JhayH1X7ZQ0F0NZYQAfZ B5mg/0aYltuQQ== In-Reply-To: Feedback-ID: 43053548:user:proton Received-SPF: pass client-ip=185.70.40.140; envelope-from=goncholden@protonmail.com; helo=mail-40140.protonmail.ch 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TO_EQ_FM_DIRECT_MX=0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" Xref: news.gmane.io gmane.emacs.help:137690 Archived-At: ------- Original Message ------- On Saturday, June 11th, 2022 at 10:20 PM, goncholden wrote: > > ------- Original Message ------- > On Saturday, June 11th, 2022 at 10:10 PM, Eli Zaretskii eliz@gnu.org wrot= e: > > > > > > Date: Sat, 11 Jun 2022 08:57:54 +0000 > > > From: goncholden goncholden@protonmail.com > > > Cc: help-gnu-emacs@gnu.org > > > > > > Ok. But it seemed to me that for fortran I am limited on what I can d= o, > > > where the original developers did not. > > > > No, you aren't limited, it's the other way around: you have the Emacs > > power at your fingertips, while they used some simpler editor that > > placed the burden of indentation on the user. > > > Correct, the editor placed the burden of adding tabs on the user. > > > > For instance, how can I get the tab key to just make a tab and > > > pressing it again to make another tab. As I can do with spaces. > > > > You shouldn't need this, not at all. If you set the indentation > > levels and variables for the style of these files, typing TAB will > > insert as many TAB characters as needed to get to the correct column. > > For example, if the line should be indented 3 tab stops, typing TAB > > just once will insert all the 3 TABs in one go. > > > > That is what Emacs indentation commands are about: they insert the > > whitespace as necessary according to your settings, so that you never > > again should need to count TABs or insert them one by one. > > > > You should embrace this powerful feature instead of fighting against > > it. It does need some setup to adapt to a particular style of > > indentation, but that is one-time only, so really worth it. > > The point here is that they do not have a specific style, meaning the style= s vary, but emacs imposes some specific style that one has to set up. And y= ou cannot degress from it. What is really needed is for me to instruct emacs to disregard style restri= ctions for some buffer. Something that seems difficult to do. The fact th= at you advise not to fight emacs is a problem in itself. Is there a way to disable emacs indentation rules altogether?