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: Fri, 10 Jun 2022 07:42:19 +0000 Message-ID: References: <2nP2PN2t_BuoLFcCV1LCJLjRsU6YkW6e-VeBbRcMl2zR4tfPLI9rg26bBYSjJIhOkCKntjKW0XfBXVpaHYoXIrE7Lm4Zh-4Pzy0b1mCwdpc=@protonmail.com> <877d5pljnr.fsf@gnu.org> <20f6f8fc-7e91-4efb-bac3-8c4e6ed0ae63@gnu.org> <83h74t13hd.fsf@gnu.org> <837d5p10m0.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="26096"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 10 09:43:53 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 1nzZJB-0006d0-Cx for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 10 Jun 2022 09:43:53 +0200 Original-Received: from localhost ([::1]:52588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzZJ9-00017i-Uu for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 10 Jun 2022 03:43:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzZHr-00014m-Gw for help-gnu-emacs@gnu.org; Fri, 10 Jun 2022 03:42:31 -0400 Original-Received: from mail-4027.protonmail.ch ([185.70.40.27]:52799) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzZHp-00045r-0M for help-gnu-emacs@gnu.org; Fri, 10 Jun 2022 03:42:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1654846945; x=1655106145; bh=fNRVZefZPtSA7lqNfO0f5jhnKJIT9lf2ai957z2UD6o=; 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=pPS9DPtXiOCU5lMqy4wHzOiAGPCAwHnEO7SJCj+Luft/aWJDVWWkLdgOa9vucF2IL epleB9HxZ1BrSFsqKFjjEYUxd1mVoWB2r9niDtdy2JIEj1qlC6DVLi+uNW+dbDqvfJ jCUHDHGM78EbuhNC/OR/fQ3+eZfk/u/cjUEmoONmV7JlPFHfnJwk2HuCiSKYo4BjAe oIB2I68myF6PXXhIfZMNY87URa1PsSRixQc14UAtZfkQQzRJfalzE/eVw4CTunIe85 LkMTvD04mQvsM5UeGzMitmj8c7+sNF5zjHRCEomJyz+TBD1mCtSvVn9ij/2/nldDL6 399O09hZ/vxXw== In-Reply-To: <837d5p10m0.fsf@gnu.org> Feedback-ID: 43053548:user:proton Received-SPF: pass client-ip=185.70.40.27; envelope-from=goncholden@protonmail.com; helo=mail-4027.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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:137592 Archived-At: ------- Original Message ------- On Friday, June 10th, 2022 at 6:41 PM, Eli Zaretskii wrote: > > Date: Fri, 10 Jun 2022 05:46:44 +0000 > > From: goncholden goncholden@protonmail.com > > Cc: help-gnu-emacs@gnu.org > > > > > > The TAB key is usually bound to some indentation command such as in= dent-according-to-mode. So bind that to some other key and TAB to self-inse= rt-command. > > > > > > Or use "C-q TAB" to insert a literal TAB no matter what command TAB i= s > > > bound to. > > > > A superior choice would be to all TAB to be a tab by default, rather th= an 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. It usually happens with legacy code where people used tabs most times. The= n if the setting in for spaces, the file would end with a mix of tabs and s= paces. Indentation could get mixed up this way. What could be a solution?= Still with 'C-q TAB' ?