From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Spaces rather than tabs by a major mode hook Date: Thu, 09 Jun 2022 21:24:52 +0200 Message-ID: <877d5pljnr.fsf@gnu.org> References: <2nP2PN2t_BuoLFcCV1LCJLjRsU6YkW6e-VeBbRcMl2zR4tfPLI9rg26bBYSjJIhOkCKntjKW0XfBXVpaHYoXIrE7Lm4Zh-4Pzy0b1mCwdpc=@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11944"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.7.26; emacs 29.0.50 Cc: Yuri Khan , help-gnu-emacs@gnu.org To: goncholden Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 09 22:31:08 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 1nzOo5-0002oA-4V for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 09 Jun 2022 22:31:05 +0200 Original-Received: from localhost ([::1]:35092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzOo2-0004cL-G5 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 09 Jun 2022 16:31:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55088) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzNr5-0001OG-Pe for help-gnu-emacs@gnu.org; Thu, 09 Jun 2022 15:30:08 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37362) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzNr3-0006lX-T1; Thu, 09 Jun 2022 15:30:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-reply-to:Date:Subject:To:From: References; bh=T8iWTiReeWH9+mKA3/oJoP+3CaXNrxSWxANwOnK6lKM=; b=X25A1LurVAVCl7 5NT4LAe0Fj9lK5yTNlO/vCGOJQNApyikoC54JbrzlaqiqJyxEu+WVw6TrFwfXMrKvftmyRLWL8ssR CgVsnFSMOQm+dAKwMu+WDg/JqeWv5RifyqTIkPA++xV43/HRnn/ojhrR5h4adkFoZOPqjGgPDJeTj K5YAiLxQGvMh7H+HjfuB49Eapwbg9mJTo4w6PWCW5hyxQpKpTTTK3cZ6yOssAiuM2Tyk6IuK8ZU/7 lv1XZEvnHKl1MDPodfWEPdX29WQ6OosI0n2BvzPp4nIIUsZFEU7MWBy7dhT7sBv2Q9nqh6IlbZQwM q1xjMjJqv/Pyfoz5tu1Q==; Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:51029) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nzNr0-0007gv-Vh; Thu, 09 Jun 2022 15:30:05 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id 8932827C0054; Thu, 9 Jun 2022 15:30:02 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 09 Jun 2022 15:30:02 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedruddtledgudefvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpehffgfhvfevufffjgfkgggtsehttdertddtredtnecuhfhrohhmpefvrghs shhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnh epudejtdehuddvleffjeekteegvdehleehvdeufefhueekkeekhedvgfeggeffvefgnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhrnh domhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeeijeefkeejkeegqdeifeeh vdelkedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 9 Jun 2022 15:30:01 -0400 (EDT) In-reply-to: <2nP2PN2t_BuoLFcCV1LCJLjRsU6YkW6e-VeBbRcMl2zR4tfPLI9rg26bBYSjJIhOkCKntjKW0XfBXVpaHYoXIrE7Lm4Zh-4Pzy0b1mCwdpc=@protonmail.com> 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:137583 Archived-At: goncholden writes: >> > ((c++-mode >> > (indent-tabs-mode . t) >> > (c-mode >> > (indent-tabs-mode . t))) > > Suppose I have a file with tabs, would the change show the tabs as > spaces? I would rather have the file show as it is. If there are > tabs in the file, would (setq-default indent-tabs-mode nil) show them > as spaces? It doesn't affect how tabs/spaces are displayed. It just defines if emacs' indentation commands may insert tabs. Even with indent-tabs-mode set to nil, you can still manually insert a TAB using C-q TAB. If you want to convert a file from/to tabs, you can use the commands tabify and untabify. Bye, Tassilo