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: Thu, 09 Jun 2022 16:08:19 +0000 Message-ID: References: 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="5419"; mail-complaints-to="usenet@ciao.gmane.io" Cc: goncholden via Users list for the GNU Emacs text editor To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 09 19:18:25 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 1nzLnc-000163-G8 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 09 Jun 2022 19:18:24 +0200 Original-Received: from localhost ([::1]:48772 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzLnb-0006zU-Hg for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 09 Jun 2022 13:18:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzKma-0005oK-Fo for help-gnu-emacs@gnu.org; Thu, 09 Jun 2022 12:13:17 -0400 Original-Received: from mail-4324.protonmail.ch ([185.70.43.24]:22427) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzKmY-0000qW-0y for help-gnu-emacs@gnu.org; Thu, 09 Jun 2022 12:13:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1654791177; x=1655050377; bh=iGK2SAzSysFTbhVKhc9X/EPwJUVwUD3+/bYQmHuRCP4=; 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=ETIFW64qmIqZe2N84ECtdXs1a0Tr85j2QQ/w4YP+di+4UE6Qo1apG5FNBcLEthqhn uvH7eAKZ9qht++DPVeQBO8eP/WBTl42BXLaSqUtj0/ApTEL2cmlQ8ujgmqGwG9b6DH s/CV258FKzUUWLBQO5RLbG5i7+qfEg4IXZUGMzZsFLG59p7oEM39r0tPOwPpNydl8X MyetwpFoqrYLW9MC95X88TQ9UNfewgMEhG0gIG/JBc4Q6DBK0XWuucV4enIZ7Bu/3r bbdpdtzTnb0hy3kh7jh7LByuinCrN3xUnhhmBDqYu5VIF9ZNGzYBSP9EEiptViMbGU ukodVgn4BfYkA== In-Reply-To: Feedback-ID: 43053548:user:proton Received-SPF: pass client-ip=185.70.43.24; envelope-from=goncholden@protonmail.com; helo=mail-4324.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:137566 Archived-At: ------- Original Message ------- On Friday, June 10th, 2022 at 3:46 AM, Yuri Khan wr= ote: > On Thu, 9 Jun 2022 at 22:30, goncholden goncholden@protonmail.com wrote: > > > Yuri, could you introspect the benefits between the last two alternativ= es? > > > If you work alone on your personal projects, you can have a global > policy that sets indent-tabs-mode depending only on the major mode. > > If you collaborate with others, some projects will have a coding > convention different from your personal preferences. Most of the time, > you will not be able to convince the project maintainers to change the > convention, so you will need to abide by it. Directory-local variables > are a powerful tool for such cases. I am the project maintainer and prefer spaces because things could look different on other people=E2=80=99s computers. When using tabs people know = they actually consist of two spaces or four spaces or whatever they decided. But that information gets lost. > You can use a combination of the two approaches: A global default, a > personal hook-based policy, and per-project directory-local overrides > where necessary. I would like to use a combination, using spaces except for cases where some tabs are a requirement of the language. What is best in such case?