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: Fri, 10 Jun 2022 09:41:43 +0300 Message-ID: <837d5p10m0.fsf@gnu.org> References: <2nP2PN2t_BuoLFcCV1LCJLjRsU6YkW6e-VeBbRcMl2zR4tfPLI9rg26bBYSjJIhOkCKntjKW0XfBXVpaHYoXIrE7Lm4Zh-4Pzy0b1mCwdpc=@protonmail.com> <877d5pljnr.fsf@gnu.org> <20f6f8fc-7e91-4efb-bac3-8c4e6ed0ae63@gnu.org> <83h74t13hd.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18266"; 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 Fri Jun 10 08:44:47 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 1nzYNy-0004Wt-P7 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 10 Jun 2022 08:44:46 +0200 Original-Received: from localhost ([::1]:34668 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzYNx-00071L-SJ for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 10 Jun 2022 02:44:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51848) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzYL3-0006IX-Hq for help-gnu-emacs@gnu.org; Fri, 10 Jun 2022 02:41:45 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48486) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzYL3-0003FX-9e for help-gnu-emacs@gnu.org; Fri, 10 Jun 2022 02:41: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=VP0/RXd3obmtVFsyStlUYe4JeyifamtREsUHYW7x3xA=; b=FBYgqvqLwhqy ViC6zccbONTmc+wvx9BnyD0eShS5uL2SDNYbtjumDQYYc2Fdn3M8GRWk9Xwern8QaVxMva0XAGzdo 6eDeEI9hQGeIjSeKGFI72zrnFmGHe299cer2NlnK/qtRvanIg5KFLePi8r72McNFupsPqfIKpVVH7 MZK4hXqjVj+Sl63rUgDtEsmFFof3lfMGExXSCDP0rUyTb2diHQ+OI1bZBPcl4T1CzfjVsEMpL2aCw /+jN63ZkGDCYhteF8LVh2eGvl3ElI6FNl1rWX3vjOqW5oZeN1z2kKG+1XL7GT3ZgddH0+vEcdEnQ6 iT1AO2InAZLJpQYEHEcMGQ==; Original-Received: from [87.69.77.57] (port=2995 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 1nzYL2-0007y5-OF for help-gnu-emacs@gnu.org; Fri, 10 Jun 2022 02:41:45 -0400 In-Reply-To: (message from goncholden on Fri, 10 Jun 2022 05:46:44 +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:137591 Archived-At: > Date: Fri, 10 Jun 2022 05:46:44 +0000 > From: goncholden > Cc: help-gnu-emacs@gnu.org > > > > The TAB key is usually bound to some indentation command such as indent-according-to-mode. So bind that to some other key and TAB to self-insert-command. > > > > > > Or use "C-q TAB" to insert a literal TAB no matter what command TAB is > > bound to. > > A superior choice would be to all TAB to be a tab by default, rather than binding to some other thing, making the key non-functional. RETURN could introduce indentation, but with the tab > key introducing a literal tab. No, that would be a step back. TAB is important because it re-indents the current line, so you don't need to type RET and insert a newline if all you want is re-indentation. It is a relatively rare situation where you need to insert a literal TAB, so having it bound to self-insert-command would be much less useful than its current binding. I think your current views are because you are trying to fight Emacs features instead of using them to your benefit. Why do you need to insert literal TABs so much? You never explained that.